Source Structure

After introducing all elements of the m language, the complete structure of an m source can be defined:

MSource := { ModuleImport | FunctionDeclaration | ClassDeclaration |
              ClassFunctionDeclaration | StatementList } .

The StatementLists (there can be several) are the "main code" of the script which is executed directly. In a module, this corresponds to the module initialization code which is executed the first time the module occurs in a use clause.


© 2004-2010 airbit AG, CH-8008 Zürich
Document AB-M-REF-869