Prev: Object Oriented Programming
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.
Next: Interactive Shells© 2004-2011 airbit AG, CH-8008 Zürich
Document AB-M-REF-887