Skip to content

Commit

Permalink
Fix typo. More optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Oct 14, 2024
1 parent 8c57806 commit 0a392df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grammar/Circom.g4
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ functionBlock

functionStmt
: functionBlock #FuncBlock
| ID SELF_OP ';' #FuncSelfOp
| ID arrayDimension* SELF_OP ';' #FuncSelfOp
| varDeclaration ';' #FuncVarDeclaration
| identifier (ASSIGNMENT | ASSIGNMENT_OP) expression ';' #FuncAssignmentExpression
| '(' argsWithUnderscore ')' ASSIGNMENT ('(' expressionList ')' | expression) ';' #FuncVariadicAssignment
Expand Down Expand Up @@ -61,7 +61,7 @@ publicInputsList

templateStmt
: templateBlock
| ID SELF_OP ';'
| ID arrayDimension* SELF_OP ';'
| varDeclaration ';'
| signalDeclaration ';'
| componentDeclaration ';'
Expand Down Expand Up @@ -161,7 +161,7 @@ blockInstantiation: 'parallel'? ID '(' expressionList? ')' componentCall? ;
expressionList: expression (',' expression)* ;

identifier
: ID arrayDimension* ('.' ID)? arrayDimension*
: ID arrayDimension* ('.' ID)? arrayDimension*
;

arrayDimension: '[' expression ']' ;
Expand Down

0 comments on commit 0a392df

Please sign in to comment.