Skip to content

Commit

Permalink
Updated grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Nov 21, 2024
1 parent 59fe4de commit 3335f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/antlr/CircomParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ blockDefiniton
functionDefinition: 'function' ID '(' argNames=simpleIdentifierList? ')' body ;

templateDefinition
: 'template' 'custom'? 'parallel'? ID '(' argNames=simpleIdentifierList? ')' body
: 'template' 'custom'? 'parallel'? ID ('(' argNames=simpleIdentifierList? ')')? body
;

busDefinition: 'bus' ID '(' argNames=simpleIdentifierList? ')' body ;
busDefinition: 'bus' ID ('(' argNames=simpleIdentifierList? ')')? body ;

publicInputsDefinition: '{' 'public' '[' publicInputs=simpleIdentifierList ']' '}' ;

Expand Down

0 comments on commit 3335f41

Please sign in to comment.