gt:          else if ((active0 & 0x4000000L) != 0L)
context: /* Generated By:JavaCC: Do not edit this line. QueryParserTokenManager.java */
  package au.com.cybersearch2.classy_logic.parser;
  
  import java.io.InputStream;
  import java.io.IOException;
  import java.util.List;
  import java.util.Map;
  import java.util.ArrayList;
  import java.util.HashMap;
  import au.com.cybersearch2.classy_logic.Scope;
  import au.com.cybersearch2.classy_logic.pattern.KeyName;
  import au.com.cybersearch2.classy_logic.pattern.Template;
  import au.com.cybersearch2.classy_logic.pattern.Choice;
  import au.com.cybersearch2.classy_logic.query.QuerySpec;
  import au.com.cybersearch2.classy_logic.QueryProgram;
  import au.com.cybersearch2.classy_logic.compile.ParserAssembler;
  import au.com.cybersearch2.classy_logic.compile.ParserResources;
  import au.com.cybersearch2.classy_logic.compile.Group;
  import au.com.cybersearch2.classy_logic.compile.OperandMap;
  import au.com.cybersearch2.classy_logic.compile.OperandType;
  import au.com.cybersearch2.classy_logic.compile.ParserTask;
  import au.com.cybersearch2.classy_logic.compile.VariableType;
  import au.com.cybersearch2.classy_logic.expression.BooleanOperand;
  import au.com.cybersearch2.classy_logic.expression.DoubleOperand;
  import au.com.cybersearch2.classy_logic.expression.StringOperand;
  import au.com.cybersearch2.classy_logic.expression.NullOperand;
  import au.com.cybersearch2.classy_logic.expression.IntegerOperand;
  import au.com.cybersearch2.classy_logic.expression.RegExOperand;
  import au.com.cybersearch2.classy_logic.expression.MatchOperand;
  import au.com.cybersearch2.classy_logic.expression.Evaluator;
  import au.com.cybersearch2.classy_logic.expression.LoopEvaluator;
  import au.com.cybersearch2.classy_logic.expression.Variable;
  import au.com.cybersearch2.classy_logic.expression.FormatterOperand;
  import au.com.cybersearch2.classy_logic.expression.FactOperand;
  import au.com.cybersearch2.classy_logic.expression.ChoiceOperand;
  import au.com.cybersearch2.classy_logic.expression.LiteralListOperand;
  import au.com.cybersearch2.classy_logic.list.AxiomOperand;
  import au.com.cybersearch2.classy_logic.list.ItemListOperand;
  import au.com.cybersearch2.classy_logic.list.ListLength;
  import au.com.cybersearch2.classy_logic.terms.StringTerm;
  import au.com.cybersearch2.classy_logic.terms.IntegerTerm;
  import au.com.cybersearch2.classy_logic.terms.DoubleTerm;
  import au.com.cybersearch2.classy_logic.terms.BooleanTerm;
  import au.com.cybersearch2.classy_logic.terms.Parameter;
  import au.com.cybersearch2.classy_logic.terms.NumberTerm;
  import au.com.cybersearch2.classy_logic.interfaces.Term;
  import au.com.cybersearch2.classy_logic.interfaces.Operand;
  import au.com.cybersearch2.classy_logic.interfaces.ItemList;
  import au.com.cybersearch2.classy_logic.interfaces.AxiomProvider;
  import au.com.cybersearch2.classy_logic.helper.Null;
  import au.com.cybersearch2.classy_logic.helper.Unknown;
  import au.com.cybersearch2.classy_logic.helper.QualifiedName;
  import au.com.cybersearch2.classy_logic.helper.QualifiedTemplateName;
  import au.com.cybersearch2.classy_logic.helper.OperandParam;
  
  /** Token Manager. */
  public class QueryParserTokenManager implements QueryParserConstants
  {
  
    /** Debug output. */
    public  java.io.PrintStream debugStream = System.out;
    /** Set debug output. */
    public  void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
  private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1)
  {
     switch (pos)
     {
        case 0:
           if ((active1 & 0x202L) != 0L)
              return 0;
           if ((active0 & 0x780fffffc0L) != 0L)
           {
              jjmatchedKind = 39;
              return 26;
           }
           if ((active0 & 0x1000000000000L) != 0L)
              return 9;
           return -1;
        case 1:
           if ((active0 & 0x780fffffc0L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 1;
              return 26;
           }
           return -1;
        case 2:
           if ((active0 & 0x4000000000L) != 0L)
              return 26;
           if ((active0 & 0x380fffffc0L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 2;
              return 26;
           }
           return -1;
        case 3:
           if ((active0 & 0x300fd1ffc0L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 3;
              return 26;
           }
           if ((active0 & 0x8002e0000L) != 0L)
              return 26;
           return -1;
        case 4:
           if ((active0 & 0x100201b000L) != 0L)
              return 26;
           if ((active0 & 0x200dd04fc0L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 4;
              return 26;
           }
           return -1;
        case 5:
           if ((active0 & 0x5100480L) != 0L)
              return 26;
           if ((active0 & 0x2008c04b40L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 5;
              return 26;
           }
           return -1;
        case 6:
           if ((active0 & 0x2000004340L) != 0L)
              return 26;
           if ((active0 & 0x8c00800L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 6;
              return 26;
           }
           return -1;
        case 7:
           if ((active0 & 0xc00800L) != 0L)
              return 26;
           if ((active0 & 0x8000000L) != 0L)
           {
              jjmatchedKind = 39;
              jjmatchedPos = 7;
              return 26;
           }
           return -1;
        default :
           return -1;
     }
  }
  private final int jjStartNfa_0(int pos, long active0, long active1)
  {
     return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);
  }
  private int jjStopAtPos(int pos, int kind)
  {
     jjmatchedKind = kind;
     jjmatchedPos = pos;
     return pos + 1;
  }
  private int jjMoveStringLiteralDfa0_0()
  {
     switch(curChar)
     {
        case 33:
           jjmatchedKind = 52;
           return jjMoveStringLiteralDfa1_0(0x200000000000000L, 0x0L);
        case 37:
           jjmatchedKind = 69;
           return jjMoveStringLiteralDfa1_0(0x0L, 0x2000L);
        case 38:
           jjmatchedKind = 66;
           return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x400L);
        case 40:
           return jjStopAtPos(0, 40);
        case 41:
           return jjStopAtPos(0, 41);
        case 42:
           jjmatchedKind = 64;
           return jjMoveStringLiteralDfa1_0(0x0L, 0x100L);
        case 43:
           jjmatchedKind = 62;
           return jjMoveStringLiteralDfa1_0(0x1000000000000000L, 0x40L);
        case 44:
           return jjStopAtPos(0, 47);
        case 45:
           jjmatchedKind = 63;
           return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x80L);
        case 46:
           return jjStartNfaWithStates_0(0, 48, 9);
        case 47:
           jjmatchedKind = 65;
           return jjMoveStringLiteralDfa1_0(0x0L, 0x200L);
        case 58:
           return jjStopAtPos(0, 53);
        case 59:
           return jjStopAtPos(0, 46);
        case 60:
           jjmatchedKind = 51;
           return jjMoveStringLiteralDfa1_0(0x80000000000000L, 0x10000L);
        case 61:
           jjmatchedKind = 49;
           return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x0L);
        case 62:
           jjmatchedKind = 50;
           return jjMoveStringLiteralDfa1_0(0x100000000000000L, 0x4000L);
        case 63:
           return jjStopAtPos(0, 79);
        case 78:
           return jjMoveStringLiteralDfa1_0(0x4000000000L, 0x0L);
        case 91:
           return jjStopAtPos(0, 44);
        case 93:
           return jjStopAtPos(0, 45);
        case 94:
           jjmatchedKind = 68;
           return jjMoveStringLiteralDfa1_0(0x0L, 0x1000L);
        case 97:
           return jjMoveStringLiteralDfa1_0(0x1000L, 0x0L);
        case 98:
           return jjMoveStringLiteralDfa1_0(0x200L, 0x0L);
        case 99:
           return jjMoveStringLiteralDfa1_0(0x4820000L, 0x0L);
        case 100:
           return jjMoveStringLiteralDfa1_0(0x180L, 0x0L);
        case 102:
           return jjMoveStringLiteralDfa1_0(0x1001080000L, 0x0L);
        case 105:
           return jjMoveStringLiteralDfa1_0(0x4040L, 0x0L);
        case 108:
           return jjMoveStringLiteralDfa1_0(0x2140000L, 0x0L);
        case 112:
           return jjMoveStringLiteralDfa1_0(0x8000000L, 0x0L);
        case 113:
           return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
        case 114:
           return jjMoveStringLiteralDfa1_0(0x402000L, 0x0L);
        case 115:
           return jjMoveStringLiteralDfa1_0(0x8400L, 0x0L);
        case 116:
           return jjMoveStringLiteralDfa1_0(0x800200800L, 0x0L);
        case 117:
           return jjMoveStringLiteralDfa1_0(0x2000000000L, 0x0L);
        case 123:
           return jjStopAtPos(0, 42);
        case 124:
           jjmatchedKind = 67;
           return jjMoveStringLiteralDfa1_0(0x400000000000000L, 0x800L);
        case 125:
           return jjStopAtPos(0, 43);
        case 126:
           return jjStopAtPos(0, 81);
        default :
           return jjMoveNfa_0(5, 0);
     }
  }
  private int jjMoveStringLiteralDfa1_0(long active0, long active1)
  {
     try { curChar = input_stream.readChar(); }
     catch(java.io.IOException e) {
        jjStopStringLiteralDfa_0(0, active0, active1);
        return 1;
     }
     switch(curChar)
     {
        case 38:
           if ((active0 & 0x800000000000000L) != 0L)
              return jjStopAtPos(1, 59);
           break;
        case 43:
           if ((active0 & 0x1000000000000000L) != 0L)
              return jjStopAtPos(1, 60);
           break;
        case 45:
           if ((active0 & 0x2000000000000000L) != 0L)
              return jjStopAtPos(1, 61);
           break;
        case 60:
           if ((active1 & 0x10000L) != 0L)
              return jjStopAtPos(1, 80);
           break;
        case 61:
           if ((active0 & 0x40000000000000L) != 0L)
              return jjStopAtPos(1, 54);
           else if ((active0 & 0x80000000000000L) != 0L)
              return jjStopAtPos(1, 55);
           else if ((active0 & 0x100000000000000L) != 0L)
              return jjStopAtPos(1, 56);
           else if ((active0 & 0x200000000000000L) != 0L)
              return jjStopAtPos(1, 57);
           else if ((active1 & 0x40L) != 0L)
              return jjStopAtPos(1, 70);
           else if ((active1 & 0x80L) != 0L)
              return jjStopAtPos(1, 71);
           else if ((active1 & 0x100L) != 0L)
              return jjStopAtPos(1, 72);
           else if ((active1 & 0x200L) != 0L)
              return jjStopAtPos(1, 73);
           else if ((active1 & 0x400L) != 0L)
              return jjStopAtPos(1, 74);
           else if ((active1 & 0x800L) != 0L)
              return jjStopAtPos(1, 75);
           else if ((active1 & 0x1000L) != 0L)
              return jjStopAtPos(1, 76);
           else if ((active1 & 0x2000L) != 0L)
              return jjStopAtPos(1, 77);
           break;
        case 62:
           if ((active1 & 0x4000L) != 0L)
              return jjStopAtPos(1, 78);
           break;
        case 97:
           return jjMoveStringLiteralDfa2_0(active0, 0x50080a0000L, active1, 0L);
        case 99:
           return jjMoveStringLiteralDfa2_0(active0, 0x8000L, active1, 0L);
        case 101:
           return jjMoveStringLiteralDfa2_0(active0, 0x702900L, active1, 0L);
        case 104:
           return jjMoveStringLiteralDfa2_0(active0, 0x4000000L, active1, 0L);
        case 105:
           return jjMoveStringLiteralDfa2_0(active0, 0x40000L, active1, 0L);
        case 110:
           return jjMoveStringLiteralDfa2_0(active0, 0x2000004040L, active1, 0L);
        case 111:
           return jjMoveStringLiteralDfa2_0(active0, 0x3000280L, active1, 0L);
        case 114:
           return jjMoveStringLiteralDfa2_0(active0, 0x800000000L, active1, 0L);
        case 116:
           return jjMoveStringLiteralDfa2_0(active0, 0x400L, active1, 0L);
        case 117:
           return jjMoveStringLiteralDfa2_0(active0, 0x810000L, active1, 0L);
        case 120:
           return jjMoveStringLiteralDfa2_0(active0, 0x1000L, active1, 0L);
        case 124:
           if ((active0 & 0x400000000000000L) != 0L)
              return jjStopAtPos(1, 58);
           break;
        default :
           break;
     }
     return jjStartNfa_0(0, active0, active1);
  }
  private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1)
  {
     if (((active0 &= old0) | (active1 &= old1)) == 0L)
        return jjStartNfa_0(0, old0, old1);
     try { curChar = input_stream.readChar(); }
     catch(java.io.IOException e) {
        jjStopStringLiteralDfa_0(1, active0, 0L);
        return 2;
     }
     switch(curChar)
     {
        case 78:
           if ((active0 & 0x4000000000L) != 0L)
              return jjStartNfaWithStates_0(2, 38, 26);
           break;
        case 99:
           return jjMoveStringLiteralDfa3_0(active0, 0x2084100L);
        case 101:
           return jjMoveStringLiteralDfa3_0(active0, 0x10000L);
        case 103:
           return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
        case 105:
           return jjMoveStringLiteralDfa3_0(active0, 0x1000L);
        case 107:
           return jjMoveStringLiteralDfa3_0(active0, 0x2000000000L);
        case 108:
           return jjMoveStringLiteralDfa3_0(active0, 0x1000020000L);
        case 109:
           return jjMoveStringLiteralDfa3_0(active0, 0x800L);
        case 110:
           return jjMoveStringLiteralDfa3_0(active0, 0x100000L);
        case 111:
           return jjMoveStringLiteralDfa3_0(active0, 0x4008200L);
        case 114:
           return jjMoveStringLiteralDfa3_0(active0, 0x9a00400L);
        case 115:
           return jjMoveStringLiteralDfa3_0(active0, 0x440000L);
        case 116:
           return jjMoveStringLiteralDfa3_0(active0, 0x40L);
        case 117:
           return jjMoveStringLiteralDfa3_0(active0, 0x800000080L);
        default :
           break;
     }
     return jjStartNfa_0(1, active0, 0L);
  }
  private int jjMoveStringLiteralDfa3_0(long old0, long active0)
  {
     if (((active0 &= old0)) == 0L)
        return jjStartNfa_0(1, old0, 0L);
     try { curChar = input_stream.readChar(); }
     catch(java.io.IOException e) {
        jjStopStringLiteralDfa_0(2, active0, 0L);
        return 3;
     }
     switch(curChar)
     {
        case 97:
           return jjMoveStringLiteralDfa4_0(active0, 0xa000000L);
        case 98:
           return jjMoveStringLiteralDfa4_0(active0, 0x80L);
        case 99:
           if ((active0 & 0x20000L) != 0L)
              return jjStartNfaWithStates_0(3, 17, 26);
           break;
        case 101:
           if ((active0 & 0x800000000L) != 0L)
              return jjStartNfaWithStates_0(3, 35, 26);
           return jjMoveStringLiteralDfa4_0(active0, 0x2040L);
        case 103:
           return jjMoveStringLiteralDfa4_0(active0, 0x100000L);
        case 105:
           return jjMoveStringLiteralDfa4_0(active0, 0x4000500L);
        case 108:
           return jjMoveStringLiteralDfa4_0(active0, 0x4200L);
        case 109:
           if ((active0 & 0x200000L) != 0L)
              return jjStartNfaWithStates_0(3, 21, 26);
           return jjMoveStringLiteralDfa4_0(active0, 0x1000000L);
        case 110:
           return jjMoveStringLiteralDfa4_0(active0, 0x2000000000L);
        case 111:
           return jjMoveStringLiteralDfa4_0(active0, 0x401000L);
        case 112:
           return jjMoveStringLiteralDfa4_0(active0, 0x8800L);
        case 114:
           return jjMoveStringLiteralDfa4_0(active0, 0x810000L);
        case 115:
           return jjMoveStringLiteralDfa4_0(active0, 0x1000000000L);
        case 116:
           if ((active0 & 0x40000L) != 0L)
              return jjStartNfaWithStates_0(3, 18, 26);
           else if ((active0 & 0x80000L) != 0L)
              return jjStartNfaWithStates_0(3, 19, 26);
           break;
        default :
           break;
     }
     return jjStartNfa_0(2, active0, 0L);
  }
  private int jjMoveStringLiteralDfa4_0(long old0, long active0)
  {
     if (((active0 &= old0)) == 0L)
        return jjStartNfa_0(2, old0, 0L);
     try { curChar = input_stream.readChar(); }
     catch(java.io.IOException e) {
        jjStopStringLiteralDfa_0(3, active0, 0L);
        return 4;
     }
     switch(curChar)
     {
        case 97:
           return jjMoveStringLiteralDfa5_0(active0, 0x1000000L);
        case 99:
           return jjMoveStringLiteralDfa5_0(active0, 0x4000000L);
        case 101:
           if ((active0 & 0x8000L) != 0L)
              return jjStartNfaWithStates_0(4, 15, 26);
           else if ((active0 & 0x1000000000L) != 0L)
              return jjStartNfaWithStates_0(4, 36, 26);
           return jjMoveStringLiteralDfa5_0(active0, 0x800200L);
        case 103:
           return jjMoveStringLiteralDfa5_0(active0, 0x40L);
        case 108:
           if ((active0 & 0x2000000L) != 0L)
              return jjStartNfaWithStates_0(4, 25, 26);
           return jjMoveStringLiteralDfa5_0(active0, 0x880L);
        case 109:
           if ((active0 & 0x1000L) != 0L)
              return jjStartNfaWithStates_0(4, 12, 26);
           return jjMoveStringLiteralDfa5_0(active0, 0x8000100L);
        case 110:
           return jjMoveStringLiteralDfa5_0(active0, 0x400L);
        case 111:
           return jjMoveStringLiteralDfa5_0(active0, 0x2000000000L);
        case 116:
           return jjMoveStringLiteralDfa5_0(active0, 0x100000L);
        case 117:
           return jjMoveStringLiteralDfa5_0(active0, 0x404000L);
        case 120:
           if ((active0 & 0x2000L) != 0L)
              return jjStartNfaWithStates_0(4, 13, 26);
           break;
        case 121:
           if ((active0 & 0x10000L) != 0L)
              return jjStartNfaWithStates_0(4, 16, 26);
           break;
        default :
           break;
     }
     return jjStartNfa_0(3, active0, 0L);
  }
  private int jjMoveStringLiteralDfa5_0(long old0, long active0)
  {
     if (((active0 &= old0)) == 0L)
        return jjStartNfa_0(3, old0, 0L);
     try { curChar = input_stream.readChar(); }
     catch(java.io.IOException e) {
        jjStopStringLiteralDfa_0(4, active0, 0L);
        return 5;
     }
     switch(curChar)
     {
        case 97:
           return jjMoveStringLiteralDfa6_0(active0, 0xb00L);
        case 100:
           return jjMoveStringLiteralDfa6_0(active0, 0x4000L);
        case 101:
           if ((active0 & 0x80L) != 0L)
              return jjStartNfaWithStates_0(5, 7, 26);
  