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

org.apache.asterix.aqlplus.parser.AQLPlusParserTokenManager Maven / Gradle / Ivy

/* Generated By:JavaCC: Do not edit this line. AQLPlusParserTokenManager.java */
package org.apache.asterix.aqlplus.parser;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Stack;
import java.util.Map;
import java.util.HashMap;
import org.apache.asterix.aql.literal.FloatLiteral;
import org.apache.asterix.aql.literal.DoubleLiteral;
import org.apache.asterix.aql.literal.FalseLiteral;
import org.apache.asterix.aql.base.Literal;
import org.apache.asterix.aql.literal.IntegerLiteral;
import org.apache.asterix.aql.literal.LongIntegerLiteral;
import org.apache.asterix.aql.literal.NullLiteral;
import org.apache.asterix.aql.literal.StringLiteral;
import org.apache.asterix.aql.literal.TrueLiteral;
import org.apache.asterix.aql.parser.ScopeChecker;
import org.apache.asterix.aql.base.*;
import org.apache.asterix.aql.expression.*;
import org.apache.asterix.aql.expression.visitor.AQLPrintVisitor;
import org.apache.asterix.aql.expression.UnaryExpr.Sign;
import org.apache.asterix.aql.expression.TypeExpression.TypeExprKind;
import org.apache.asterix.aql.base.Statement.Kind;
import org.apache.asterix.aql.context.Scope;
import org.apache.asterix.aql.context.RootScopeFactory;
import org.apache.asterix.common.exceptions.AsterixException;
import org.apache.asterix.om.functions.AsterixFunction;
import org.apache.asterix.common.functions.FunctionSignature;
import org.apache.asterix.metadata.bootstrap.MetadataConstants;
import org.apache.hyracks.algebricks.core.algebra.expressions.IExpressionAnnotation;
import org.apache.hyracks.algebricks.core.algebra.expressions.IndexedNLJoinExpressionAnnotation;
import org.apache.hyracks.algebricks.common.utils.Pair;

/** Token Manager. */
public class AQLPlusParserTokenManager implements AQLPlusParserConstants
{
        public int commentDepth = 0;

