diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-12-28 15:28:57 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-12-28 15:28:57 +0100 |
commit | e7dcf15572104e00b7b7b79a4ccbce28c3467638 (patch) | |
tree | a304fd3c8266070691d85ba379f45e4bf67acc80 /old | |
parent | cb4b6b710f5f553c2775e1d5481aab9c4319b1aa (diff) | |
download | compilertests-e7dcf15572104e00b7b7b79a4ccbce28c3467638.tar.gz compilertests-e7dcf15572104e00b7b7b79a4ccbce28c3467638.tar.bz2 |
added while and return statements, only stubs for type maps in procedure declarations
Diffstat (limited to 'old')
-rw-r--r-- | old/minie.ebnf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/old/minie.ebnf b/old/minie.ebnf index 36399cb..5b07a78 100644 --- a/old/minie.ebnf +++ b/old/minie.ebnf @@ -18,7 +18,9 @@ IfStatement = "if" Condition "do" StatementList "else" StatementList "end" . ParameterList = "(" [ Expression { "," Expression } ] ")" . ProdecureCall = QualifiedIdentifier ParameterList . ForStatement = "for" identifier ":=" Expression "to" Expression "do" StatementList "end" . -Statement = Assignment | IfStatement | ForStatement | ProcedureCall . +WhileStatement = "while" expression "do" StatementList "end" . +ReturnStatement = "return" expression . +Statement = Assignment | IfStatement | ForStatement | WhileStatement | ProcedureCall | ReturnStatement . StatementBlock = "begin" StatementList "end" . VariableName = Identifier . SimpleType = Identifier . |