summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-12-27 20:53:57 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-12-27 20:53:57 +0100
commit97df3ff8620c5939ddf93ddb0eecf18af47db9d1 (patch)
tree3eda156a5e2fef2355c3c57f229c48356063dcb6 /old
parentd30cb3af63fcc30b93bc85441dac772021906cc2 (diff)
downloadcompilertests-97df3ff8620c5939ddf93ddb0eecf18af47db9d1.tar.gz
compilertests-97df3ff8620c5939ddf93ddb0eecf18af47db9d1.tar.bz2
added compare operators
Diffstat (limited to 'old')
-rw-r--r--old/minie.ebnf4
1 files changed, 3 insertions, 1 deletions
diff --git a/old/minie.ebnf b/old/minie.ebnf
index f96c3d2..5c40eca 100644
--- a/old/minie.ebnf
+++ b/old/minie.ebnf
@@ -8,7 +8,9 @@ Identifier = Letter { Letter | Digit } .
QualifiedIdentifier = Identifier [ "." Identifier ];
Factor = [ "+" | "-" ] Number | String | QualifiedIdentifier | "(" Expression ")" .
Term = Factor { ( "*" | "/" ) Factor } .
-Expression = Term { ( "+" | "-" ) Term } .
+SimpleExpression = Term { ( "+" | "-" ) Term } .
+RelationalOperator = "=" | "<>" | "<" | ">" | "<=" | ">=" .
+Expression = SimpleExpression [ RelationOperator SimpleExpression ].
VariableName = Identifier .
Assignment = VariableName ":=" Expression .
StatementList = Statement { ";" Statement }