Wrote a source-to-source compiler.
Added a top-level 'compile' function.
Moved the scopeQuery() function to Datatypes.sml, and moved its application to the parser.