diff ast/Exp.d @ 10:2f493057cf17

Some support for the rest of the boolean operators
author Anders Halager <halager@gmail.com>
date Fri, 18 Apr 2008 13:01:11 +0200
parents 2ce5209f1954
children 69464d465284
line wrap: on
line diff
--- a/ast/Exp.d	Fri Apr 18 12:52:53 2008 +0200
+++ b/ast/Exp.d	Fri Apr 18 13:01:11 2008 +0200
@@ -58,6 +58,8 @@
     public enum Operator
     {
         Eq, Ne,
+        Lt, Le,
+        Gt, Ge,
         Mul, Div,
         Add, Sub,
     }
@@ -72,7 +74,7 @@
 
     char[] resultType()
     {
-        if (op >= Operator.Eq && op <= Operator.Ne)
+        if (op >= Operator.Eq && op <= Operator.Ge)
             return "bool";
         return null;
     }