Legend of the Regular Grammar


The regular grammar defines the basic language elements i.e. tokens as certain classes of character sequences like numbers, identifiers, operators and strings.

Each rule defining such a class of character sequences has the following structure: <Class Type> <Class Identifier> :: <Regular Expression>

We distinguish four types of classes:
 


A regular expression spezifies the character sequences belonging to the class. Such a description usually consists of the following elements and operators:
 

Case ignore character classes can be spezified with an [I] behind the class identifier.
 
 

Legend of the Context-free Grammar


The syntax rules are described in EBNF ( Extended Backus-Naur-Form ). A startsymbol must exist for each source file type. That means the syntax within each file has to be conform to the corresponding start rule. The other are internal helper rules.

Each rule is structured as follows: <Rule Type: start or let <Rule Identifier> :: <EBNF-konform Expression>
An EBNF-konform expression defines a part of the language syntax. It consists of a set of alternative productions i.e. partial expressions, separated by the character '|'.

A production can be spezified with the help of the following elements and operators: