summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-02-09 18:19:08 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-02-09 18:19:08 +0100
commit93cd4ea26f9dfc53d75d15a2458362ac25c42ac3 (patch)
tree57851e5842a94926a10487853b3588b04f403a1a /old
parent60444dbdb4164464c84c2ae6d33939f4f32859cd (diff)
downloadcompilertests-93cd4ea26f9dfc53d75d15a2458362ac25c42ac3.tar.gz
compilertests-93cd4ea26f9dfc53d75d15a2458362ac25c42ac3.tar.bz2
work on parameter lists, return values
Diffstat (limited to 'old')
-rw-r--r--old/minie.ebnf2
1 files changed, 1 insertions, 1 deletions
diff --git a/old/minie.ebnf b/old/minie.ebnf
index 04c1415..f44e4bc 100644
--- a/old/minie.ebnf
+++ b/old/minie.ebnf
@@ -32,7 +32,7 @@ Type = SimpleType | ArrayType .
VariableDeclaration = VariableName ":" Type .
VariableBlock = "var" { VariableDeclaration ";" } .
ImportBlock = "import" Identifier { "," Identifier } .
-ParameterDeclaration = "(" [ Parameter { ";" Parameter } ] ")" [ ":" SimpleType ] .
+ParameterDeclaration = [ "(" [ Parameter { ";" Parameter } ] ")" ] [ ":" SimpleType ] .
Parameter = ident ":" ParameterType .
ParameterType = [ "array" "of" ] Type .
ProcedureDeclaration = "procedure" Identifier [ ParameterDeclaration ] ";" DeclarationBlock StatementBlock .