Package erjang

Examples of erjang.EObject.cons()


    @Override
    public EObject eval(EMatchContext ctx) {
      EObject head = head_expr.eval(ctx);
      EObject tail = tail_expr.eval(ctx);
      return tail.cons(head);
    }
  }

  static class ConstantExpr extends Expr {
View Full Code Here


      ev[ev.length-1].flip();
      resp = EBinary.make(ev[ev.length-1]);
   
      for (int i = ev.length-2; i >= 0; i--) {
        ev[i].flip();
        resp = resp.cons( EBinary.make(ev[i]) );
      }
    }
   
    } else {
      throw new NotImplemented();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.