[ABNF] Fix rule for circuit declarations.

The identifier had been neglected.
This commit is contained in:
Alessandro Coglio 2022-07-20 18:36:23 -07:00
parent b940ad01fc
commit f93ed1b15f

View File

@ -399,9 +399,10 @@ function-parameters = function-parameter *( "," function-parameter ) [ "," ]
function-parameter = [ %s"public" / %s"constant" / %s"const" ]
identifier ":" type
circuit-declaration = %s"circuit" "{" circuit-component-declaration
*( "," circuit-component-declaration )
[ "," ] "}"
circuit-declaration = %s"circuit" identifier
"{" circuit-component-declaration
*( "," circuit-component-declaration )
[ "," ] "}"
circuit-component-declaration = identifier ":" type