Esempio n. 1
0
  public static Script GenerateScript(ParseTree tree, String label) {
    Script s = new Script();

    s.hasBeenCompiled = true;
    s.compilerError = false;
    s.cright = new ArrayList<ParseTree>();
    s.cright.add(tree);
    s.label = label;

    return s;
  }
Esempio n. 2
0
 @Override
 public Construct execs(Target t, Environment env, Script parent, ParseTree... nodes) {
   switch (nodes.length) {
     case 0:
       return VOID;
     case 1:
       return parent.eval(nodes[0], env);
     default:
       return new __autoconcat__().execs(t, env, parent, nodes);
   }
 }