summaryrefslogtreecommitdiff
path: root/grammar.bnf
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2024-08-16 23:29:12 +0300
committerGravatar Uko Kokņevičs2024-08-16 23:29:12 +0300
commit0aeff1a757908bdc8972bca20330752858cbb903 (patch)
tree46dde2d01f6d95aa911271c43844765433360de4 /grammar.bnf
parentSmall improvements (diff)
downloadorang-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.bnf2
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
1program ::= (statement ';'?)*; 3program ::= (statement ';'?)*;
2statement ::= definition | expression; 4statement ::= definition | expression;
3definition ::= 'def' def-spec '=' expression; 5definition ::= 'def' def-spec '=' expression;