mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-11 13:56:58 +03:00
Merge pull request #1962 from AleoHQ/grammar-add-record-name-and-inner-rule
[grammar] add missing record name identifier; factor circuit-componen…
This commit is contained in:
commit
9bd4db47fb
@ -400,15 +400,16 @@ function-parameter = [ %s"public" / %s"constant" / %s"const" ]
|
||||
identifier ":" type
|
||||
|
||||
circuit-declaration = %s"circuit" identifier
|
||||
"{" circuit-component-declaration
|
||||
*( "," circuit-component-declaration )
|
||||
[ "," ] "}"
|
||||
"{" circuit-component-declarations "}"
|
||||
|
||||
circuit-component-declarations = circuit-component-declaration
|
||||
*( "," circuit-component-declaration )
|
||||
[ "," ]
|
||||
|
||||
circuit-component-declaration = identifier ":" type
|
||||
|
||||
record-declaration = %s"record" "{" circuit-component-declaration
|
||||
*( "," circuit-component-declaration )
|
||||
[ "," ] "}"
|
||||
record-declaration = %s"record" identifier
|
||||
"{" circuit-component-declarations "}"
|
||||
|
||||
declaration = function-declaration
|
||||
/ circuit-declaration
|
||||
|
Loading…
Reference in New Issue
Block a user