summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-09-04 21:50:34 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-09-04 21:50:34 +0200
commit1edf603d623fe0bc71c520d84414e8a302c6588e (patch)
tree5d5b99af8c7f7f2bd4cd14c413563e5e0cbb4867 /old
parent7cce459e7af6b3ee64a8f38de187e21786156aca (diff)
downloadcompilertests-1edf603d623fe0bc71c520d84414e8a302c6588e.tar.gz
compilertests-1edf603d623fe0bc71c520d84414e8a302c6588e.tar.bz2
some work on assignment blocks and module inits
Diffstat (limited to 'old')
-rw-r--r--old/minie.ebnf8
1 files changed, 7 insertions, 1 deletions
diff --git a/old/minie.ebnf b/old/minie.ebnf
index 453434d..9940516 100644
--- a/old/minie.ebnf
+++ b/old/minie.ebnf
@@ -2,5 +2,11 @@ Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" .
Letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z" |
"a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z".
Identifier = Letter { Letter | Digit } .
-Block = "begin" "end" ";" .
+Number = Digit { Digit } .
+Constant = Number .
+Expression = Constant .
+VariableName = Identifier .
+Assignment = VariableName ":=" Expression .
+Statement = Assignment .
+Block = "begin" "end" | ( Statement { ";" Statement } "end" ) .
Module = "module" Identifier ";" Block .