Package compiler.imcode

Examples of compiler.imcode.ImcBINOP


  public Integer execExpr(ImcExpr expr) {
    // if (debug == 1) System.err.println(prefix + expr);

    if (expr instanceof ImcBINOP) {
      ImcBINOP binop = (ImcBINOP)expr;
      Integer lval = execExpr(binop.limc);
      Integer rval = execExpr(binop.rimc);
      switch (binop.op) {
      case ImcBINOP.ADD: return lval + rval;
      case ImcBINOP.SUB: return lval - rval;
View Full Code Here

TOP

Related Classes of compiler.imcode.ImcBINOP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.