summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-08-18 14:52:01 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-08-18 14:52:01 +0200
commit5820deb5559dac39b7da8b18e4ef2e5838f41b66 (patch)
tree1e262f50850567b4f3393dcc91a52d62899ef1ea /old
parenta3b01d933dc061fd9c24dd2caf121fe92c497d76 (diff)
downloadcompilertests-5820deb5559dac39b7da8b18e4ef2e5838f41b66.tar.gz
compilertests-5820deb5559dac39b7da8b18e4ef2e5838f41b66.tar.bz2
crenshaw: expansion to multi-digit/letter symbols
Diffstat (limited to 'old')
-rw-r--r--old/crenshaw.ebnf5
1 files changed, 3 insertions, 2 deletions
diff --git a/old/crenshaw.ebnf b/old/crenshaw.ebnf
index d189209..abfe8ad 100644
--- a/old/crenshaw.ebnf
+++ b/old/crenshaw.ebnf
@@ -1,8 +1,9 @@
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 .
-Name = Letter .
+AlNum = Digit | Letter .
+Num = Digit { Digit } .
+Name = Letter { AlNum } .
Variable = Name .
Function = "(" Name ")" .
Ident = Variable | Function .