  /** 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 ((active0 & 0x1000000000L) != 0L || (active1 & 0x80000000L) != 0L)
            return 39;
         if ((active0 & 0x10000000000L) != 0L)
            return 47;
         if ((active0 & 0xffdff8c0180f36feL) != 0L || (active1 & 0xe2fL) != 0L)
         {
            jjmatchedKind = 85;
            return 48;
         }
         return -1;
      case 1:
         if ((active0 & 0xfc53f0c0100d32feL) != 0L || (active1 & 0xe2fL) != 0L)
         {
            if (jjmatchedPos != 1)
            {
               jjmatchedKind = 85;
               jjmatchedPos = 1;
            }
            return 48;
         }
         if ((active0 & 0x38c080008020400L) != 0L)
            return 48;
         return -1;
      case 2:
         if ((active0 & 0x213000010000082L) != 0L)
            return 48;
         if ((active0 & 0xfcc0f0c0000d327cL) != 0L || (active1 & 0xe2fL) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 2;
            return 48;
         }
         return -1;
      case 3:
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 3;
            return 12;
         }
         if ((active0 & 0xd8c040800004324cL) != 0L || (active1 & 0x82dL) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 3;
            return 48;
         }
         if ((active0 & 0x2400b04000080030L) != 0L || (active1 & 0x602L) != 0L)
            return 48;
         return -1;
      case 4:
         if ((active0 & 0x800040000004120cL) != 0L || (active1 & 0x29L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 4;
            return 48;
         }
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 4;
            return 12;
         }
         if ((active0 & 0x58c0008000002040L) != 0L || (active1 & 0x804L) != 0L)
            return 48;
         return -1;
      case 5:
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 5;
            return 12;
         }
         if ((active0 & 0x8000400000040200L) != 0L)
            return 48;
         if ((active0 & 0x100cL) != 0L || (active1 & 0x29L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 5;
            return 48;
         }
         return -1;
      case 6:
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 6;
            return 12;
         }
         if ((active0 & 0x1008L) != 0L || (active1 & 0x9L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 6;
            return 48;
         }
         if ((active0 & 0x4L) != 0L || (active1 & 0x20L) != 0L)
            return 48;
         return -1;
      case 7:
         if ((active0 & 0x1000L) != 0L || (active1 & 0x8L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 7;
            return 48;
         }
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 7;
            return 12;
         }
         if ((active0 & 0x8L) != 0L || (active1 & 0x1L) != 0L)
            return 48;
         return -1;
      case 8:
         if ((active0 & 0x10000L) != 0L)
         {
            jjmatchedKind = 85;
            jjmatchedPos = 8;
            return 12;
         }
         if ((active0 & 0x1000L) != 0L || (active1 & 0x8L) != 0L)
            return 48;
         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:
         return jjMoveStringLiteralDfa1_0(0x80000000L, 0x0L);
      case 37:
         return jjStopAtPos(0, 37);
      case 40:
         return jjStopAtPos(0, 70);
      case 41:
         return jjStopAtPos(0, 71);
      case 42:
         return jjStopAtPos(0, 35);
      case 43:
         return jjStopAtPos(0, 33);
      case 44:
         return jjStopAtPos(0, 15);
      case 45:
         return jjStopAtPos(0, 34);
      case 46:
         return jjStartNfaWithStates_0(0, 40, 47);
      case 47:
         jjmatchedKind = 36;
         return jjMoveStringLiteralDfa1_0(0x0L, 0x80000000L);
      case 58:
         jjmatchedKind = 11;
         return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x0L);
      case 59:
         return jjStopAtPos(0, 8);
      case 60:
         jjmatchedKind = 25;
         return jjMoveStringLiteralDfa1_0(0x20000000L, 0x0L);
      case 61:
         return jjStopAtPos(0, 14);
      case 62:
         jjmatchedKind = 26;
         return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L);
      case 63:
         return jjStopAtPos(0, 22);
      case 91:
         return jjStopAtPos(0, 23);
      case 93:
         return jjStopAtPos(0, 24);
      case 94:
         return jjStopAtPos(0, 68);
      case 97:
         return jjMoveStringLiteralDfa1_0(0x204000010020000L, 0x0L);
      case 98:
         return jjMoveStringLiteralDfa1_0(0x100000000000000L, 0x0L);
      case 99:
         return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L);
      case 100:
         return jjMoveStringLiteralDfa1_0(0x1400000000001004L, 0x21L);
      case 101:
         return jjMoveStringLiteralDfa1_0(0x200000000000L, 0x4L);
      case 102:
         return jjMoveStringLiteralDfa1_0(0x2000000000008L, 0x800L);
      case 103:
         return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x0L);
      case 105:
         return jjMoveStringLiteralDfa1_0(0x8084000000000L, 0x0L);
      case 106:
         return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x0L);
      case 108:
         return jjMoveStringLiteralDfa1_0(0x4011000000000020L, 0x0L);
      case 110:
         return jjMoveStringLiteralDfa1_0(0x0L, 0x200L);
      case 111:
         return jjMoveStringLiteralDfa1_0(0x8080000008080200L, 0x0L);
      case 112:
         return jjMoveStringLiteralDfa1_0(0x10000L, 0x0L);
      case 114:
         return jjMoveStringLiteralDfa1_0(0x400000000000L, 0x0L);
      case 115:
         return jjMoveStringLiteralDfa1_0(0x80L, 0xaL);
      case 116:
         return jjMoveStringLiteralDfa1_0(0x100000000410L, 0x400L);
      case 117:
         return jjMoveStringLiteralDfa1_0(0x8000002002L, 0x0L);
      case 119:
         return jjMoveStringLiteralDfa1_0(0x2040000000000040L, 0x0L);
      case 123:
         jjmatchedKind = 20;
         return jjMoveStringLiteralDfa1_0(0x20000000000L, 0x0L);
      case 125:
         jjmatchedKind = 21;
         return jjMoveStringLiteralDfa1_0(0x40000000000L, 0x0L);
      case 126:
         return jjMoveStringLiteralDfa1_0(0x100000000L, 0x0L);
      default :
         return jjMoveNfa_0(0, 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 42:
         if ((active1 & 0x80000000L) != 0L)
            return jjStopAtPos(1, 95);
         break;
      case 61:
         if ((active0 & 0x20000000L) != 0L)
            return jjStopAtPos(1, 29);
         else if ((active0 & 0x40000000L) != 0L)
            return jjStopAtPos(1, 30);
         else if ((active0 & 0x80000000L) != 0L)
            return jjStopAtPos(1, 31);
         else if ((active0 & 0x100000000L) != 0L)
            return jjStopAtPos(1, 32);
         else if ((active0 & 0x20000000000000L) != 0L)
            return jjStopAtPos(1, 53);
         break;
      case 97:
         return jjMoveStringLiteralDfa2_0(active0, 0x1000L, active1, 0x828L);
      case 100:
         return jjMoveStringLiteralDfa2_0(active0, 0x4000000000L, active1, 0L);
      case 101:
         return jjMoveStringLiteralDfa2_0(active0, 0x1410400000000084L, active1, 0L);
      case 102:
         if ((active0 & 0x80000000000L) != 0L)
            return jjStartNfaWithStates_0(1, 43, 48);
         return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L);
      case 104:
         return jjMoveStringLiteralDfa2_0(active0, 0x40100000000000L, active1, 0L);
      case 105:
         return jjMoveStringLiteralDfa2_0(active0, 0x6000000000000000L, active1, 0x1L);
      case 108:
         return jjMoveStringLiteralDfa2_0(active0, 0x200000040000L, active1, 0L);
      case 110:
         if ((active0 & 0x8000000000000L) != 0L)
            return jjStartNfaWithStates_0(1, 51, 48);
         return jjMoveStringLiteralDfa2_0(active0, 0x8010000000L, active1, 0L);
      case 111:
         if ((active0 & 0x400L) != 0L)
            return jjStartNfaWithStates_0(1, 10, 48);
         return jjMoveStringLiteralDfa2_0(active0, 0x3800000000020L, active1, 0x2L);
      case 112:
         return jjMoveStringLiteralDfa2_0(active0, 0x80000L, active1, 0L);
      case 114:
         if ((active0 & 0x8000000L) != 0L)
         {
            jjmatchedKind = 27;
            jjmatchedPos = 1;
         }
         return jjMoveStringLiteralDfa2_0(active0, 0x880000000010040L, active1, 0x400L);
      case 115:
         if ((active0 & 0x20000L) != 0L)
         {
            jjmatchedKind = 17;
            jjmatchedPos = 1;
         }
         return jjMoveStringLiteralDfa2_0(active0, 0x200000000002002L, active1, 0L);
      case 116:
         if ((active0 & 0x4000000000000L) != 0L)
            return jjStartNfaWithStates_0(1, 50, 48);
         break;
      case 117:
         return jjMoveStringLiteralDfa2_0(active0, 0x208L, active1, 0x200L);
      case 118:
         return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x4L);
      case 121:
         if ((active0 & 0x100000000000000L) != 0L)
            return jjStartNfaWithStates_0(1, 56, 48);
         return jjMoveStringLiteralDfa2_0(active0, 0x10L, active1, 0L);
      case 123:
         if ((active0 & 0x20000000000L) != 0L)
            return jjStopAtPos(1, 41);
         break;
      case 125:
         if ((active0 & 0x40000000000L) != 0L)
            return jjStopAtPos(1, 42);
         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, active1);
      return 2;
   }
   switch(curChar)
   {
      case 97:
         return jjMoveStringLiteralDfa3_0(active0, 0x20L, active1, 0L);
      case 99:
         if ((active0 & 0x200000000000000L) != 0L)
            return jjStartNfaWithStates_0(2, 57, 48);
         return jjMoveStringLiteralDfa3_0(active0, 0x1000000000000004L, active1, 0L);
      case 100:
         if ((active0 & 0x10000000L) != 0L)
            return jjStartNfaWithStates_0(2, 28, 48);
         return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L);
      case 101:
         if ((active0 & 0x2L) != 0L)
            return jjStartNfaWithStates_0(2, 1, 48);
         return jjMoveStringLiteralDfa3_0(active0, 0x40100000090000L, active1, 0x4L);
      case 102:
         return jjMoveStringLiteralDfa3_0(active0, 0x8000000000000000L, active1, 0L);
      case 105:
         return jjMoveStringLiteralDfa3_0(active0, 0x80c000002040L, active1, 0L);
      case 106:
         if ((active0 & 0x1000000000000L) != 0L)
            return jjStartNfaWithStates_0(2, 48, 48);
         break;
      case 108:
         return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xa00L);
      case 109:
         return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000000L, active1, 0x2L);
      case 110:
         return jjMoveStringLiteralDfa3_0(active0, 0x8L, active1, 0L);
      case 111:
         return jjMoveStringLiteralDfa3_0(active0, 0x800000000040000L, active1, 0L);
      case 112:
         return jjMoveStringLiteralDfa3_0(active0, 0x10L, active1, 0L);
      case 114:
         if ((active0 & 0x2000000000000L) != 0L)
            return jjStartNfaWithStates_0(2, 49, 48);
         break;
      case 115:
         return jjMoveStringLiteralDfa3_0(active0, 0x400200000000000L, active1, 0x1L);
      case 116:
         if ((active0 & 0x80L) != 0L)
            return jjStartNfaWithStates_0(2, 7, 48);
         else if ((active0 & 0x10000000000000L) != 0L)
            return jjStartNfaWithStates_0(2, 52, 48);
         return jjMoveStringLiteralDfa3_0(active0, 0x2000400000001200L, active1, 0x28L);
      case 117:
         return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x400L);
      default :
         break;
   }
   return jjStartNfa_0(1, active0, active1);
}
private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(1, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(2, active0, active1);
      return 3;
   }
   switch(curChar)
   {
      case 45:
         return jjMoveStringLiteralDfa4_0(active0, 0x10000L, active1, 0L);
      case 97:
         return jjMoveStringLiteralDfa4_0(active0, 0x1000L, active1, 0x20L);
      case 99:
         if ((active0 & 0x400000000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 58, 48);
         return jjMoveStringLiteralDfa4_0(active0, 0x8L, active1, 0L);
      case 100:
         if ((active0 & 0x20L) != 0L)
            return jjStartNfaWithStates_0(3, 5, 48);
         break;
      case 101:
         if ((active0 & 0x10L) != 0L)
            return jjStartNfaWithStates_0(3, 4, 48);
         else if ((active0 & 0x200000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 45, 48);
         else if ((active1 & 0x2L) != 0L)
            return jjStartNfaWithStates_0(3, 65, 48);
         else if ((active1 & 0x400L) != 0L)
            return jjStartNfaWithStates_0(3, 74, 48);
         return jjMoveStringLiteralDfa4_0(active0, 0x80000000000000L, active1, 0L);
      case 104:
         if ((active0 & 0x2000000000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 61, 48);
         break;
      case 105:
         return jjMoveStringLiteralDfa4_0(active0, 0x4000000000000000L, active1, 0x8L);
      case 108:
         if ((active1 & 0x200L) != 0L)
            return jjStartNfaWithStates_0(3, 73, 48);
         return jjMoveStringLiteralDfa4_0(active0, 0x4L, active1, 0L);
      case 110:
         if ((active0 & 0x80000L) != 0L)
            return jjStartNfaWithStates_0(3, 19, 48);
         else if ((active0 & 0x100000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 44, 48);
         else if ((active0 & 0x800000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 47, 48);
         return jjMoveStringLiteralDfa4_0(active0, 0x2000L, active1, 0L);
      case 111:
         return jjMoveStringLiteralDfa4_0(active0, 0x1000008000000000L, active1, 0L);
      case 112:
         return jjMoveStringLiteralDfa4_0(active0, 0x200L, active1, 0L);
      case 114:
         return jjMoveStringLiteralDfa4_0(active0, 0x40000000000000L, active1, 0x4L);
      case 115:
         return jjMoveStringLiteralDfa4_0(active0, 0x8000000000040000L, active1, 0x800L);
      case 116:
         return jjMoveStringLiteralDfa4_0(active0, 0x40L, active1, 0x1L);
      case 117:
         return jjMoveStringLiteralDfa4_0(active0, 0x800400000000000L, active1, 0L);
      case 118:
         if ((active0 & 0x4000000000L) != 0L)
            return jjStartNfaWithStates_0(3, 38, 48);
         break;
      default :
         break;
   }
   return jjStartNfa_0(2, active0, active1);
}
private int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(2, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(3, active0, active1);
      return 4;
   }
   switch(curChar)
   {
      case 97:
         return jjMoveStringLiteralDfa5_0(active0, 0x4L, active1, 0L);
      case 101:
         if ((active0 & 0x40L) != 0L)
            return jjStartNfaWithStates_0(4, 6, 48);
         else if ((active0 & 0x40000000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 54, 48);
         else if ((active1 & 0x800L) != 0L)
            return jjStartNfaWithStates_0(4, 75, 48);
         return jjMoveStringLiteralDfa5_0(active0, 0x8000000000040000L, active1, 0L);
      case 103:
         if ((active0 & 0x2000L) != 0L)
            return jjStartNfaWithStates_0(4, 13, 48);
         break;
      case 105:
         return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x1L);
      case 110:
         if ((active0 & 0x8000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 39, 48);
         break;
      case 112:
         if ((active0 & 0x800000000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 59, 48);
         break;
      case 114:
         if ((active0 & 0x80000000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 55, 48);
         else if ((active0 & 0x1000000000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 60, 48);
         return jjMoveStringLiteralDfa5_0(active0, 0x400000000000L, active1, 0L);
      case 115:
         return jjMoveStringLiteralDfa5_0(active0, 0x10000L, active1, 0x28L);
      case 116:
         if ((active0 & 0x4000000000000000L) != 0L)
            return jjStartNfaWithStates_0(4, 62, 48);
         return jjMoveStringLiteralDfa5_0(active0, 0x8L, active1, 0L);
      case 117:
         return jjMoveStringLiteralDfa5_0(active0, 0x200L, active1, 0L);
      case 118:
         return jjMoveStringLiteralDfa5_0(active0, 0x1000L, active1, 0L);
      case 121:
         if ((active1 & 0x4L) != 0L)
            return jjStartNfaWithStates_0(4, 66, 48);
         break;
      default :
         break;
   }
   return jjStartNfa_0(3, active0, active1);
}
private int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(3, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(4, active0, active1);
      return 5;
   }
   switch(curChar)
   {
      case 100:
         if ((active0 & 0x40000L) != 0L)
            return jjStartNfaWithStates_0(5, 18, 48);
         break;
      case 101:
         return jjMoveStringLiteralDfa6_0(active0, 0x1000L, active1, 0x20L);
      case 102:
         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8L);
      case 105:
         return jjMoveStringLiteralDfa6_0(active0, 0x8L, active1, 0L);
      case 110:
         if ((active0 & 0x400000000000L) != 0L)
            return jjStartNfaWithStates_0(5, 46, 48);
         return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x1L);
      case 111:
         return jjMoveStringLiteralDfa6_0(active0, 0x10000L, active1, 0L);
      case 114:
         return jjMoveStringLiteralDfa6_0(active0, 0x4L, active1, 0L);
      case 116:
         if ((active0 & 0x200L) != 0L)
            return jjStartNfaWithStates_0(5, 9, 48);
         else if ((active0 & 0x8000000000000000L) != 0L)
            return jjStartNfaWithStates_0(5, 63, 48);
         break;
      default :
         break;
   }
   return jjStartNfa_0(4, active0, active1);
}
private int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(4, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(5, active0, active1);
      return 6;
   }
   switch(curChar)
   {
      case 99:
         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x1L);
      case 101:
         if ((active0 & 0x4L) != 0L)
            return jjStartNfaWithStates_0(6, 2, 48);
         break;
      case 105:
         return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x8L);
      case 111:
         return jjMoveStringLiteralDfa7_0(active0, 0x8L, active1, 0L);
      case 114:
         return jjMoveStringLiteralDfa7_0(active0, 0x11000L, active1, 0L);
      case 116:
         if ((active1 & 0x20L) != 0L)
            return jjStartNfaWithStates_0(6, 69, 48);
         break;
      default :
         break;
   }
   return jjStartNfa_0(5, active0, active1);
}
private int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(5, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(6, active0, active1);
      return 7;
   }
   switch(curChar)
   {
      case 101:
         return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x8L);
      case 110:
         if ((active0 & 0x8L) != 0L)
            return jjStartNfaWithStates_0(7, 3, 48);
         break;
      case 115:
         return jjMoveStringLiteralDfa8_0(active0, 0x1000L, active1, 0L);
      case 116:
         if ((active1 & 0x1L) != 0L)
            return jjStartNfaWithStates_0(7, 64, 48);
         return jjMoveStringLiteralDfa8_0(active0, 0x10000L, active1, 0L);
      default :
         break;
   }
   return jjStartNfa_0(6, active0, active1);
}
private int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(6, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(7, active0, active1);
      return 8;
   }
   switch(curChar)
   {
      case 101:
         if ((active0 & 0x1000L) != 0L)
            return jjStartNfaWithStates_0(8, 12, 48);
         return jjMoveStringLiteralDfa9_0(active0, 0x10000L, active1, 0L);
      case 115:
         if ((active1 & 0x8L) != 0L)
            return jjStartNfaWithStates_0(8, 67, 48);
         break;
      default :
         break;
   }
   return jjStartNfa_0(7, active0, active1);
}
private int jjMoveStringLiteralDfa9_0(long old0, long active0, long old1, long active1)
{
   if (((active0 &= old0) | (active1 &= old1)) == 0L)
      return jjStartNfa_0(7, old0, old1);
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_0(8, active0, 0L);
      return 9;
   }
   switch(curChar)
   {
      case 100:
         if ((active0 & 0x10000L) != 0L)
            return jjStartNfaWithStates_0(9, 16, 12);
         break;
      default :
         break;
   }
   return jjStartNfa_0(8, active0, 0L);
}
private int jjStartNfaWithStates_0(int pos, int kind, int state)
{
   jjmatchedKind = kind;
   jjmatchedPos = pos;
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) { return pos + 1; }
   return jjMoveNfa_0(state, pos + 1);
}
static final long[] jjbitVec0 = {
   0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
private int jjMoveNfa_0(int startState, int curPos)
{
   int startsAt = 0;
   jjnewStateCnt = 47;
   int i = 1;
   jjstateSet[0] = startState;
   int kind = 0x7fffffff;
   for (;;)
   {
      if (++jjround == 0x7fffffff)
         ReInitRounds();
      if (curChar < 64)
      {
         long l = 1L << curChar;
         do
         {
            switch(jjstateSet[--i])
            {
               case 47:
                  if ((0x3ff000000000000L & l) != 0L)
                     jjCheckNAddTwoStates(37, 30);
                  if ((0x3ff000000000000L & l) != 0L)
                  {
                     if (kind > 77)
                        kind = 77;
                     jjCheckNAdd(36);
                  }
                  break;
               case 48:
               case 12:
                  if ((0x3ff201000000000L & l) == 0L)
                     break;
                  if (kind > 85)
                     kind = 85;
                  jjCheckNAdd(12);
                  break;
               case 0:
                  if ((0x3ff000000000000L & l) != 0L)
                  {
                     if (kind > 72)
                        kind = 72;
                     jjCheckNAddStates(0, 8);
                  }
                  else if ((0x201000000000L & l) != 0L)
                  {
                     if (kind > 81)
                        kind = 81;
                  }
                  else if (curChar == 47)
                     jjAddStates(9, 10);
                  else if (curChar == 46)
                     jjCheckNAddTwoStates(36, 37);
                  else if (curChar == 35)
                     jjstateSet[jjnewStateCnt++] = 17;
                  else if (curChar == 39)
                     jjCheckNAddStates(11, 13);
                  else if (curChar == 34)
                     jjCheckNAddStates(14, 16);
                  if (curChar == 36)
                     jjstateSet[jjnewStateCnt++] = 19;
                  if (curChar == 36)
                     jjstateSet[jjnewStateCnt++] = 14;
                  break;
               case 39:
                  if (curChar == 47)
                  {
                     if (kind > 94)
                        kind = 94;
                     jjCheckNAddStates(17, 19);
                  }
                  if (curChar == 47)
                     jjCheckNAddTwoStates(40, 41);
                  break;
               case 1:
               case 2:
                  if (curChar == 34)
                     jjCheckNAddStates(14, 16);
                  break;
               case 4:
                  if ((0xfffffffbffffffffL & l) != 0L)
                     jjCheckNAddStates(14, 16);
                  break;
               case 5:
                  if (curChar == 34 && kind > 82)
                     kind = 82;
                  break;
               case 6:
               case 7:
                  if (curChar == 39)
                     jjCheckNAddStates(11, 13);
                  break;
               case 9:
                  if ((0xffffff7fffffffffL & l) != 0L)
                     jjCheckNAddStates(11, 13);
                  break;
               case 10:
                  if (curChar == 39 && kind > 82)
                     kind = 82;
                  break;
               case 13:
                  if (curChar == 36)
                     jjstateSet[jjnewStateCnt++] = 14;
                  break;
               case 15:
                  if ((0x3ff201000000000L & l) == 0L)
                     break;
                  if (kind > 86)
                     kind = 86;
                  jjstateSet[jjnewStateCnt++] = 15;
                  break;
               case 16:
                  if (curChar == 35)
                     jjstateSet[jjnewStateCnt++] = 17;
                  break;
               case 18:
                  if ((0x3ff201000000000L & l) == 0L)
                     break;
                  if (kind > 87)
                     kind = 87;
                  jjstateSet[jjnewStateCnt++] = 18;
                  break;
               case 19:
                  if (curChar == 36)
                     jjstateSet[jjnewStateCnt++] = 20;
                  break;
               case 21:
                  if ((0x3ff201000000000L & l) == 0L)
                     break;
                  if (kind > 88)
                     kind = 88;
                  jjstateSet[jjnewStateCnt++] = 21;
                  break;
               case 22:
                  if (curChar == 36)
                     jjstateSet[jjnewStateCnt++] = 19;
                  break;
               case 23:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 72)
                     kind = 72;
                  jjCheckNAddStates(0, 8);
                  break;
               case 24:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 72)
                     kind = 72;
                  jjCheckNAdd(24);
                  break;
               case 25:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 77)
                     kind = 77;
                  jjCheckNAdd(25);
                  break;
               case 26:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 77)
                     kind = 77;
                  jjCheckNAddTwoStates(26, 27);
                  break;
               case 27:
                  if (curChar == 46)
                     jjCheckNAdd(28);
                  break;
               case 28:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 77)
                     kind = 77;
                  jjCheckNAdd(28);
                  break;
               case 29:
                  if ((0x3ff000000000000L & l) != 0L)
                     jjCheckNAddTwoStates(29, 30);
                  break;
               case 31:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 78)
                     kind = 78;
                  jjCheckNAddTwoStates(31, 32);
                  break;
               case 32:
                  if (curChar == 46)
                     jjCheckNAdd(33);
                  break;
               case 33:
                  if ((0x3ff000000000000L & l) != 0L)
                     jjCheckNAddTwoStates(33, 30);
                  break;
               case 34:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 79)
                     kind = 79;
                  jjCheckNAdd(34);
                  break;
               case 35:
                  if (curChar == 46)
                     jjCheckNAddTwoStates(36, 37);
                  break;
               case 36:
                  if ((0x3ff000000000000L & l) == 0L)
                     break;
                  if (kind > 77)
                     kind = 77;
                  jjCheckNAdd(36);
                  break;
               case 37:
                  if ((0x3ff000000000000L & l) != 0L)
                     jjCheckNAddTwoStates(37, 30);
                  break;
               case 38:
                  if (curChar == 47)
                     jjAddStates(9, 10);
                  break;
               case 40:
                  if ((0xfffffffffffffbffL & l) != 0L)
                     jjCheckNAddTwoStates(40, 41);
                  break;
               case 41:
                  if (curChar == 10 && kind > 93)
                     kind = 93;
                  break;
               case 42:
                  if (curChar != 47)
                     break;
                  if (kind > 94)
                     kind = 94;
                  jjCheckNAddStates(17, 19);
                  break;
               case 43:
                  if ((0xffffffffffffdbffL & l) == 0L)
                     break;
                  if (kind > 94)
                     kind = 94;
                  jjCheckNAddStates(17, 19);
                  break;
               case 44:
                  if ((0x2400L & l) != 0L && kind > 94)
                     kind = 94;
                  break;
               case 45:
                  if (curChar == 10 && kind > 94)
                     kind = 94;
                  break;
               case 46:
                  if (curChar == 13)
                     jjstateSet[jjnewStateCnt++] = 45;
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      else if (curChar < 128)
      {
         long l = 1L << (curChar & 077);
         do
         {
            switch(jjstateSet[--i])
            {
               case 48:
                  if ((0x7fffffe87fffffeL & l) != 0L)
                  {
                     if (kind > 85)
                        kind = 85;
                     jjCheckNAdd(12);
                  }
                  if ((0x7fffffe07fffffeL & l) != 0L)
                  {
                     if (kind > 85)
                        kind = 85;
                     jjCheckNAddTwoStates(11, 12);
                  }
                  break;
               case 0:
                  if ((0x7fffffe07fffffeL & l) != 0L)
                  {
                     if (kind > 85)
                        kind = 85;
                     jjCheckNAddTwoStates(11, 12);
                  }
                  else if (curChar == 95)
                  {
                     if (kind > 81)
                        kind = 81;
                  }
                  break;
               case 3:
                  if (curChar == 92)
                     jjstateSet[jjnewStateCnt++] = 2;
                  break;
               case 4:
                  jjAddStates(14, 16);
                  break;
               case 8:
                  if (curChar == 92)
                     jjstateSet[jjnewStateCnt++] = 7;
                  break;
               case 9:
                  jjAddStates(11, 13);
                  break;
               case 11:
                  if ((0x7fffffe07fffffeL & l) == 0L)
                     break;
                  if (kind > 85)
                     kind = 85;
                  jjCheckNAddTwoStates(11, 12);
                  break;
               case 12:
                  if ((0x7fffffe87fffffeL & l) == 0L)
                     break;
                  if (kind > 85)
                     kind = 85;
                  jjCheckNAdd(12);
                  break;
               case 14:
                  if ((0x7fffffe07fffffeL & l) == 0L)
                     break;
                  if (kind > 86)
                     kind = 86;
                  jjCheckNAddTwoStates(14, 15);
                  break;
               case 15:
                  if ((0x7fffffe87fffffeL & l) == 0L)
                     break;
                  if (kind > 86)
                     kind = 86;
                  jjCheckNAdd(15);
                  break;
               case 17:
                  if ((0x7fffffe07fffffeL & l) == 0L)
                     break;
                  if (kind > 87)
                     kind = 87;
                  jjCheckNAddTwoStates(17, 18);
                  break;
               case 18:
                  if ((0x7fffffe87fffffeL & l) == 0L)
                     break;
                  if (kind > 87)
                     kind = 87;
                  jjCheckNAdd(18);
                  break;
               case 20:
                  if ((0x7fffffe07fffffeL & l) == 0L)
                     break;
                  if (kind > 88)
                     kind = 88;
                  jjCheckNAddTwoStates(20, 21);
                  break;
               case 21:
                  if ((0x7fffffe87fffffeL & l) == 0L)
                     break;
                  if (kind > 88)
                     kind = 88;
                  jjCheckNAdd(21);
                  break;
               case 30:
                  if ((0x4000000040L & l) != 0L && kind > 78)
                     kind = 78;
                  break;
               case 40:
                  jjAddStates(20, 21);
                  break;
               case 43:
                  if (kind > 94)
                     kind = 94;
                  jjAddStates(17, 19);
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      else
      {
         int i2 = (curChar & 0xff) >> 6;
         long l2 = 1L << (curChar & 077);
         do
         {
            switch(jjstateSet[--i])
            {
               case 4:
                  if ((jjbitVec0[i2] & l2) != 0L)
                     jjAddStates(14, 16);
                  break;
               case 9:
                  if ((jjbitVec0[i2] & l2) != 0L)
                     jjAddStates(11, 13);
                  break;
               case 40:
                  if ((jjbitVec0[i2] & l2) != 0L)
                     jjAddStates(20, 21);
                  break;
               case 43:
                  if ((jjbitVec0[i2] & l2) == 0L)
                     break;
                  if (kind > 94)
                     kind = 94;
                  jjAddStates(17, 19);
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      if (kind != 0x7fffffff)
      {
         jjmatchedKind = kind;
         jjmatchedPos = curPos;
         kind = 0x7fffffff;
      }
      ++curPos;
      if ((i = jjnewStateCnt) == (startsAt = 47 - (jjnewStateCnt = startsAt)))
         return curPos;
      try { curChar = input_stream.readChar(); }
      catch(java.io.IOException e) { return curPos; }
   }
}
private final int jjStopStringLiteralDfa_1(int pos, long active0, long active1)
{
   switch (pos)
   {
      default :
         return -1;
   }
}
private final int jjStartNfa_1(int pos, long active0, long active1)
{
   return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0, active1), pos + 1);
}
private int jjMoveStringLiteralDfa0_1()
{
   switch(curChar)
   {
      case 42:
         return jjMoveStringLiteralDfa1_1(0x400000000L);
      case 47:
         return jjMoveStringLiteralDfa1_1(0x200000000L);
      default :
         return jjMoveNfa_1(0, 0);
   }
}
private int jjMoveStringLiteralDfa1_1(long active1)
{
   try { curChar = input_stream.readChar(); }
   catch(java.io.IOException e) {
      jjStopStringLiteralDfa_1(0, 0L, active1);
      return 1;
   }
   switch(curChar)
   {
      case 42:
         if ((active1 & 0x200000000L) != 0L)
            return jjStopAtPos(1, 97);
         break;
      case 47:
         if ((active1 & 0x400000000L) != 0L)
            return jjStopAtPos(1, 98);
         break;
      default :
         break;
   }
   return jjStartNfa_1(0, 0L, active1);
}
private int jjMoveNfa_1(int startState, int curPos)
{
   int startsAt = 0;
   jjnewStateCnt = 3;
   int i = 1;
   jjstateSet[0] = startState;
   int kind = 0x7fffffff;
   for (;;)
   {
      if (++jjround == 0x7fffffff)
         ReInitRounds();
      if (curChar < 64)
      {
         long l = 1L << curChar;
         do
         {
            switch(jjstateSet[--i])
            {
               case 0:
                  if (curChar != 43)
                     break;
                  if (kind > 96)
                     kind = 96;
                  jjCheckNAddTwoStates(1, 2);
                  break;
               case 1:
                  if (curChar != 32)
                     break;
                  if (kind > 96)
                     kind = 96;
                  jjCheckNAddTwoStates(1, 2);
                  break;
               case 2:
                  if ((0xffff7bffffffffffL & l) == 0L)
                     break;
                  if (kind > 96)
                     kind = 96;
                  jjCheckNAdd(2);
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      else if (curChar < 128)
      {
         long l = 1L << (curChar & 077);
         do
         {
            switch(jjstateSet[--i])
            {
               case 2:
                  kind = 96;
                  jjstateSet[jjnewStateCnt++] = 2;
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      else
      {
         int i2 = (curChar & 0xff) >> 6;
         long l2 = 1L << (curChar & 077);
         do
         {
            switch(jjstateSet[--i])
            {
               case 2:
                  if ((jjbitVec0[i2] & l2) == 0L)
                     break;
                  if (kind > 96)
                     kind = 96;
                  jjstateSet[jjnewStateCnt++] = 2;
                  break;
               default : break;
            }
         } while(i != startsAt);
      }
      if (kind != 0x7fffffff)
      {
         jjmatchedKind = kind;
         jjmatchedPos = curPos;
         kind = 0x7fffffff;
      }
      ++curPos;
      if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
         return curPos;
      try { curChar = input_stream.readChar(); }
      catch(java.io.IOException e) { return curPos; }
   }
}
static final int[] jjnextStates = {
   24, 25, 26, 27, 29, 30, 31, 32, 34, 39, 42, 8, 9, 10, 3, 4, 
   5, 43, 44, 46, 40, 41, 
};

/** Token literal values. */
public static final String[] jjstrLiteralImages = {
"", "\165\163\145", "\144\145\143\154\141\162\145", 
"\146\165\156\143\164\151\157\156", "\164\171\160\145", "\154\157\141\144", "\167\162\151\164\145", 
"\163\145\164", "\73", "\157\165\164\160\165\164", "\164\157", "\72", 
"\144\141\164\141\166\145\162\163\145", "\165\163\151\156\147", "\75", "\54", 
"\160\162\145\55\163\157\162\164\145\144", "\141\163", "\143\154\157\163\145\144", "\157\160\145\156", "\173", "\175", 
"\77", "\133", "\135", "\74", "\76", "\157\162", "\141\156\144", "\74\75", "\76\75", 
"\41\75", "\176\75", "\53", "\55", "\52", "\57", "\45", "\151\144\151\166", 
"\165\156\151\157\156", "\56", "\173\173", "\175\175", "\151\146", "\164\150\145\156", 
"\145\154\163\145", "\162\145\164\165\162\156", "\152\157\151\156", "\154\157\152", 
"\146\157\162", "\141\164", "\151\156", "\154\145\164", "\72\75", "\167\150\145\162\145", 
"\157\162\144\145\162", "\142\171", "\141\163\143", "\144\145\163\143", "\147\162\157\165\160", 
"\144\145\143\157\162", "\167\151\164\150", "\154\151\155\151\164", "\157\146\146\163\145\164", 
"\144\151\163\164\151\156\143\164", "\163\157\155\145", "\145\166\145\162\171", 
"\163\141\164\151\163\146\151\145\163", "\136", "\144\141\164\141\163\145\164", "\50", "\51", null, 
"\156\165\154\154", "\164\162\165\145", "\146\141\154\163\145", null, null, null, null, null, null, 
null, null, null, null, null, null, null, null, null, null, null, null, null, null, 
null, null, null, null, };

/** Lexer state names. */
public static final String[] lexStateNames = {
   "DEFAULT",
   "INSIDE_COMMENT",
};

/** Lex State array. */
public static final int[] jjnewLexState = {
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, 
};
static final long[] jjtoToken = {
   0xffffffffffffffffL, 0x1e6efffL, 
};
static final long[] jjtoSkip = {
   0x0L, 0xffe000000L, 
};
static final long[] jjtoSpecial = {
   0x0L, 0x100000000L, 
};
protected SimpleCharStream input_stream;
private final int[] jjrounds = new int[47];
private final int[] jjstateSet = new int[94];
private final StringBuilder jjimage = new StringBuilder();
private StringBuilder image = jjimage;
private int jjimageLen;
private int lengthOfMatch;
protected char curChar;
/** Constructor. */
public AQLPlusParserTokenManager(SimpleCharStream stream){
   if (SimpleCharStream.staticFlag)
      throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
   input_stream = stream;
}

/** Constructor. */
public AQLPlusParserTokenManager(SimpleCharStream stream, int lexState){
   this(stream);
   SwitchTo(lexState);
}

/** Reinitialise parser. */
public void ReInit(SimpleCharStream stream)
{
   jjmatchedPos = jjnewStateCnt = 0;
   curLexState = defaultLexState;
   input_stream = stream;
   ReInitRounds();
}
private void ReInitRounds()
{
   int i;
   jjround = 0x80000001;
   for (i = 47; i-- > 0;)
      jjrounds[i] = 0x80000000;
}

/** Reinitialise parser. */
public void ReInit(SimpleCharStream stream, int lexState)
{
   ReInit(stream);
   SwitchTo(lexState);
}

/** Switch to specified lex state. */
public void SwitchTo(int lexState)
{
   if (lexState >= 2 || lexState < 0)
      throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
   else
      curLexState = lexState;
}

protected Token jjFillToken()
{
   final Token t;
   final String curTokenImage;
   final int beginLine;
   final int endLine;
   final int beginColumn;
   final int endColumn;
   String im = jjstrLiteralImages[jjmatchedKind];
   curTokenImage = (im == null) ? input_stream.GetImage() : im;
   beginLine = input_stream.getBeginLine();
   beginColumn = input_stream.getBeginColumn();
   endLine = input_stream.getEndLine();
   endColumn = input_stream.getEndColumn();
   t = Token.newToken(jjmatchedKind, curTokenImage);

   t.beginLine = beginLine;
   t.endLine = endLine;
   t.beginColumn = beginColumn;
   t.endColumn = endColumn;

   return t;
}

int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;

/** Get the next Token. */
public Token getNextToken() 
{
  Token specialToken = null;
  Token matchedToken;
  int curPos = 0;

  EOFLoop :
  for (;;)
  {
   try
   {
      curChar = input_stream.BeginToken();
   }
   catch(java.io.IOException e)
   {
      jjmatchedKind = 0;
      matchedToken = jjFillToken();
      matchedToken.specialToken = specialToken;
      return matchedToken;
   }
   image = jjimage;
   image.setLength(0);
   jjimageLen = 0;

   switch(curLexState)
   {
     case 0:
       try { input_stream.backup(0);
          while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L)
             curChar = input_stream.BeginToken();
       }
       catch (java.io.IOException e1) { continue EOFLoop; }
       jjmatchedKind = 0x7fffffff;
       jjmatchedPos = 0;
       curPos = jjMoveStringLiteralDfa0_0();
       break;
     case 1:
       jjmatchedKind = 0x7fffffff;
       jjmatchedPos = 0;
       curPos = jjMoveStringLiteralDfa0_1();
       if (jjmatchedPos == 0 && jjmatchedKind > 99)
       {
          jjmatchedKind = 99;
       }
       break;
   }
     if (jjmatchedKind != 0x7fffffff)
     {
        if (jjmatchedPos + 1 < curPos)
           input_stream.backup(curPos - jjmatchedPos - 1);
        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
        {
           matchedToken = jjFillToken();
           matchedToken.specialToken = specialToken;
       if (jjnewLexState[jjmatchedKind] != -1)
         curLexState = jjnewLexState[jjmatchedKind];
           return matchedToken;
        }
        else
        {
           if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
           {
              matchedToken = jjFillToken();
              if (specialToken == null)
                 specialToken = matchedToken;
              else
              {
                 matchedToken.specialToken = specialToken;
                 specialToken = (specialToken.next = matchedToken);
              }
              SkipLexicalActions(matchedToken);
           }
           else
              SkipLexicalActions(null);
         if (jjnewLexState[jjmatchedKind] != -1)
           curLexState = jjnewLexState[jjmatchedKind];
           continue EOFLoop;
        }
     }
     int error_line = input_stream.getEndLine();
     int error_column = input_stream.getEndColumn();
     String error_after = null;
     boolean EOFSeen = false;
     try { input_stream.readChar(); input_stream.backup(1); }
     catch (java.io.IOException e1) {
        EOFSeen = true;
        error_after = curPos <= 1 ? "" : input_stream.GetImage();
        if (curChar == '\n' || curChar == '\r') {
           error_line++;
           error_column = 0;
        }
        else
           error_column++;
     }
     if (!EOFSeen) {
        input_stream.backup(1);
        error_after = curPos <= 1 ? "" : input_stream.GetImage();
     }
     throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
  }
}

void SkipLexicalActions(Token matchedToken)
{
   switch(jjmatchedKind)
   {
      case 95 :
         image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
                commentDepth=1;
         break;
      case 97 :
         image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
                commentDepth++;
         break;
      case 98 :
         image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
                commentDepth--; if (commentDepth == 0) SwitchTo(DEFAULT);
         break;
      default :
         break;
   }
}
private void jjCheckNAdd(int state)
{
   if (jjrounds[state] != jjround)
   {
      jjstateSet[jjnewStateCnt++] = state;
      jjrounds[state] = jjround;
   }
}
private void jjAddStates(int start, int end)
{
   do {
      jjstateSet[jjnewStateCnt++] = jjnextStates[start];
   } while (start++ != end);
}
private void jjCheckNAddTwoStates(int state1, int state2)
{
   jjCheckNAdd(state1);
   jjCheckNAdd(state2);
}

private void jjCheckNAddStates(int start, int end)
{
   do {
      jjCheckNAdd(jjnextStates[start]);
   } while (start++ != end);
}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy