diff options
| author | 2024-08-16 23:29:12 +0300 | |
|---|---|---|
| committer | 2024-08-16 23:29:12 +0300 | |
| commit | 0aeff1a757908bdc8972bca20330752858cbb903 (patch) | |
| tree | 46dde2d01f6d95aa911271c43844765433360de4 /grammar.bnf | |
| parent | Small improvements (diff) | |
| download | orang-0aeff1a757908bdc8972bca20330752858cbb903.tar.gz orang-0aeff1a757908bdc8972bca20330752858cbb903.tar.xz orang-0aeff1a757908bdc8972bca20330752858cbb903.zip | |
Big Refactoring, added support for comments
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; |