source: tools/Grammer/Test.grammer

Last change on this file was 31, checked in by george, 13 years ago
  • Added: Tool for generating source code structure from language grammer difinition.
File size: 374 bytes
Line 
1; () block (1)
2; {} repetition block (0, 1, n)
3; [] conditional block (0, 1)
4; := rule assignment
5; ; comment
6; | or
7
8Module = Program | Unit | Library | Package
9Program = ['program' <Name> ';'] <Unit>
10VariableDeclaration = 'var' ( <Name> ':' <Type> ';' )# <Unit>
11BeginEnd = 'begin' ( Command )* 'end' ';'
12IfThenElse = 'if' Condition 'then' Statement ( 'else' Statement )#
13
Note: See TracBrowser for help on using the repository browser.