diff options
Diffstat (limited to 'old/minic.ebnf')
-rw-r--r-- | old/minic.ebnf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/old/minic.ebnf b/old/minic.ebnf index 9379e35..4c354e6 100644 --- a/old/minic.ebnf +++ b/old/minic.ebnf @@ -5,3 +5,12 @@ Integer = Digit { Digit }. 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". Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9". + +Expression = Integer + | Expression "*" Expression + | Expression "/" Expression + | Expression "+" Expression + | Expression "-" Expression + . + + |