From 68e67279f27fd0a6f5bd90603070788f0bd857a4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 26 Mar 2019 20:28:19 -0400 Subject: [PATCH] bin compare precidence thnks mzfhhhh --- script.d | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script.d b/script.d index ae106c9..48471b1 100644 --- a/script.d +++ b/script.d @@ -2093,12 +2093,14 @@ Expression parseAddend(MyTokenStreamHere)(ref MyTokenStreamHere tokens) { case "=": tokens.popFront(); return new AssignExpression(e1, parseExpression(tokens)); + case "&&": // thanks to mzfhhhh for fix + case "||": + tokens.popFront(); + e1 = new BinaryExpression(peek.str, e1, parseExpression(tokens)); + break; case "~": // FIXME: make sure this has the right associativity - case "&&": // FIXME: precedence? - case "||": - case "&": case "|": case "^":