diff options
Diffstat (limited to 'grammar.bnf')
| -rw-r--r-- | grammar.bnf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar.bnf b/grammar.bnf index 256e58a..7c18f8f 100644 --- a/grammar.bnf +++ b/grammar.bnf | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | // Comments are introduced by # and terminated by newline | ||
| 2 | |||
| 1 | program ::= (statement ';'?)*; | 3 | program ::= (statement ';'?)*; |
| 2 | statement ::= definition | expression; | 4 | statement ::= definition | expression; |
| 3 | definition ::= 'def' def-spec '=' expression; | 5 | definition ::= 'def' def-spec '=' expression; |