Language

This chapter defines the m programming language. m is a procedural language supporting code reuse through a simple concept of modules.

The following sections introduce the building blocks of m. After each section, the m syntax is summarized by a formal definition in EBNF (Extended Backus Naur Form):

m scripts are read as a series of tokens which are separated by "separator" characters (all characters which are not letters, digits or an underscore). White space (blank and new line) always separates two characters. The amount of white space used does not affect the meaning of a script, but white space should be added sensibly to make a script more readable by indenting lines to reflect the structure of the code.


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