Beispiel #1
0
 public void compileRight() throws ConfigCompileException {
   List<Token> temp = new ArrayList<Token>();
   right = new ArrayList<List<Token>>();
   for (Token t : fullRight) {
     if (t.type == TType.SEPERATOR) {
       right.add(temp);
       temp = new ArrayList<Token>();
     } else {
       if (t.type == TType.WHITESPACE) {
         continue; // Whitespace is ignored on the right side
       }
       temp.add(t);
     }
   }
   right.add(temp);
   cright = new ArrayList<ParseTree>();
   for (List<Token> l : right) {
     cright.add(MethodScriptCompiler.compile(l));
   }
 }