summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-08-17 22:22:12 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-08-17 22:22:12 +0200
commit47e6a680daeb0c789162b7f9528960cf5bf07adb (patch)
tree894d61d2ce363e7ee2359c1ceaafe86618a1cef5 /old
parent155e1b550268ff3dee93a91de4ea5a66b6ff3566 (diff)
downloadcompilertests-47e6a680daeb0c789162b7f9528960cf5bf07adb.tar.gz
compilertests-47e6a680daeb0c789162b7f9528960cf5bf07adb.tar.bz2
crenshaw: added two assignments (just for testing)
extended emul to properly handle hash collisions in the instruction map
Diffstat (limited to 'old')
-rw-r--r--old/crenshaw.ebnf3
1 files changed, 2 insertions, 1 deletions
diff --git a/old/crenshaw.ebnf b/old/crenshaw.ebnf
index 880ad6c..d189209 100644
--- a/old/crenshaw.ebnf
+++ b/old/crenshaw.ebnf
@@ -5,7 +5,8 @@ Num = Digit .
Name = Letter .
Variable = Name .
Function = "(" Name ")" .
-Ident = Variable | Function.
+Ident = Variable | Function .
Expression = Term { ( "+" | "-" ) Term } .
Term = Factor { ( "*" | "/" ) Factor } .
Factor = Num | "(" Expression ")" | Ident .
+Assignment = Expression .