summaryrefslogtreecommitdiff
path: root/src/tparse
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-12 14:52:39 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-12 14:52:39 -0400
commit4001b3aa7f02e353cc7d3e4712e2037881920d38 (patch)
treea7123ea159541b84bf98b616e483185894c331b9 /src/tparse
parenta7320b07567b51713f148cd24bc78e150d5e0940 (diff)
Giving priority to comparison operators over boolean ops
Diffstat (limited to 'src/tparse')
-rw-r--r--src/tparse/tree-value.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tparse/tree-value.go b/src/tparse/tree-value.go
index 7a0148a..7ae346c 100644
--- a/src/tparse/tree-value.go
+++ b/src/tparse/tree-value.go
@@ -73,21 +73,21 @@ var ORDER = map[string]int{
"==": 7,
"!==": 7,
+ // Greater than
+ ">": 7,
+ // Less than
+ "<": 7,
+
+ "!>": 7,
+ "!<": 7,
+ ">==": 7,
+ "<==": 7,
+
// Boolean and
"&&": 8,
// Boolean or
"||": 8,
- // Greater than
- ">": 8,
- // Less than
- "<": 8,
-
- "!>": 8,
- "!<": 8,
- ">==": 8,
- "<==": 8,
-
"!&&": 8,
"!||": 8,