Examples of cons()


Examples of erjang.ECons.cons()

    Map<String,String> env = System.getenv();

    ECons res = ERT.NIL;
    for (Map.Entry<String,String> entry : env.entrySet()) {
      String s = entry.getKey() + "=" + entry.getValue();
      res = res.cons(EString.fromString(s));
    }
    return res;
  }

  @BIF
View Full Code Here

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

Examples of erjang.ESeq.cons()

    }

  public static ESeq toSymbolicList(Operand[] args) {
    ESeq res = ERT.NIL;
    for (int i = args.length-1; i >= 0; i--) {
      res = res.cons(args[i].toSymbolic());
    }
    return res;
  }

    public static abstract class SourceOperand extends Operand {
View Full Code Here

Examples of erjang.ESeq.cons()

   
    ESeq res = ERT.NIL;
   
    boolean is_local = fun.is_local();
   
    res = res.cons(fun.info(ERT.am_type));
    res = res.cons(fun.info(ERT.am_env));
    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
View Full Code Here

Examples of erjang.ESeq.cons()

    ESeq res = ERT.NIL;
   
    boolean is_local = fun.is_local();
   
    res = res.cons(fun.info(ERT.am_type));
    res = res.cons(fun.info(ERT.am_env));
    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
View Full Code Here

Examples of erjang.ESeq.cons()

   
    boolean is_local = fun.is_local();
   
    res = res.cons(fun.info(ERT.am_type));
    res = res.cons(fun.info(ERT.am_env));
    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
      res = res.cons(fun.info(ERT.am_index));
View Full Code Here

Examples of erjang.ESeq.cons()

    boolean is_local = fun.is_local();
   
    res = res.cons(fun.info(ERT.am_type));
    res = res.cons(fun.info(ERT.am_env));
    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
      res = res.cons(fun.info(ERT.am_index));
      res = res.cons(fun.info(ERT.am_new_uniq));
View Full Code Here

Examples of erjang.ESeq.cons()

    res = res.cons(fun.info(ERT.am_env));
    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
      res = res.cons(fun.info(ERT.am_index));
      res = res.cons(fun.info(ERT.am_new_uniq));
      res = res.cons(fun.info(ERT.am_new_index));
    }
   
View Full Code Here

Examples of erjang.ESeq.cons()

    res = res.cons(fun.info(ERT.am_arity));
    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
      res = res.cons(fun.info(ERT.am_index));
      res = res.cons(fun.info(ERT.am_new_uniq));
      res = res.cons(fun.info(ERT.am_new_index));
    }
   
    res = res.cons(fun.info(ERT.am_module));
View Full Code Here

Examples of erjang.ESeq.cons()

    res = res.cons(fun.info(ERT.am_name));
   
    if (is_local) {
      res = res.cons(fun.info(ERT.am_uniq));
      res = res.cons(fun.info(ERT.am_index));
      res = res.cons(fun.info(ERT.am_new_uniq));
      res = res.cons(fun.info(ERT.am_new_index));
    }
   
    res = res.cons(fun.info(ERT.am_module));
   
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.