mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
[ABNF] Add syntax for record types.
This commit is contained in:
parent
df8ee1a1f9
commit
557cdf15c3
@ -96,6 +96,7 @@ keyword = %s"address"
|
|||||||
/ %s"in"
|
/ %s"in"
|
||||||
/ %s"let"
|
/ %s"let"
|
||||||
/ %s"public"
|
/ %s"public"
|
||||||
|
/ %s"record"
|
||||||
/ %s"return"
|
/ %s"return"
|
||||||
/ %s"scalar"
|
/ %s"scalar"
|
||||||
/ %s"string"
|
/ %s"string"
|
||||||
@ -393,8 +394,13 @@ circuit-declaration = %s"circuit" "{" circuit-component-declaration
|
|||||||
|
|
||||||
circuit-component-declaration = identifier ":" type
|
circuit-component-declaration = identifier ":" type
|
||||||
|
|
||||||
|
record-declaration = %s"record" "{" circuit-component-declaration
|
||||||
|
*( "," circuit-component-declaration )
|
||||||
|
[ "," ] "}"
|
||||||
|
|
||||||
declaration = function-declaration
|
declaration = function-declaration
|
||||||
/ circuit-declaration
|
/ circuit-declaration
|
||||||
|
/ record-declaration
|
||||||
|
|
||||||
file = *declaration
|
file = *declaration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user