mirror of https://github.com/adamdruppe/arsd.git
bin compare precidence thnks mzfhhhh
This commit is contained in:
parent
60dda09f96
commit
68e67279f2
8
script.d
8
script.d
|
@ -2093,12 +2093,14 @@ Expression parseAddend(MyTokenStreamHere)(ref MyTokenStreamHere tokens) {
|
||||||
case "=":
|
case "=":
|
||||||
tokens.popFront();
|
tokens.popFront();
|
||||||
return new AssignExpression(e1, parseExpression(tokens));
|
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 "~":
|
case "~":
|
||||||
// FIXME: make sure this has the right associativity
|
// FIXME: make sure this has the right associativity
|
||||||
|
|
||||||
case "&&": // FIXME: precedence?
|
|
||||||
case "||":
|
|
||||||
|
|
||||||
case "&":
|
case "&":
|
||||||
case "|":
|
case "|":
|
||||||
case "^":
|
case "^":
|
||||||
|
|
Loading…
Reference in New Issue