|
Last change
on this file was 31, checked in by george, 15 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 |
|
|---|
| 8 | Module = Program | Unit | Library | Package
|
|---|
| 9 | Program = ['program' <Name> ';'] <Unit>
|
|---|
| 10 | VariableDeclaration = 'var' ( <Name> ':' <Type> ';' )# <Unit>
|
|---|
| 11 | BeginEnd = 'begin' ( Command )* 'end' ';'
|
|---|
| 12 | IfThenElse = 'if' Condition 'then' Statement ( 'else' Statement )#
|
|---|
| 13 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.