All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nowina.cadmelia.script.parser.ScriptParser Maven / Gradle / Ivy

The newest version!
/* Generated By:JavaCC: Do not edit this line. ScriptParser.java */
package net.nowina.cadmelia.script.parser;

import net.nowina.cadmelia.construction.Vector;
import net.nowina.cadmelia.script.*;
import net.nowina.cadmelia.script.expression.*;

public class ScriptParser implements ScriptParserConstants {

  final public Scope scope() throws ParseException {
    Instruction instruction;
    Scope scope;
    jj_consume_token(LBRACE);
      scope = new Scope();
    label_1:
    while (true) {
      if (jj_2_1(6)) {
        ;
      } else {
        break label_1;
      }
      instruction = scopeStatement();
          scope.addInstruction(instruction);
    }
    jj_consume_token(RBRACE);
      {if (true) return scope;}
    throw new Error("Missing return statement in function");
  }

  final public IfCommand IfCommand() throws ParseException {
    IfCommand ifCommand;
    Expression condition;
    Instruction instruction;
    jj_consume_token(IF);
    jj_consume_token(LP);
    condition = Expression();
    jj_consume_token(RP);
      ifCommand = new IfCommand(); ifCommand.setCondition(condition);
    if (jj_2_2(6)) {
      instruction = scope();
          ifCommand.setThenScope(instruction);
    } else if (jj_2_3(6)) {
      instruction = scopeStatement();
          ifCommand.setThenScope(instruction);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    if (jj_2_6(6)) {
      jj_consume_token(ELSE);
      if (jj_2_4(6)) {
        instruction = scope();
              ifCommand.setElseScope(instruction);
      } else if (jj_2_5(6)) {
        instruction = scopeStatement();
              ifCommand.setElseScope(instruction);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } else {
      ;
    }
      {if (true) return ifCommand;}
    throw new Error("Missing return statement in function");
  }

  final public Iteration iteration() throws ParseException {
    String variable;
    Expression iterableDef;
    Iteration iteration;
    variable = Name();
    jj_consume_token(EQ);
    iterableDef = Element();
      {if (true) return new Iteration(variable, iterableDef);}
    throw new Error("Missing return statement in function");
  }

  final public ForCommand For() throws ParseException {
    ForCommand it;
    Iteration iteration;
    Instruction instruction;
    if (jj_2_7(6)) {
      jj_consume_token(PERCENT);
    } else {
      ;
    }
    jj_consume_token(FOR);
      it = new ForCommand();
    jj_consume_token(LP);
    iteration = iteration();
          it.addIteration(iteration);
    label_2:
    while (true) {
      if (jj_2_8(6)) {
        ;
      } else {
        break label_2;
      }
      jj_consume_token(COMMA);
      iteration = iteration();
              it.addIteration(iteration);
    }
    jj_consume_token(RP);
    if (jj_2_9(6)) {
      instruction = scope();
          it.setInstruction(instruction);
    } else if (jj_2_10(6)) {
      instruction = scopeStatement();
          it.setInstruction(instruction);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
      {if (true) return it;}
    throw new Error("Missing return statement in function");
  }

/**
 * Return value of the  token
 */
  final public String Name() throws ParseException {
    Token t;
    t = jj_consume_token(NAME);
               {if (true) return t.image;}
    throw new Error("Missing return statement in function");
  }

/**
 * Return value of the  token
 */
  final public String readFilename() throws ParseException {
    Token t;
    t = jj_consume_token(FILENAME);
                   {if (true) return t.image;}
    throw new Error("Missing return statement in function");
  }

  final public Double Number() throws ParseException {
    Token t;
    t = jj_consume_token(NUMBER);
                 {if (true) return new Double(t.image);}
    throw new Error("Missing return statement in function");
  }

  final public Boolean Boolean() throws ParseException {
    Token t;
    t = jj_consume_token(BOOLEAN);
                  {if (true) return new Boolean(t.image);}
    throw new Error("Missing return statement in function");
  }

  final public Expression Vector() throws ParseException {
    Expression x,y,z = null;
    jj_consume_token(LB);
    x = Expression();
    jj_consume_token(COMMA);
    y = Expression();
    if (jj_2_11(6)) {
      jj_consume_token(COMMA);
      z = Expression();
    } else {
      ;
    }
    jj_consume_token(RB);
      {if (true) return ExpressionBuilder.element(x,y,z);}
    throw new Error("Missing return statement in function");
  }

  final public IterableDef iterableDefinition() throws ParseException {
    IterableDef def;
    if (jj_2_12(6)) {
      def = listDefinition();
      {if (true) return def;}
    } else if (jj_2_13(6)) {
      def = rangeDefinition();
      {if (true) return def;}
    } else if (jj_2_14(6)) {
      def = listFor();
      {if (true) return def;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public ListIterableDef listDefinition() throws ParseException {
    ListIterableDef l = null;
    Expression expr = null;
    jj_consume_token(LB);
    expr = Expression();
      l = new ListIterableDef(); l.add(expr);
    label_3:
    while (true) {
      if (jj_2_15(6)) {
        ;
      } else {
        break label_3;
      }
      jj_consume_token(COMMA);
      expr = Expression();
          l.add(expr);
    }
    if (jj_2_16(6)) {
      jj_consume_token(COMMA);
    } else {
      ;
    }
    jj_consume_token(RB);
      {if (true) return l;}
    throw new Error("Missing return statement in function");
  }

  final public RangeIterableDef rangeDefinition() throws ParseException {
    Expression start;
    Expression end;
    Expression increment = null;
    jj_consume_token(LB);
    start = Expression();
    jj_consume_token(COLON);
    if (jj_2_17(6)) {
      end = Expression();
      jj_consume_token(RB);
    } else if (jj_2_18(6)) {
      increment = Expression();
      jj_consume_token(COLON);
      end = Expression();
      jj_consume_token(RB);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
      {if (true) return new RangeIterableDef(start, end, increment);}
    throw new Error("Missing return statement in function");
  }

  final public InlineForExpression listFor() throws ParseException {
    String var;
    IterableDef range = null;
    Expression expr = null;
    String variableName;
    jj_consume_token(LB);
    if (jj_2_20(6)) {
      jj_consume_token(LET);
      jj_consume_token(LP);
      variableName = Name();
      jj_consume_token(EQ);
      expr = Expression();
      label_4:
      while (true) {
        if (jj_2_19(6)) {
          ;
        } else {
          break label_4;
        }
        jj_consume_token(COMMA);
        variableName = Name();
        jj_consume_token(EQ);
        expr = Expression();
      }
      jj_consume_token(RP);
    } else {
      ;
    }
    jj_consume_token(FOR);
    jj_consume_token(LP);
    var = Name();
    jj_consume_token(EQ);
    range = iterableDefinition();
    label_5:
    while (true) {
      if (jj_2_21(6)) {
        ;
      } else {
        break label_5;
      }
      jj_consume_token(COMMA);
      Name();
      jj_consume_token(EQ);
      Expression();
    }
    jj_consume_token(RP);
    expr = Expression();
    jj_consume_token(RB);
      {if (true) return new InlineForExpression(var, range, expr);}
    throw new Error("Missing return statement in function");
  }

  final public Argument Argument() throws ParseException {
    String name = null;
    Expression value;
    if (jj_2_22(3)) {
      name = Name();
      jj_consume_token(EQ);
    } else {
      ;
    }
    value = Expression();
        {if (true) return new Argument(name, value);}
    throw new Error("Missing return statement in function");
  }

  final public Parameter Parameter() throws ParseException {
    String name = null;
    Expression value = null;
    name = Name();
    if (jj_2_23(6)) {
      jj_consume_token(EQ);
      value = Expression();
    } else {
      ;
    }
        {if (true) return new Parameter(name, value);}
    throw new Error("Missing return statement in function");
  }

  final public Command control() throws ParseException {
    Command command;
    if (jj_2_26(6)) {
      command = For();
      if (jj_2_24(6)) {
        jj_consume_token(SEMICOLON);
      } else {
        ;
      }
      {if (true) return command;}
    } else if (jj_2_27(6)) {
      command = IfCommand();
      if (jj_2_25(6)) {
        jj_consume_token(SEMICOLON);
      } else {
        ;
      }
      {if (true) return command;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public Command Command() throws ParseException {
    String name;
    Command command;
    Argument arg;
    if (jj_2_30(6)) {
      if (jj_2_28(6)) {
        jj_consume_token(HASH);
      } else if (jj_2_29(6)) {
        jj_consume_token(PERCENT);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } else {
      ;
    }
    name = Name();
      command = new Command(name);
    jj_consume_token(LP);
    if (jj_2_31(6)) {
      arg = Argument();
          command.addArg(arg);
    } else {
      ;
    }
    label_6:
    while (true) {
      if (jj_2_32(6)) {
        ;
      } else {
        break label_6;
      }
      jj_consume_token(COMMA);
      arg = Argument();
          command.addArg(arg);
    }
    jj_consume_token(RP);
        {if (true) return command;}
    throw new Error("Missing return statement in function");
  }

  final public Command Chain() throws ParseException {
    Command chain = null;
    Command command = null;
    Command previous = null;
    Command internal = null;
    Scope scope = null;
    label_7:
    while (true) {
      command = Command();
          if(chain==null) chain = command;
          if(previous!=null) previous.addOperation(command);
          previous = command;
      if (jj_2_33(6)) {
        ;
      } else {
        break label_7;
      }
    }
    if (jj_2_39(6)) {
      if (jj_2_37(6)) {
        command = control();
              if(chain==null) chain = command;
              if(previous!=null) previous.addOperation(command);
              previous = command;
      } else if (jj_2_38(6)) {
        jj_consume_token(LBRACE);
        label_8:
        while (true) {
          if (jj_2_34(6)) {
            ;
          } else {
            break label_8;
          }
          if (jj_2_35(6)) {
            internal = Chain();
                  command.addOperation(internal);
          } else if (jj_2_36(6)) {
            internal = control();
                  command.addOperation(internal);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
        jj_consume_token(RBRACE);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } else {
      ;
    }
    if (jj_2_40(6)) {
      jj_consume_token(SEMICOLON);
    } else {
      ;
    }
     {if (true) return chain;}
    throw new Error("Missing return statement in function");
  }

  final public Module Module() throws ParseException {
    String name;
    Module m;
    Instruction instruction;
    Parameter param;
    jj_consume_token(MODULE);
    name = Name();
      m = new Module(name);
    jj_consume_token(LP);
    if (jj_2_41(6)) {
      param = Parameter();
              m.addParam(param);
    } else {
      ;
    }
    label_9:
    while (true) {
      if (jj_2_42(6)) {
        ;
      } else {
        break label_9;
      }
      jj_consume_token(COMMA);
      param = Parameter();
              m.addParam(param);
    }
    jj_consume_token(RP);
    if (jj_2_45(6)) {
      instruction = scopeStatement();
              m.addInstruction(instruction);
      if (jj_2_43(6)) {
        jj_consume_token(SEMICOLON);
      } else {
        ;
      }
    } else if (jj_2_46(6)) {
      jj_consume_token(LBRACE);
      label_10:
      while (true) {
        instruction = Statement();
              m.addInstruction(instruction);
        if (jj_2_44(6)) {
          ;
        } else {
          break label_10;
        }
      }
      jj_consume_token(RBRACE);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
      {if (true) return m;}
    throw new Error("Missing return statement in function");
  }

  final public Function FunctionDef() throws ParseException {
    String name;
    Function fun;
    Expression expression;
    Parameter param;
    jj_consume_token(FUNCTION);
    name = Name();
      fun = new Function(name);
    jj_consume_token(LP);
    if (jj_2_47(6)) {
      param = Parameter();
              fun.addParam(param);
    } else {
      ;
    }
    label_11:
    while (true) {
      if (jj_2_48(6)) {
        ;
      } else {
        break label_11;
      }
      jj_consume_token(COMMA);
      param = Parameter();
              fun.addParam(param);
    }
    jj_consume_token(RP);
    jj_consume_token(EQ);
    expression = Expression();
          fun.setExpression(expression);
    jj_consume_token(SEMICOLON);
      {if (true) return fun;}
    throw new Error("Missing return statement in function");
  }

/* ScopeStatement parse statement that can be inside a scope {} */
  final public Instruction scopeStatement() throws ParseException {
    Define def;
    Command op;
    Function fun;
    if (jj_2_49(6)) {
      def = Assignment();
      {if (true) return def;}
    } else if (jj_2_50(6)) {
      fun = FunctionDef();
      {if (true) return fun;}
    } else if (jj_2_51(6)) {
      op = Chain();
      {if (true) return op;}
    } else if (jj_2_52(6)) {
      op = control();
      {if (true) return op;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public Instruction Statement() throws ParseException {
    Instruction instruction;
    Module module;
    if (jj_2_53(6)) {
      instruction = scopeStatement();
      {if (true) return instruction;}
    } else if (jj_2_54(6)) {
      instruction = useFile();
      {if (true) return instruction;}
    } else if (jj_2_55(6)) {
      module = Module();
      {if (true) return module;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public Instruction useFile() throws ParseException {
    Instruction instr;
    String filename;
    jj_consume_token(USE);
    filename = readFilename();
        {if (true) return new Instruction(InstructionType.USE);}
    throw new Error("Missing return statement in function");
  }

  final public Script Script() throws ParseException {
    Script script;
    Instruction instruction;
      script = new Script();
    label_12:
    while (true) {
      if (jj_2_56(6)) {
        ;
      } else {
        break label_12;
      }
      instruction = Statement();
          script.add(instruction);
    }
    jj_consume_token(0);
      {if (true) return script;}
    throw new Error("Missing return statement in function");
  }

  final public Command Function() throws ParseException {
    Command command;
    String f;
    Argument arg;
    f = Name();
      command = new Command(f);
    jj_consume_token(LP);
    if (jj_2_57(6)) {
      arg = Argument();
          command.addArg(arg);
    } else {
      ;
    }
    label_13:
    while (true) {
      if (jj_2_58(6)) {
        ;
      } else {
        break label_13;
      }
      jj_consume_token(COMMA);
      arg = Argument();
          command.addArg(arg);
    }
    jj_consume_token(RP);
      {if (true) return command;}
    throw new Error("Missing return statement in function");
  }

  final public Expression Element() throws ParseException {
    Double value;
    String name;
    Boolean bool;
    String text;
    IterableDef list;
    Command function;
    Expression expression;
    if (jj_2_59(6)) {
      value = Number();
      {if (true) return ExpressionBuilder.element(value);}
    } else if (jj_2_60(6)) {
      expression = listFor();
      {if (true) return expression;}
    } else if (jj_2_61(6)) {
      list = iterableDefinition();
      {if (true) return ExpressionBuilder.element(list);}
    } else if (jj_2_62(6)) {
      expression = vectorElement();
      {if (true) return expression;}
    } else if (jj_2_63(6)) {
      function = Function();
      {if (true) return ExpressionBuilder.elementFunction(function);}
    } else if (jj_2_64(6)) {
      name = Name();
      {if (true) return ExpressionBuilder.element(name);}
    } else if (jj_2_65(6)) {
      expression = Vector();
      {if (true) return expression;}
    } else if (jj_2_66(6)) {
      bool = Boolean();
      {if (true) return ExpressionBuilder.element(bool);}
    } else if (jj_2_67(6)) {
      text = String();
      {if (true) return ExpressionBuilder.elementText(text);}
    } else if (jj_2_68(6)) {
      jj_consume_token(LP);
      expression = Expression();
      jj_consume_token(RP);
      {if (true) return expression;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public Expression vectorElement() throws ParseException {
    String variableName;
    Expression list;
    Expression index;
    variableName = Name();
      list = ExpressionBuilder.element(variableName);
    list = indexVectorElement(list);
      {if (true) return list;}
    throw new Error("Missing return statement in function");
  }

  final public Expression indexVectorElement(Expression list) throws ParseException {
    Expression index;
    Expression expr;
      expr = list;
    label_14:
    while (true) {
      jj_consume_token(LB);
      index = Expression();
          expr = ExpressionBuilder.vectorElement(expr, index);
      jj_consume_token(RB);
      if (jj_2_69(6)) {
        ;
      } else {
        break label_14;
      }
    }
      {if (true) return expr;}
    throw new Error("Missing return statement in function");
  }

  final public Expression Unary() throws ParseException {
    Expression expression;
    if (jj_2_70(6)) {
      jj_consume_token(MINUS);
      expression = Element();
                                     {if (true) return expression.neg();}
    } else if (jj_2_71(6)) {
      jj_consume_token(PLUS);
      expression = Element();
                                      {if (true) return expression;}
    } else if (jj_2_72(6)) {
      expression = Element();
                               {if (true) return expression;}
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  final public Expression Term() throws ParseException {
    Expression expression;
    Expression term;
    expression = Unary();
    label_15:
    while (true) {
      if (jj_2_73(6)) {
        ;
      } else {
        break label_15;
      }
      if (jj_2_74(6)) {
        jj_consume_token(TIMES);
        term = Unary();
          expression = expression.times(term);
      } else if (jj_2_75(6)) {
        jj_consume_token(DIVIDE);
        term = Unary();
          expression = expression.divide(term);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
      {if (true) return expression;}
    throw new Error("Missing return statement in function");
  }

  final public Expression Factor() throws ParseException {
    Expression expression;
    Expression exp2;
    expression = Term();
    label_16:
    while (true) {
      if (jj_2_76(6)) {
        ;
      } else {
        break label_16;
      }
      if (jj_2_77(6)) {
        jj_consume_token(PLUS);
        exp2 = Term();
          expression = expression.plus(exp2);
      } else if (jj_2_78(6)) {
        jj_consume_token(MINUS);
        exp2 = Term();
          expression = expression.minus(exp2);
      } else if (jj_2_79(6)) {
        jj_consume_token(PERCENT);
        exp2 = Term();
          expression = expression.modulo(exp2);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
      {if (true) return expression;}
    throw new Error("Missing return statement in function");
  }

  final public Expression BooleanOrExpression() throws ParseException {
    Expression exp;
    Expression exp2;
    exp = Factor();
    if (jj_2_86(6)) {
      if (jj_2_80(6)) {
        jj_consume_token(BOOLEAN_EQUAL);
        exp2 = Factor();
          exp = exp.booleanEquals(exp2);
      } else if (jj_2_81(6)) {
        jj_consume_token(BOOLEAN_NOT_EQUAL);
        exp2 = Factor();
          exp = exp.booleanNotEquals(exp2);
      } else if (jj_2_82(6)) {
        jj_consume_token(GTE);
        exp2 = Factor();
          exp = exp.greaterOrEqualThan(exp2);
      } else if (jj_2_83(6)) {
        jj_consume_token(LTE);
        exp2 = Factor();
          exp = exp.lowerOrEqualThan(exp2);
      } else if (jj_2_84(6)) {
        jj_consume_token(LT);
        exp2 = Factor();
          exp = exp.lowerThan(exp2);
      } else if (jj_2_85(6)) {
        jj_consume_token(GT);
        exp2 = Factor();
          exp = exp.greaterThan(exp2);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } else {
      ;
    }
      {if (true) return exp;}
    throw new Error("Missing return statement in function");
  }

  final public Expression ExpressionAnd2Or2() throws ParseException {
    Expression exp;
    Expression exp2;
    exp = BooleanOrExpression();
    if (jj_2_89(6)) {
      if (jj_2_87(6)) {
        jj_consume_token(OR2);
        exp2 = BooleanOrExpression();
          exp = exp.or2(exp2);
      } else if (jj_2_88(6)) {
        jj_consume_token(AND2);
        exp2 = BooleanOrExpression();
          exp = exp.and2(exp2);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    } else {
      ;
    }
      {if (true) return exp;}
    throw new Error("Missing return statement in function");
  }

  final public Expression letOrExpression() throws ParseException {
    String variableName;
    Expression exp;
    if (jj_2_91(6)) {
      jj_consume_token(LET);
      jj_consume_token(LP);
      variableName = Name();
      jj_consume_token(EQ);
      exp = Expression();
      label_17:
      while (true) {
        if (jj_2_90(6)) {
          ;
        } else {
          break label_17;
        }
        jj_consume_token(COMMA);
        variableName = Name();
        jj_consume_token(EQ);
        exp = Expression();
      }
      jj_consume_token(RP);
    } else {
      ;
    }
    exp = inlineIfExpression();
      {if (true) return exp;}
    throw new Error("Missing return statement in function");
  }

  final public Expression inlineIfExpression() throws ParseException {
    Expression exp;
    Expression thenExpr = null;
    Expression elseExpr = null;
    exp = ExpressionAnd2Or2();
    if (jj_2_92(6)) {
      jj_consume_token(QUESTION);
      thenExpr = ExpressionAnd2Or2();
      jj_consume_token(COLON);
      elseExpr = ExpressionAnd2Or2();
          {if (true) return ExpressionBuilder.inlineIf(exp, thenExpr, elseExpr);}
    } else {
      ;
    }
      {if (true) return exp;}
    throw new Error("Missing return statement in function");
  }

  final public Expression Expression() throws ParseException {
    Expression exp;
    exp = letOrExpression();
      {if (true) return exp;}
    throw new Error("Missing return statement in function");
  }

  final public Define Assignment() throws ParseException {
    Token name = null;
    Expression expression = null;
    name = jj_consume_token(NAME);
    jj_consume_token(EQ);
    expression = Expression();
    jj_consume_token(SEMICOLON);
      {if (true) return new Define(name.image, expression);}
    throw new Error("Missing return statement in function");
  }

/**
 * Match a quoted string.
 */
  final public String String() throws ParseException {
  StringBuilder builder = new StringBuilder();
    jj_consume_token(QUOTE);
    label_18:
    while (true) {
      if (jj_2_93(6)) {
        ;
      } else {
        break label_18;
      }
      ConsumeChar(builder);
    }
    jj_consume_token(ENDQUOTE);
    {if (true) return builder.toString();}
    throw new Error("Missing return statement in function");
  }

/**
 * Match char inside quoted string.
 */
  final public void ConsumeChar(StringBuilder builder) throws ParseException {
  Token t;
    if (jj_2_94(6)) {
      t = jj_consume_token(CHAR);
    } else if (jj_2_95(6)) {
      t = jj_consume_token(CNTRL_ESC);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
    if (t.image.length() < 2)
    {
      // CHAR
      builder.append(t.image.charAt(0));
    }
    else if (t.image.length() < 6)
    {
      // ESC
      char c = t.image.charAt(1);
      switch (c)
      {
        case 'b': builder.append((char) 8); break;
        case 'f': builder.append((char) 12); break;
        case 'n': builder.append((char) 10); break;
        case 'r': builder.append((char) 13); break;
        case 't': builder.append((char) 9); break;
        case 'u':
            builder.append('*'); break;
        default: builder.append(c);
      }
    }
  }

  private boolean jj_2_1(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_1(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(0, xla); }
  }

  private boolean jj_2_2(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_2(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(1, xla); }
  }

  private boolean jj_2_3(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_3(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(2, xla); }
  }

  private boolean jj_2_4(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_4(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(3, xla); }
  }

  private boolean jj_2_5(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_5(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(4, xla); }
  }

  private boolean jj_2_6(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_6(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(5, xla); }
  }

  private boolean jj_2_7(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_7(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(6, xla); }
  }

  private boolean jj_2_8(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_8(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(7, xla); }
  }

  private boolean jj_2_9(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_9(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(8, xla); }
  }

  private boolean jj_2_10(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_10(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(9, xla); }
  }

  private boolean jj_2_11(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_11(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(10, xla); }
  }

  private boolean jj_2_12(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_12(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(11, xla); }
  }

  private boolean jj_2_13(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_13(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(12, xla); }
  }

  private boolean jj_2_14(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_14(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(13, xla); }
  }

  private boolean jj_2_15(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_15(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(14, xla); }
  }

  private boolean jj_2_16(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_16(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(15, xla); }
  }

  private boolean jj_2_17(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_17(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(16, xla); }
  }

  private boolean jj_2_18(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_18(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(17, xla); }
  }

  private boolean jj_2_19(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_19(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(18, xla); }
  }

  private boolean jj_2_20(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_20(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(19, xla); }
  }

  private boolean jj_2_21(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_21(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(20, xla); }
  }

  private boolean jj_2_22(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_22(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(21, xla); }
  }

  private boolean jj_2_23(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_23(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(22, xla); }
  }

  private boolean jj_2_24(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_24(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(23, xla); }
  }

  private boolean jj_2_25(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_25(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(24, xla); }
  }

  private boolean jj_2_26(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_26(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(25, xla); }
  }

  private boolean jj_2_27(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_27(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(26, xla); }
  }

  private boolean jj_2_28(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_28(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(27, xla); }
  }

  private boolean jj_2_29(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_29(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(28, xla); }
  }

  private boolean jj_2_30(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_30(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(29, xla); }
  }

  private boolean jj_2_31(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_31(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(30, xla); }
  }

  private boolean jj_2_32(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_32(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(31, xla); }
  }

  private boolean jj_2_33(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_33(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(32, xla); }
  }

  private boolean jj_2_34(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_34(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(33, xla); }
  }

  private boolean jj_2_35(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_35(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(34, xla); }
  }

  private boolean jj_2_36(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_36(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(35, xla); }
  }

  private boolean jj_2_37(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_37(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(36, xla); }
  }

  private boolean jj_2_38(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_38(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(37, xla); }
  }

  private boolean jj_2_39(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_39(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(38, xla); }
  }

  private boolean jj_2_40(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_40(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(39, xla); }
  }

  private boolean jj_2_41(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_41(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(40, xla); }
  }

  private boolean jj_2_42(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_42(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(41, xla); }
  }

  private boolean jj_2_43(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_43(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(42, xla); }
  }

  private boolean jj_2_44(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_44(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(43, xla); }
  }

  private boolean jj_2_45(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_45(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(44, xla); }
  }

  private boolean jj_2_46(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_46(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(45, xla); }
  }

  private boolean jj_2_47(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_47(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(46, xla); }
  }

  private boolean jj_2_48(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_48(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(47, xla); }
  }

  private boolean jj_2_49(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_49(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(48, xla); }
  }

  private boolean jj_2_50(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_50(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(49, xla); }
  }

  private boolean jj_2_51(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_51(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(50, xla); }
  }

  private boolean jj_2_52(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_52(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(51, xla); }
  }

  private boolean jj_2_53(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_53(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(52, xla); }
  }

  private boolean jj_2_54(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_54(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(53, xla); }
  }

  private boolean jj_2_55(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_55(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(54, xla); }
  }

  private boolean jj_2_56(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_56(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(55, xla); }
  }

  private boolean jj_2_57(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_57(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(56, xla); }
  }

  private boolean jj_2_58(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_58(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(57, xla); }
  }

  private boolean jj_2_59(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_59(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(58, xla); }
  }

  private boolean jj_2_60(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_60(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(59, xla); }
  }

  private boolean jj_2_61(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_61(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(60, xla); }
  }

  private boolean jj_2_62(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_62(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(61, xla); }
  }

  private boolean jj_2_63(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_63(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(62, xla); }
  }

  private boolean jj_2_64(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_64(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(63, xla); }
  }

  private boolean jj_2_65(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_65(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(64, xla); }
  }

  private boolean jj_2_66(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_66(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(65, xla); }
  }

  private boolean jj_2_67(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_67(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(66, xla); }
  }

  private boolean jj_2_68(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_68(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(67, xla); }
  }

  private boolean jj_2_69(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_69(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(68, xla); }
  }

  private boolean jj_2_70(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_70(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(69, xla); }
  }

  private boolean jj_2_71(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_71(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(70, xla); }
  }

  private boolean jj_2_72(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_72(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(71, xla); }
  }

  private boolean jj_2_73(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_73(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(72, xla); }
  }

  private boolean jj_2_74(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_74(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(73, xla); }
  }

  private boolean jj_2_75(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_75(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(74, xla); }
  }

  private boolean jj_2_76(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_76(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(75, xla); }
  }

  private boolean jj_2_77(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_77(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(76, xla); }
  }

  private boolean jj_2_78(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_78(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(77, xla); }
  }

  private boolean jj_2_79(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_79(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(78, xla); }
  }

  private boolean jj_2_80(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_80(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(79, xla); }
  }

  private boolean jj_2_81(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_81(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(80, xla); }
  }

  private boolean jj_2_82(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_82(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(81, xla); }
  }

  private boolean jj_2_83(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_83(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(82, xla); }
  }

  private boolean jj_2_84(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_84(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(83, xla); }
  }

  private boolean jj_2_85(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_85(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(84, xla); }
  }

  private boolean jj_2_86(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_86(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(85, xla); }
  }

  private boolean jj_2_87(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_87(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(86, xla); }
  }

  private boolean jj_2_88(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_88(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(87, xla); }
  }

  private boolean jj_2_89(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_89(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(88, xla); }
  }

  private boolean jj_2_90(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_90(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(89, xla); }
  }

  private boolean jj_2_91(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_91(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(90, xla); }
  }

  private boolean jj_2_92(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_92(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(91, xla); }
  }

  private boolean jj_2_93(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_93(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(92, xla); }
  }

  private boolean jj_2_94(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_94(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(93, xla); }
  }

  private boolean jj_2_95(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    try { return !jj_3_95(); }
    catch(LookaheadSuccess ls) { return true; }
    finally { jj_save(94, xla); }
  }

  private boolean jj_3_90() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_27() {
    if (jj_3R_28()) return true;
    return false;
  }

  private boolean jj_3_56() {
    if (jj_3R_34()) return true;
    return false;
  }

  private boolean jj_3R_32() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_26()) {
    jj_scanpos = xsp;
    if (jj_3_27()) return true;
    }
    return false;
  }

  private boolean jj_3_91() {
    if (jj_scan_token(LET)) return true;
    if (jj_scan_token(LP)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_90()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    return false;
  }

  private boolean jj_3_26() {
    if (jj_3R_27()) return true;
    return false;
  }

  private boolean jj_3R_53() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_91()) jj_scanpos = xsp;
    if (jj_3R_56()) return true;
    return false;
  }

  private boolean jj_3_7() {
    if (jj_scan_token(PERCENT)) return true;
    return false;
  }

  private boolean jj_3R_27() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_7()) jj_scanpos = xsp;
    if (jj_scan_token(FOR)) return true;
    if (jj_scan_token(LP)) return true;
    if (jj_3R_21()) return true;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_8()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    return false;
  }

  private boolean jj_3_88() {
    if (jj_scan_token(AND2)) return true;
    if (jj_3R_50()) return true;
    return false;
  }

  private boolean jj_3_23() {
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_89() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_87()) {
    jj_scanpos = xsp;
    if (jj_3_88()) return true;
    }
    return false;
  }

  private boolean jj_3_87() {
    if (jj_scan_token(OR2)) return true;
    if (jj_3R_50()) return true;
    return false;
  }

  private boolean jj_3R_21() {
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_46()) return true;
    return false;
  }

  private boolean jj_3R_33() {
    if (jj_3R_26()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_23()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3R_37() {
    if (jj_scan_token(USE)) return true;
    if (jj_3R_54()) return true;
    return false;
  }

  private boolean jj_3R_51() {
    if (jj_3R_50()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_89()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3_5() {
    if (jj_3R_19()) return true;
    return false;
  }

  private boolean jj_3_4() {
    if (jj_3R_20()) return true;
    return false;
  }

  private boolean jj_3_55() {
    if (jj_3R_38()) return true;
    return false;
  }

  private boolean jj_3_85() {
    if (jj_scan_token(GT)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3_22() {
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    return false;
  }

  private boolean jj_3R_29() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_22()) jj_scanpos = xsp;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_54() {
    if (jj_3R_37()) return true;
    return false;
  }

  private boolean jj_3_84() {
    if (jj_scan_token(LT)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3R_34() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_53()) {
    jj_scanpos = xsp;
    if (jj_3_54()) {
    jj_scanpos = xsp;
    if (jj_3_55()) return true;
    }
    }
    return false;
  }

  private boolean jj_3_53() {
    if (jj_3R_19()) return true;
    return false;
  }

  private boolean jj_3_83() {
    if (jj_scan_token(LTE)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3_6() {
    if (jj_scan_token(ELSE)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_4()) {
    jj_scanpos = xsp;
    if (jj_3_5()) return true;
    }
    return false;
  }

  private boolean jj_3_82() {
    if (jj_scan_token(GTE)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3_3() {
    if (jj_3R_19()) return true;
    return false;
  }

  private boolean jj_3_81() {
    if (jj_scan_token(BOOLEAN_NOT_EQUAL)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3_2() {
    if (jj_3R_20()) return true;
    return false;
  }

  private boolean jj_3_21() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_86() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_80()) {
    jj_scanpos = xsp;
    if (jj_3_81()) {
    jj_scanpos = xsp;
    if (jj_3_82()) {
    jj_scanpos = xsp;
    if (jj_3_83()) {
    jj_scanpos = xsp;
    if (jj_3_84()) {
    jj_scanpos = xsp;
    if (jj_3_85()) return true;
    }
    }
    }
    }
    }
    return false;
  }

  private boolean jj_3_80() {
    if (jj_scan_token(BOOLEAN_EQUAL)) return true;
    if (jj_3R_49()) return true;
    return false;
  }

  private boolean jj_3_19() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_52() {
    if (jj_3R_32()) return true;
    return false;
  }

  private boolean jj_3_51() {
    if (jj_3R_31()) return true;
    return false;
  }

  private boolean jj_3R_50() {
    if (jj_3R_49()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_86()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3R_28() {
    if (jj_scan_token(IF)) return true;
    if (jj_scan_token(LP)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(RP)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_2()) {
    jj_scanpos = xsp;
    if (jj_3_3()) return true;
    }
    return false;
  }

  private boolean jj_3_50() {
    if (jj_3R_36()) return true;
    return false;
  }

  private boolean jj_3_20() {
    if (jj_scan_token(LET)) return true;
    if (jj_scan_token(LP)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_19()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    return false;
  }

  private boolean jj_3R_25() {
    if (jj_scan_token(LB)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_20()) jj_scanpos = xsp;
    if (jj_scan_token(FOR)) return true;
    if (jj_scan_token(LP)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_40()) return true;
    return false;
  }

  private boolean jj_3R_19() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_49()) {
    jj_scanpos = xsp;
    if (jj_3_50()) {
    jj_scanpos = xsp;
    if (jj_3_51()) {
    jj_scanpos = xsp;
    if (jj_3_52()) return true;
    }
    }
    }
    return false;
  }

  private boolean jj_3_49() {
    if (jj_3R_35()) return true;
    return false;
  }

  private boolean jj_3_79() {
    if (jj_scan_token(PERCENT)) return true;
    if (jj_3R_48()) return true;
    return false;
  }

  private boolean jj_3_1() {
    if (jj_3R_19()) return true;
    return false;
  }

  private boolean jj_3_78() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_3R_48()) return true;
    return false;
  }

  private boolean jj_3_77() {
    if (jj_scan_token(PLUS)) return true;
    if (jj_3R_48()) return true;
    return false;
  }

  private boolean jj_3_76() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_77()) {
    jj_scanpos = xsp;
    if (jj_3_78()) {
    jj_scanpos = xsp;
    if (jj_3_79()) return true;
    }
    }
    return false;
  }

  private boolean jj_3_48() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_33()) return true;
    return false;
  }

  private boolean jj_3_47() {
    if (jj_3R_33()) return true;
    return false;
  }

  private boolean jj_3R_20() {
    if (jj_scan_token(LBRACE)) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_1()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RBRACE)) return true;
    return false;
  }

  private boolean jj_3_18() {
    if (jj_3R_22()) return true;
    if (jj_scan_token(COLON)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(RB)) return true;
    return false;
  }

  private boolean jj_3R_49() {
    if (jj_3R_48()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_76()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  private boolean jj_3_17() {
    if (jj_3R_22()) return true;
    if (jj_scan_token(RB)) return true;
    return false;
  }

  private boolean jj_3R_36() {
    if (jj_scan_token(FUNCTION)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(LP)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_47()) jj_scanpos = xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_48()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_75() {
    if (jj_scan_token(DIVIDE)) return true;
    if (jj_3R_47()) return true;
    return false;
  }

  private boolean jj_3R_24() {
    if (jj_scan_token(LB)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(COLON)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_17()) {
    jj_scanpos = xsp;
    if (jj_3_18()) return true;
    }
    return false;
  }

  private boolean jj_3_74() {
    if (jj_scan_token(TIMES)) return true;
    if (jj_3R_47()) return true;
    return false;
  }

  private boolean jj_3_73() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_74()) {
    jj_scanpos = xsp;
    if (jj_3_75()) return true;
    }
    return false;
  }

  private boolean jj_3_44() {
    if (jj_3R_34()) return true;
    return false;
  }

  private boolean jj_3R_48() {
    if (jj_3R_47()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_73()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  private boolean jj_3_43() {
    if (jj_scan_token(SEMICOLON)) return true;
    return false;
  }

  private boolean jj_3_16() {
    if (jj_scan_token(COMMA)) return true;
    return false;
  }

  private boolean jj_3_46() {
    if (jj_scan_token(LBRACE)) return true;
    Token xsp;
    if (jj_3_44()) return true;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_44()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RBRACE)) return true;
    return false;
  }

  private boolean jj_3_15() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_72() {
    if (jj_3R_46()) return true;
    return false;
  }

  private boolean jj_3_71() {
    if (jj_scan_token(PLUS)) return true;
    if (jj_3R_46()) return true;
    return false;
  }

  private boolean jj_3R_47() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_70()) {
    jj_scanpos = xsp;
    if (jj_3_71()) {
    jj_scanpos = xsp;
    if (jj_3_72()) return true;
    }
    }
    return false;
  }

  private boolean jj_3_70() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_3R_46()) return true;
    return false;
  }

  private boolean jj_3_45() {
    if (jj_3R_19()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_43()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3R_23() {
    if (jj_scan_token(LB)) return true;
    if (jj_3R_22()) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_15()) { jj_scanpos = xsp; break; }
    }
    xsp = jj_scanpos;
    if (jj_3_16()) jj_scanpos = xsp;
    if (jj_scan_token(RB)) return true;
    return false;
  }

  private boolean jj_3_42() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_33()) return true;
    return false;
  }

  private boolean jj_3_41() {
    if (jj_3R_33()) return true;
    return false;
  }

  private boolean jj_3_69() {
    if (jj_scan_token(LB)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(RB)) return true;
    return false;
  }

  private boolean jj_3R_55() {
    Token xsp;
    if (jj_3_69()) return true;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_69()) { jj_scanpos = xsp; break; }
    }
    return false;
  }

  private boolean jj_3_95() {
    if (jj_scan_token(CNTRL_ESC)) return true;
    return false;
  }

  private boolean jj_3_14() {
    if (jj_3R_25()) return true;
    return false;
  }

  private boolean jj_3R_38() {
    if (jj_scan_token(MODULE)) return true;
    if (jj_3R_26()) return true;
    if (jj_scan_token(LP)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_41()) jj_scanpos = xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_42()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    xsp = jj_scanpos;
    if (jj_3_45()) {
    jj_scanpos = xsp;
    if (jj_3_46()) return true;
    }
    return false;
  }

  private boolean jj_3_13() {
    if (jj_3R_24()) return true;
    return false;
  }

  private boolean jj_3R_40() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_12()) {
    jj_scanpos = xsp;
    if (jj_3_13()) {
    jj_scanpos = xsp;
    if (jj_3_14()) return true;
    }
    }
    return false;
  }

  private boolean jj_3_12() {
    if (jj_3R_23()) return true;
    return false;
  }

  private boolean jj_3_36() {
    if (jj_3R_32()) return true;
    return false;
  }

  private boolean jj_3R_41() {
    if (jj_3R_26()) return true;
    if (jj_3R_55()) return true;
    return false;
  }

  private boolean jj_3_94() {
    if (jj_scan_token(CHAR)) return true;
    return false;
  }

  private boolean jj_3_40() {
    if (jj_scan_token(SEMICOLON)) return true;
    return false;
  }

  private boolean jj_3_35() {
    if (jj_3R_31()) return true;
    return false;
  }

  private boolean jj_3_34() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_35()) {
    jj_scanpos = xsp;
    if (jj_3_36()) return true;
    }
    return false;
  }

  private boolean jj_3R_52() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_94()) {
    jj_scanpos = xsp;
    if (jj_3_95()) return true;
    }
    return false;
  }

  private boolean jj_3_11() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_22()) return true;
    return false;
  }

  private boolean jj_3_93() {
    if (jj_3R_52()) return true;
    return false;
  }

  private boolean jj_3_68() {
    if (jj_scan_token(LP)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(RP)) return true;
    return false;
  }

  private boolean jj_3R_43() {
    if (jj_scan_token(LB)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_22()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_11()) jj_scanpos = xsp;
    if (jj_scan_token(RB)) return true;
    return false;
  }

  private boolean jj_3_38() {
    if (jj_scan_token(LBRACE)) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_34()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RBRACE)) return true;
    return false;
  }

  private boolean jj_3_67() {
    if (jj_3R_45()) return true;
    return false;
  }

  private boolean jj_3R_45() {
    if (jj_scan_token(QUOTE)) return true;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_93()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(ENDQUOTE)) return true;
    return false;
  }

  private boolean jj_3_66() {
    if (jj_3R_44()) return true;
    return false;
  }

  private boolean jj_3R_44() {
    if (jj_scan_token(BOOLEAN)) return true;
    return false;
  }

  private boolean jj_3_37() {
    if (jj_3R_32()) return true;
    return false;
  }

  private boolean jj_3_39() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_37()) {
    jj_scanpos = xsp;
    if (jj_3_38()) return true;
    }
    return false;
  }

  private boolean jj_3_65() {
    if (jj_3R_43()) return true;
    return false;
  }

  private boolean jj_3_64() {
    if (jj_3R_26()) return true;
    return false;
  }

  private boolean jj_3_63() {
    if (jj_3R_42()) return true;
    return false;
  }

  private boolean jj_3R_39() {
    if (jj_scan_token(NUMBER)) return true;
    return false;
  }

  private boolean jj_3_62() {
    if (jj_3R_41()) return true;
    return false;
  }

  private boolean jj_3R_35() {
    if (jj_scan_token(NAME)) return true;
    if (jj_scan_token(EQ)) return true;
    if (jj_3R_22()) return true;
    if (jj_scan_token(SEMICOLON)) return true;
    return false;
  }

  private boolean jj_3_33() {
    if (jj_3R_30()) return true;
    return false;
  }

  private boolean jj_3R_31() {
    Token xsp;
    if (jj_3_33()) return true;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_33()) { jj_scanpos = xsp; break; }
    }
    xsp = jj_scanpos;
    if (jj_3_39()) jj_scanpos = xsp;
    xsp = jj_scanpos;
    if (jj_3_40()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3_61() {
    if (jj_3R_40()) return true;
    return false;
  }

  private boolean jj_3_60() {
    if (jj_3R_25()) return true;
    return false;
  }

  private boolean jj_3R_54() {
    if (jj_scan_token(FILENAME)) return true;
    return false;
  }

  private boolean jj_3R_46() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_59()) {
    jj_scanpos = xsp;
    if (jj_3_60()) {
    jj_scanpos = xsp;
    if (jj_3_61()) {
    jj_scanpos = xsp;
    if (jj_3_62()) {
    jj_scanpos = xsp;
    if (jj_3_63()) {
    jj_scanpos = xsp;
    if (jj_3_64()) {
    jj_scanpos = xsp;
    if (jj_3_65()) {
    jj_scanpos = xsp;
    if (jj_3_66()) {
    jj_scanpos = xsp;
    if (jj_3_67()) {
    jj_scanpos = xsp;
    if (jj_3_68()) return true;
    }
    }
    }
    }
    }
    }
    }
    }
    }
    return false;
  }

  private boolean jj_3_59() {
    if (jj_3R_39()) return true;
    return false;
  }

  private boolean jj_3R_22() {
    if (jj_3R_53()) return true;
    return false;
  }

  private boolean jj_3_32() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_29()) return true;
    return false;
  }

  private boolean jj_3_25() {
    if (jj_scan_token(SEMICOLON)) return true;
    return false;
  }

  private boolean jj_3R_26() {
    if (jj_scan_token(NAME)) return true;
    return false;
  }

  private boolean jj_3_31() {
    if (jj_3R_29()) return true;
    return false;
  }

  private boolean jj_3_29() {
    if (jj_scan_token(PERCENT)) return true;
    return false;
  }

  private boolean jj_3_92() {
    if (jj_scan_token(QUESTION)) return true;
    if (jj_3R_51()) return true;
    if (jj_scan_token(COLON)) return true;
    if (jj_3R_51()) return true;
    return false;
  }

  private boolean jj_3_58() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_29()) return true;
    return false;
  }

  private boolean jj_3_57() {
    if (jj_3R_29()) return true;
    return false;
  }

  private boolean jj_3_10() {
    if (jj_3R_19()) return true;
    return false;
  }

  private boolean jj_3_30() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_28()) {
    jj_scanpos = xsp;
    if (jj_3_29()) return true;
    }
    return false;
  }

