Terminal

Home > Textual Syntax Specification > Specification Language > Terminal

Terminals are further distinguished: there are "Proper Terminals" and "Whitespace Terminals".

Proper Terminal

Proper Terminals are strings that do not contain any whitespace characters, i.e. new lines, spaces, tabs or backspaces.

The textual syntax definition of the "ProperTerminal" class is as follows:

ProperTerminal : (P:symbols[QUOTED]) ;

Here's an example how to use that statement within a textual syntax definition:

Layer : "Layer" _ (P:name) ;
  • The "ProperTerminal" is put into quotation marks.

Whitespace Terminal

Whitespace Terminals are spaces and/or new lines.

The textual syntax definition of the "Space" class is as follows:

Space : "_" ;

The textual syntax definition of the "Newline" class is as follows:

Newline : "nl" ;

Here's an example how to use these statements within a textual syntax definition:

Layer : "Layer" _ (P:name) _ "{" nl "}" ;

Next chapter: Develop and plug-in a Graphical Model Editor

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.