Skip to content

Commit

Permalink
Changed order of ternary and unary expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Aug 13, 2024
1 parent 342b9b3 commit 4f2e1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar/Circom.g4
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ expression
: primary #PrimaryExpression
| blockInstantiation #BlockInstantiationExpression
| expression '.' ID ('[' expression ']')? #DotExpression
| expression '?' expression ':' expression #TernaryExpression
| op=('~' | '!') expression #UnaryExpression
| expression '?' expression ':' expression #TernaryExpression
| expression op=('**' | '*' | '/' | '\\' | '%') expression #BinaryExpression
| expression op=('+' | '-') expression #BinaryExpression
| expression op=('<<' | '>>') expression #BinaryExpression
Expand Down

0 comments on commit 4f2e1cd

Please sign in to comment.