summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-08-12 21:55:28 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-08-12 21:55:28 +0200
commite2a3a2b217e8dcc1e3f4ec67c00a7a98d07fa698 (patch)
treee9b44b9e2fbc8e53c743165561ebb76f9a5d4c1f /old
parent8a4cfc2e63cc21328dbffd11d1a0455d806d48ef (diff)
downloadcompilertests-e2a3a2b217e8dcc1e3f4ec67c00a7a98d07fa698.tar.gz
compilertests-e2a3a2b217e8dcc1e3f4ec67c00a7a98d07fa698.tar.bz2
crenshaw: small emulator for testing with capstone and unicorn
Diffstat (limited to 'old')
-rw-r--r--old/crenshaw.ebnf2
1 files changed, 2 insertions, 0 deletions
diff --git a/old/crenshaw.ebnf b/old/crenshaw.ebnf
index 5cdb7ab..6b3029b 100644
--- a/old/crenshaw.ebnf
+++ b/old/crenshaw.ebnf
@@ -1,3 +1,5 @@
+Digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" .
+Num = Digit .
Expression = Term { ( "+" | "-" ) Term } .
Term = Factor { ( "*" | "/" ) Factor } .
Factor = Num | "(" Expression ")" .