summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-08-15 16:37:27 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-08-15 16:37:27 +0200
commit35ad67c69732d9cc450492100dee52eab20c9748 (patch)
tree92348326ca24ea75f7bb8630488e39b4ebfe3c3d /old
parent7870e75d7da7a03a62ca82406bc2cf6dbb92f99e (diff)
downloadcompilertests-35ad67c69732d9cc450492100dee52eab20c9748.tar.gz
compilertests-35ad67c69732d9cc450492100dee52eab20c9748.tar.bz2
..
Diffstat (limited to 'old')
-rw-r--r--old/crenshaw.ebnf5
1 files changed, 4 insertions, 1 deletions
diff --git a/old/crenshaw.ebnf b/old/crenshaw.ebnf
index 6b3029b..8b1effa 100644
--- a/old/crenshaw.ebnf
+++ b/old/crenshaw.ebnf
@@ -1,5 +1,8 @@
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".
Num = Digit .
+Variable = Letter .
Expression = Term { ( "+" | "-" ) Term } .
Term = Factor { ( "*" | "/" ) Factor } .
-Factor = Num | "(" Expression ")" .
+Factor = Num | "(" Expression ")" | Variable .