Пример #1
0
        public override void visit(LessThanEqualTo lteq)
        {
            lteq.lhs.accept(this);
            emit_move("a1", "a0");

            lteq.rhs.accept(this);
            emit_jal("less_eq");
        }
Пример #2
0
        public override void visit(LessThanEqualTo lte)
        {
            lte.lhs.accept(this);
            lte.rhs.accept(this);
            lte.type = Constants.BOOLEAN;

            if (lte.lhs.type != Constants.INTEGER || lte.rhs.type != Constants.INTEGER)
            {
                error(lte, "LHS or RHS of comparison operator not of type Int");
                lte.type = Constants.OBJECT;
            }
        }
Пример #3
0
        public override void visit(LessThanEqualTo lessThanEqualTo)
        {
            for (int i = 0; i < depth * 2; i++)
            {
                sw.Write(" ");
            }
            depth++;
            sw.WriteLine("_lessthanequalto : " + lessThanEqualTo.type);

            lessThanEqualTo.lhs.accept(this);
            lessThanEqualTo.rhs.accept(this);

            depth--;
        }
Пример #4
0
 public abstract void visit(LessThanEqualTo lessThanEqualTo);