Add boolean xor operator and readjust % precedence.
This commit is contained in:
13
src/token.rs
13
src/token.rs
@@ -394,18 +394,17 @@ impl Token {
|
||||
|
||||
And | Ampersand => 60,
|
||||
|
||||
LessThan | LessThanEqualsTo | GreaterThan | GreaterThanEqualsTo | EqualsTo
|
||||
| NotEqualsTo => 90,
|
||||
EqualsTo | NotEqualsTo => 90,
|
||||
|
||||
In => 110,
|
||||
LessThan | LessThanEqualsTo | GreaterThan | GreaterThanEqualsTo => 110,
|
||||
|
||||
Plus | Minus => 130,
|
||||
In => 130,
|
||||
|
||||
Divide | Multiply | PowerOf => 160,
|
||||
Plus | Minus => 150,
|
||||
|
||||
LeftShift | RightShift => 190,
|
||||
Divide | Multiply | PowerOf | Modulo => 180,
|
||||
|
||||
Modulo => 210,
|
||||
LeftShift | RightShift => 210,
|
||||
|
||||
Period => 240,
|
||||
|
||||
|
Reference in New Issue
Block a user