diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-12 14:52:39 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-12 14:52:39 -0400 |
commit | 4001b3aa7f02e353cc7d3e4712e2037881920d38 (patch) | |
tree | a7123ea159541b84bf98b616e483185894c331b9 /src/tparse | |
parent | a7320b07567b51713f148cd24bc78e150d5e0940 (diff) |
Giving priority to comparison operators over boolean ops
Diffstat (limited to 'src/tparse')
-rw-r--r-- | src/tparse/tree-value.go | 20 |
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, |