add constant keyword to grammar, change parameter grammar

This commit is contained in:
gluax 2022-04-11 10:01:54 -07:00
parent cfc5b00bad
commit 304044546c
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -69,6 +69,7 @@ keyword = %s"address"
/ %s"char" / %s"char"
/ %s"console" / %s"console"
/ %s"const" / %s"const"
/ %s"constant"
/ %s"else" / %s"else"
/ %s"field" / %s"field"
/ %s"for" / %s"for"
@ -317,7 +318,7 @@ function-declaration = %s"function" identifier
function-parameters = function-parameter *( "," function-parameter ) [ "," ] function-parameters = function-parameter *( "," function-parameter ) [ "," ]
function-parameter = [ %s"public" / %s"const" ] identifier ":" type function-parameter = [ %s"public" / %s"constant" ] identifier ":" type
declaration = function-declaration declaration = function-declaration