Shove the main transformation logic into a class, in order to keep state across recursions. Add support for an 'include' directive. This will allow us to keep STMT_* definitions in multiple files, yet generate a single set of statements for a library.
Shove the main transformation logic into a class, in order to keep state
across recursions. Add support for an 'include' directive. This will allow
us to keep STMT_* definitions in multiple files, yet generate a single set
of statements for a library.

* build/transform_sql.py:
  (class Processor): new class, based on the code from main().
  (main): gutted, with code moved to Processor. adjust params.
  (): pass a file path rather than a handle to main()


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@905787 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion