mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-23 02:01:54 +03:00
add constant keyword to grammar, change parameter grammar
This commit is contained in:
parent
cfc5b00bad
commit
304044546c
Binary file not shown.
@ -69,6 +69,7 @@ keyword = %s"address"
|
||||
/ %s"char"
|
||||
/ %s"console"
|
||||
/ %s"const"
|
||||
/ %s"constant"
|
||||
/ %s"else"
|
||||
/ %s"field"
|
||||
/ %s"for"
|
||||
@ -317,7 +318,7 @@ function-declaration = %s"function" identifier
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user