mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
Merge pull request #1880 from AleoHQ/abnf-new-operators
[ABNF] Add new operators.
This commit is contained in:
commit
1971dd0aa1
@ -273,23 +273,39 @@ additive-expression = multiplicative-expression
|
||||
/ additive-expression "+" multiplicative-expression
|
||||
/ additive-expression "-" multiplicative-expression
|
||||
|
||||
ordering-expression = additive-expression
|
||||
/ additive-expression "<" additive-expression
|
||||
/ additive-expression ">" additive-expression
|
||||
/ additive-expression "<=" additive-expression
|
||||
/ additive-expression ">=" additive-expression
|
||||
shift-expression = additive-expression
|
||||
/ shift-expression "<<" additive-expression
|
||||
/ shift-expression ">>" additive-expression
|
||||
|
||||
bitwise-and-expression = shift-expression
|
||||
/ bitwise-and-expression "&" shift-expression
|
||||
|
||||
bitwise-inclusive-or-expression =
|
||||
bitwise-and-expression
|
||||
/ bitwise-inclusive-or-expression "|" bitwise-and-expression
|
||||
|
||||
bitwise-exclusive-or-expression =
|
||||
bitwise-inclusive-or-expression
|
||||
/ bitwise-exclusive-or-expression "^" bitwise-inclusive-or-expression
|
||||
|
||||
ordering-expression =
|
||||
bitwise-exclusive-or-expression
|
||||
/ bitwise-exclusive-or-expression "<" bitwise-exclusive-or-expression
|
||||
/ bitwise-exclusive-or-expression ">" bitwise-exclusive-or-expression
|
||||
/ bitwise-exclusive-or-expression "<=" bitwise-exclusive-or-expression
|
||||
/ bitwise-exclusive-or-expression ">=" bitwise-exclusive-or-expression
|
||||
|
||||
equality-expression = ordering-expression
|
||||
/ ordering-expression "==" ordering-expression
|
||||
/ ordering-expression "!=" ordering-expression
|
||||
|
||||
conjunctive-expression = equality-expression
|
||||
/ conjunctive-expression "&&" equality-expression
|
||||
boolean-and-expression = equality-expression
|
||||
/ boolean-and-expression "&&" equality-expression
|
||||
|
||||
disjunctive-expression = conjunctive-expression
|
||||
/ disjunctive-expression "||" conjunctive-expression
|
||||
boolean-or-expression = boolean-and-expression
|
||||
/ boolean-or-expression "||" boolean-and-expression
|
||||
|
||||
binary-expression = disjunctive-expression
|
||||
binary-expression = boolean-or-expression
|
||||
|
||||
conditional-expression = binary-expression
|
||||
/ binary-expression "?" expression ":" expression
|
||||
|
Loading…
Reference in New Issue
Block a user