diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-17 22:22:12 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-17 22:22:12 +0200 |
commit | 47e6a680daeb0c789162b7f9528960cf5bf07adb (patch) | |
tree | 894d61d2ce363e7ee2359c1ceaafe86618a1cef5 /old | |
parent | 155e1b550268ff3dee93a91de4ea5a66b6ff3566 (diff) | |
download | compilertests-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.ebnf | 3 |
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 . |