summaryrefslogtreecommitdiff
path: root/src/tparse/tree-value.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/tree-value.go')
-rw-r--r--src/tparse/tree-value.go27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/tparse/tree-value.go b/src/tparse/tree-value.go
index 25982ff..7a0148a 100644
--- a/src/tparse/tree-value.go
+++ b/src/tparse/tree-value.go
@@ -69,27 +69,30 @@ var ORDER = map[string]int{
"!|": 6,
"!^": 6,
+ // Truthy equality
+ "==": 7,
+ "!==": 7,
+
// Boolean and
- "&&": 7,
+ "&&": 8,
// Boolean or
- "||": 7,
- // Truthy equals
- "==": 7,
+ "||": 8,
// Greater than
- ">": 7,
+ ">": 8,
// Less than
- "<": 7,
+ "<": 8,
- "!&&": 7,
- "!||": 7,
- "!==": 7,
+ "!>": 8,
+ "!<": 8,
+ ">==": 8,
+ "<==": 8,
- "!>": 7,
- "!<": 7,
+ "!&&": 8,
+ "!||": 8,
// Assignement
- "=": 8,
+ "=": 9,
}
// Works? Please test.