diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-12 21:55:28 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-08-12 21:55:28 +0200 |
commit | e2a3a2b217e8dcc1e3f4ec67c00a7a98d07fa698 (patch) | |
tree | e9b44b9e2fbc8e53c743165561ebb76f9a5d4c1f /old | |
parent | 8a4cfc2e63cc21328dbffd11d1a0455d806d48ef (diff) | |
download | compilertests-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.ebnf | 2 |
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 ")" . |