summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-12-28 12:42:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-12-28 12:42:24 +0100
commitcb4b6b710f5f553c2775e1d5481aab9c4319b1aa (patch)
tree4b43d2ee87e00ec9e15f47729f8cf516186d4405 /old
parent4c640f3dbc1c9f95578ff7ebe9110002d8b0434d (diff)
downloadcompilertests-cb4b6b710f5f553c2775e1d5481aab9c4319b1aa.tar.gz
compilertests-cb4b6b710f5f553c2775e1d5481aab9c4319b1aa.tar.bz2
added logical operators
Diffstat (limited to 'old')
-rw-r--r--old/minie.ebnf6
1 files changed, 3 insertions, 3 deletions
diff --git a/old/minie.ebnf b/old/minie.ebnf
index 5c40eca..36399cb 100644
--- a/old/minie.ebnf
+++ b/old/minie.ebnf
@@ -6,9 +6,9 @@ Number = Digit { Digit } .
String = """ { Character | """ """ } """ | "'" .
Identifier = Letter { Letter | Digit } .
QualifiedIdentifier = Identifier [ "." Identifier ];
-Factor = [ "+" | "-" ] Number | String | QualifiedIdentifier | "(" Expression ")" .
-Term = Factor { ( "*" | "/" ) Factor } .
-SimpleExpression = Term { ( "+" | "-" ) Term } .
+Factor = [ "+" | "-" ] Number | String | QualifiedIdentifier | "(" Expression ")" | ( "not" Factor ) .
+Term = Factor { ( "*" | "/" | "and" ) Factor } .
+SimpleExpression = Term { ( "+" | "-" | "or" ) Term } .
RelationalOperator = "=" | "<>" | "<" | ">" | "<=" | ">=" .
Expression = SimpleExpression [ RelationOperator SimpleExpression ].
VariableName = Identifier .