From 4001b3aa7f02e353cc7d3e4712e2037881920d38 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Tue, 12 Apr 2022 14:52:39 -0400 Subject: Giving priority to comparison operators over boolean ops --- src/tparse/tree-value.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') 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, -- cgit v1.2.3