mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 09:02:58 +03:00
[grammar] add missing record name identifier; factor circuit-component-declarations into separate grammar rule
This commit is contained in:
parent
2a9cc42493
commit
9756714fd2
@ -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