summaryrefslogtreecommitdiff
path: root/ecomp-c/minie.ebnf
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-05-23 20:36:24 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-05-23 20:36:24 +0200
commit58a041e920116d7f06100a588172b4719e32a40b (patch)
tree64ace16ad16e3261699e735480153f06c0fae8d8 /ecomp-c/minie.ebnf
parentb35ee46072e2a98de06d722ad8db33306e95944c (diff)
downloadcompilertests-58a041e920116d7f06100a588172b4719e32a40b.tar.gz
compilertests-58a041e920116d7f06100a588172b4719e32a40b.tar.bz2
added character type
multi-typed values for constants and variables (all symbols) adapted tests to better output of debug code in assembly
Diffstat (limited to 'ecomp-c/minie.ebnf')
-rw-r--r--ecomp-c/minie.ebnf1
1 files changed, 1 insertions, 0 deletions
diff --git a/ecomp-c/minie.ebnf b/ecomp-c/minie.ebnf
index be82d9e..a0558b6 100644
--- a/ecomp-c/minie.ebnf
+++ b/ecomp-c/minie.ebnf
@@ -4,6 +4,7 @@ Letter = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L"
Special = "_" .
Identifier = Letter { Letter | Digit | Special } .
Number = Digit { Digit } .
+Character = "'" Digit | Letter "'" .
Factor = Number | Identifier | "(" Expression ")" | "not" Factor .
Term = Factor { ( "*" | "/" | "mod" | "and" ) Factor } .