  private boolean jj_3_28() {
    if (jj_scan_token(HASH)) return true;
    return false;
  }

  private boolean jj_3R_30() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_30()) jj_scanpos = xsp;
    if (jj_3R_26()) return true;
    if (jj_scan_token(LP)) return true;
    xsp = jj_scanpos;
    if (jj_3_31()) jj_scanpos = xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_32()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    return false;
  }

  private boolean jj_3_24() {
    if (jj_scan_token(SEMICOLON)) return true;
    return false;
  }

  private boolean jj_3R_56() {
    if (jj_3R_51()) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_92()) jj_scanpos = xsp;
    return false;
  }

  private boolean jj_3_9() {
    if (jj_3R_20()) return true;
    return false;
  }

  private boolean jj_3_8() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_3R_21()) return true;
    return false;
  }

  private boolean jj_3R_42() {
    if (jj_3R_26()) return true;
    if (jj_scan_token(LP)) return true;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3_57()) jj_scanpos = xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3_58()) { jj_scanpos = xsp; break; }
    }
    if (jj_scan_token(RP)) return true;
    return false;
  }

  /** Generated Token Manager. */
  public ScriptParserTokenManager token_source;
  SimpleCharStream jj_input_stream;
  /** Current token. */
  public Token token;
  /** Next token. */
  public Token jj_nt;
  private int jj_ntk;
  private Token jj_scanpos, jj_lastpos;
  private int jj_la;
  private int jj_gen;
  final private int[] jj_la1 = new int[0];
  static private int[] jj_la1_0;
  static private int[] jj_la1_1;
  static {
      jj_la1_init_0();
      jj_la1_init_1();
   }
   private static void jj_la1_init_0() {
      jj_la1_0 = new int[] {};
   }
   private static void jj_la1_init_1() {
      jj_la1_1 = new int[] {};
   }
  final private JJCalls[] jj_2_rtns = new JJCalls[95];
  private boolean jj_rescan = false;
  private int jj_gc = 0;

  /** Constructor with InputStream. */
  public ScriptParser(java.io.InputStream stream) {
     this(stream, null);
  }
  /** Constructor with InputStream and supplied encoding */
  public ScriptParser(java.io.InputStream stream, String encoding) {
    try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
    token_source = new ScriptParserTokenManager(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  /** Reinitialise. */
  public void ReInit(java.io.InputStream stream) {
     ReInit(stream, null);
  }
  /** Reinitialise. */
  public void ReInit(java.io.InputStream stream, String encoding) {
    try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }
    token_source.ReInit(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  /** Constructor. */
  public ScriptParser(java.io.Reader stream) {
    jj_input_stream = new SimpleCharStream(stream, 1, 1);
    token_source = new ScriptParserTokenManager(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  /** Reinitialise. */
  public void ReInit(java.io.Reader stream) {
    jj_input_stream.ReInit(stream, 1, 1);
    token_source.ReInit(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  /** Constructor with generated Token Manager. */
  public ScriptParser(ScriptParserTokenManager tm) {
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  /** Reinitialise. */
  public void ReInit(ScriptParserTokenManager tm) {
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 0; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();
  }

  private Token jj_consume_token(int kind) throws ParseException {
    Token oldToken;
    if ((oldToken = token).next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    if (token.kind == kind) {
      jj_gen++;
      if (++jj_gc > 100) {
        jj_gc = 0;
        for (int i = 0; i < jj_2_rtns.length; i++) {
          JJCalls c = jj_2_rtns[i];
          while (c != null) {
            if (c.gen < jj_gen) c.first = null;
            c = c.next;
          }
        }
      }
      return token;
    }
    token = oldToken;
    jj_kind = kind;
    throw generateParseException();
  }

  static private final class LookaheadSuccess extends java.lang.Error { }
  final private LookaheadSuccess jj_ls = new LookaheadSuccess();
  private boolean jj_scan_token(int kind) {
    if (jj_scanpos == jj_lastpos) {
      jj_la--;
      if (jj_scanpos.next == null) {
        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
      } else {
        jj_lastpos = jj_scanpos = jj_scanpos.next;
      }
    } else {
      jj_scanpos = jj_scanpos.next;
    }
    if (jj_rescan) {
      int i = 0; Token tok = token;
      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
      if (tok != null) jj_add_error_token(kind, i);
    }
    if (jj_scanpos.kind != kind) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls;
    return false;
  }


/** Get the next Token. */
  final public Token getNextToken() {
    if (token.next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    jj_gen++;
    return token;
  }

/** Get the specific Token. */
  final public Token getToken(int index) {
    Token t = token;
    for (int i = 0; i < index; i++) {
      if (t.next != null) t = t.next;
      else t = t.next = token_source.getNextToken();
    }
    return t;
  }

  private int jj_ntk() {
    if ((jj_nt=token.next) == null)
      return (jj_ntk = (token.next=token_source.getNextToken()).kind);
    else
      return (jj_ntk = jj_nt.kind);
  }

  private java.util.List jj_expentries = new java.util.ArrayList();
  private int[] jj_expentry;
  private int jj_kind = -1;
  private int[] jj_lasttokens = new int[100];
  private int jj_endpos;

  private void jj_add_error_token(int kind, int pos) {
    if (pos >= 100) return;
    if (pos == jj_endpos + 1) {
      jj_lasttokens[jj_endpos++] = kind;
    } else if (jj_endpos != 0) {
      jj_expentry = new int[jj_endpos];
      for (int i = 0; i < jj_endpos; i++) {
        jj_expentry[i] = jj_lasttokens[i];
      }
      jj_entries_loop: for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) {
        int[] oldentry = (int[])(it.next());
        if (oldentry.length == jj_expentry.length) {
          for (int i = 0; i < jj_expentry.length; i++) {
            if (oldentry[i] != jj_expentry[i]) {
              continue jj_entries_loop;
            }
          }
          jj_expentries.add(jj_expentry);
          break jj_entries_loop;
        }
      }
      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
    }
  }

  /** Generate ParseException. */
  public ParseException generateParseException() {
    jj_expentries.clear();
    boolean[] la1tokens = new boolean[50];
    if (jj_kind >= 0) {
      la1tokens[jj_kind] = true;
      jj_kind = -1;
    }
    for (int i = 0; i < 0; i++) {
      if (jj_la1[i] == jj_gen) {
        for (int j = 0; j < 32; j++) {
          if ((jj_la1_0[i] & (1< jj_gen) {
          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
          switch (i) {
            case 0: jj_3_1(); break;
            case 1: jj_3_2(); break;
            case 2: jj_3_3(); break;
            case 3: jj_3_4(); break;
            case 4: jj_3_5(); break;
            case 5: jj_3_6(); break;
            case 6: jj_3_7(); break;
            case 7: jj_3_8(); break;
            case 8: jj_3_9(); break;
            case 9: jj_3_10(); break;
            case 10: jj_3_11(); break;
            case 11: jj_3_12(); break;
            case 12: jj_3_13(); break;
            case 13: jj_3_14(); break;
            case 14: jj_3_15(); break;
            case 15: jj_3_16(); break;
            case 16: jj_3_17(); break;
            case 17: jj_3_18(); break;
            case 18: jj_3_19(); break;
            case 19: jj_3_20(); break;
            case 20: jj_3_21(); break;
            case 21: jj_3_22(); break;
            case 22: jj_3_23(); break;
            case 23: jj_3_24(); break;
            case 24: jj_3_25(); break;
            case 25: jj_3_26(); break;
            case 26: jj_3_27(); break;
            case 27: jj_3_28(); break;
            case 28: jj_3_29(); break;
            case 29: jj_3_30(); break;
            case 30: jj_3_31(); break;
            case 31: jj_3_32(); break;
            case 32: jj_3_33(); break;
            case 33: jj_3_34(); break;
            case 34: jj_3_35(); break;
            case 35: jj_3_36(); break;
            case 36: jj_3_37(); break;
            case 37: jj_3_38(); break;
            case 38: jj_3_39(); break;
            case 39: jj_3_40(); break;
            case 40: jj_3_41(); break;
            case 41: jj_3_42(); break;
            case 42: jj_3_43(); break;
            case 43: jj_3_44(); break;
            case 44: jj_3_45(); break;
            case 45: jj_3_46(); break;
            case 46: jj_3_47(); break;
            case 47: jj_3_48(); break;
            case 48: jj_3_49(); break;
            case 49: jj_3_50(); break;
            case 50: jj_3_51(); break;
            case 51: jj_3_52(); break;
            case 52: jj_3_53(); break;
            case 53: jj_3_54(); break;
            case 54: jj_3_55(); break;
            case 55: jj_3_56(); break;
            case 56: jj_3_57(); break;
            case 57: jj_3_58(); break;
            case 58: jj_3_59(); break;
            case 59: jj_3_60(); break;
            case 60: jj_3_61(); break;
            case 61: jj_3_62(); break;
            case 62: jj_3_63(); break;
            case 63: jj_3_64(); break;
            case 64: jj_3_65(); break;
            case 65: jj_3_66(); break;
            case 66: jj_3_67(); break;
            case 67: jj_3_68(); break;
            case 68: jj_3_69(); break;
            case 69: jj_3_70(); break;
            case 70: jj_3_71(); break;
            case 71: jj_3_72(); break;
            case 72: jj_3_73(); break;
            case 73: jj_3_74(); break;
            case 74: jj_3_75(); break;
            case 75: jj_3_76(); break;
            case 76: jj_3_77(); break;
            case 77: jj_3_78(); break;
            case 78: jj_3_79(); break;
            case 79: jj_3_80(); break;
            case 80: jj_3_81(); break;
            case 81: jj_3_82(); break;
            case 82: jj_3_83(); break;
            case 83: jj_3_84(); break;
            case 84: jj_3_85(); break;
            case 85: jj_3_86(); break;
            case 86: jj_3_87(); break;
            case 87: jj_3_88(); break;
            case 88: jj_3_89(); break;
            case 89: jj_3_90(); break;
            case 90: jj_3_91(); break;
            case 91: jj_3_92(); break;
            case 92: jj_3_93(); break;
            case 93: jj_3_94(); break;
            case 94: jj_3_95(); break;
          }
        }
        p = p.next;
      } while (p != null);
      } catch(LookaheadSuccess ls) { }
    }
    jj_rescan = false;
  }

  private void jj_save(int index, int xla) {
    JJCalls p = jj_2_rtns[index];
    while (p.gen > jj_gen) {
      if (p.next == null) { p = p.next = new JJCalls(); break; }
      p = p.next;
    }
    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
  }

  static final class JJCalls {
    int gen;
    Token first;
    int arg;
    JJCalls next;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy