Merge branch 'record-type' of https://github.com/AleoHQ/leo into record-type

This commit is contained in:
collin 2022-06-27 12:45:58 -10:00
commit 389b4692aa

View File

@ -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