org.infinispan.protostream.impl.parser.ProtoParserTokenManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protostream Show documentation
Show all versions of protostream Show documentation
Users need to implement a marshaller object that interacts with a field writer/reader in order to serialize
state.
/* ProtoParserTokenManager.java */
/* Generated By:JavaCC: Do not edit this line. ProtoParserTokenManager.java */
package org.infinispan.protostream.impl.parser;
import static org.infinispan.protostream.descriptors.FileDescriptor.fullName;
import java.io.Reader;
import java.util.regex.Pattern;
import org.infinispan.protostream.config.Configuration;
import org.infinispan.protostream.descriptors.Descriptor;
import org.infinispan.protostream.descriptors.EnumContainer;
import org.infinispan.protostream.descriptors.EnumDescriptor;
import org.infinispan.protostream.descriptors.EnumValueDescriptor;
import org.infinispan.protostream.descriptors.FieldContainer;
import org.infinispan.protostream.descriptors.FieldDescriptor;
import org.infinispan.protostream.descriptors.FileDescriptor;
import org.infinispan.protostream.descriptors.Label;
import org.infinispan.protostream.descriptors.MapDescriptor;
import org.infinispan.protostream.descriptors.MessageContainer;
import org.infinispan.protostream.descriptors.OneOfDescriptor;
import org.infinispan.protostream.descriptors.Option;
import org.infinispan.protostream.descriptors.OptionContainer;
import org.infinispan.protostream.descriptors.ReservedContainer;
/** Token Manager. */
@SuppressWarnings ("unused")
public class ProtoParserTokenManager implements ProtoParserConstants {
/** 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_1(int pos, long active0){
switch (pos)
{
case 0:
if ((active0 & 0x213e200000L) != 0L)
{
jjmatchedKind = 42;
return 63;
}
if ((active0 & 0x201000000L) != 0L)
{
jjmatchedKind = 42;
return 17;
}
if ((active0 & 0x4c0000000L) != 0L)
{
jjmatchedKind = 42;
return 20;
}
if ((active0 & 0x1000L) != 0L)
{
jjmatchedKind = 42;
return 5;
}
if ((active0 & 0x5800000000L) != 0L)
{
jjmatchedKind = 42;
return 29;
}
return -1;
case 1:
if ((active0 & 0x440000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 1;
return 19;
}
if ((active0 & 0x1000L) != 0L)
return 63;
if ((active0 & 0x63be200000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 1;
return 63;
}
if ((active0 & 0x1800000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 1;
return 28;
}
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 1;
return 16;
}
return -1;
case 2:
if ((active0 & 0x4440000000L) != 0L)
return 63;
if ((active0 & 0x3bbe200000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 2;
return 63;
}
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 2;
return 15;
}
return -1;
case 3:
if ((active0 & 0x108000000L) != 0L)
return 63;
if ((active0 & 0x3ab6200000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 3;
return 63;
}
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 3;
return 14;
}
return -1;
case 4:
if ((active0 & 0x1000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 4;
return 13;
}
if ((active0 & 0x200000000L) != 0L)
return 63;
if ((active0 & 0x38b6200000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 4;
return 63;
}
return -1;
case 5:
if ((active0 & 0x2006200000L) != 0L)
return 63;
if ((active0 & 0x18b0000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 5;
return 63;
}
if ((active0 & 0x1000000L) != 0L)
return 12;
return -1;
case 6:
if ((active0 & 0x10b0000000L) != 0L)
return 63;
if ((active0 & 0x800000000L) != 0L)
{
jjmatchedKind = 42;
jjmatchedPos = 6;
return 63;
}
return -1;
default :
return -1;
}
}
private final int jjStartNfa_1(int pos, long active0){
return jjMoveNfa_1(jjStopStringLiteralDfa_1(pos, active0), pos + 1);
}
private int jjStopAtPos(int pos, int kind)
{
jjmatchedKind = kind;
jjmatchedPos = pos;
return pos + 1;
}
private int jjMoveStringLiteralDfa0_1(){
switch(curChar)
{
case 40:
return jjStopAtPos(0, 15);
case 41:
return jjStopAtPos(0, 16);
case 44:
return jjStopAtPos(0, 10);
case 46:
return jjStopAtPos(0, 11);
case 58:
return jjStopAtPos(0, 9);
case 59:
return jjStopAtPos(0, 8);
case 60:
return jjStopAtPos(0, 19);
case 61:
return jjStopAtPos(0, 41);
case 62:
return jjStopAtPos(0, 20);
case 91:
return jjStopAtPos(0, 17);
case 93:
return jjStopAtPos(0, 18);
case 101:
return jjMoveStringLiteralDfa1_1(0x100000000L);
case 105:
return jjMoveStringLiteralDfa1_1(0x2000000L);
case 109:
return jjMoveStringLiteralDfa1_1(0x4c0000000L);
case 111:
return jjMoveStringLiteralDfa1_1(0x201000000L);
case 112:
return jjMoveStringLiteralDfa1_1(0x14000000L);
case 114:
return jjMoveStringLiteralDfa1_1(0x5800000000L);
case 115:
return jjMoveStringLiteralDfa1_1(0x2020200000L);
case 116:
return jjMoveStringLiteralDfa1_1(0x1000L);
case 119:
return jjMoveStringLiteralDfa1_1(0x8000000L);
case 123:
return jjStopAtPos(0, 13);
case 125:
return jjStopAtPos(0, 14);
default :
return jjMoveNfa_1(0, 0);
}
}
private int jjMoveStringLiteralDfa1_1(long active0){
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(0, active0);
return 1;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa2_1(active0, 0x450000000L);
case 101:
return jjMoveStringLiteralDfa2_1(active0, 0x18a8000000L);
case 109:
return jjMoveStringLiteralDfa2_1(active0, 0x2000000L);
case 110:
return jjMoveStringLiteralDfa2_1(active0, 0x300000000L);
case 111:
if ((active0 & 0x1000L) != 0L)
return jjStartNfaWithStates_1(1, 12, 63);
break;
case 112:
return jjMoveStringLiteralDfa2_1(active0, 0x4001000000L);
case 116:
return jjMoveStringLiteralDfa2_1(active0, 0x2000000000L);
case 117:
return jjMoveStringLiteralDfa2_1(active0, 0x4000000L);
case 121:
return jjMoveStringLiteralDfa2_1(active0, 0x200000L);
default :
break;
}
return jjStartNfa_1(0, active0);
}
private int jjMoveStringLiteralDfa2_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(0, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(1, active0);
return 2;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa3_1(active0, 0x8000000L);
case 98:
return jjMoveStringLiteralDfa3_1(active0, 0x4000000L);
case 99:
if ((active0 & 0x4000000000L) != 0L)
return jjStartNfaWithStates_1(2, 38, 63);
return jjMoveStringLiteralDfa3_1(active0, 0x10000000L);
case 101:
return jjMoveStringLiteralDfa3_1(active0, 0x200000000L);
case 110:
return jjMoveStringLiteralDfa3_1(active0, 0x200000L);
case 112:
if ((active0 & 0x400000000L) != 0L)
return jjStartNfaWithStates_1(2, 34, 63);
return jjMoveStringLiteralDfa3_1(active0, 0x2000000L);
case 114:
return jjMoveStringLiteralDfa3_1(active0, 0x2020000000L);
case 115:
return jjMoveStringLiteralDfa3_1(active0, 0x880000000L);
case 116:
return jjMoveStringLiteralDfa3_1(active0, 0x1001000000L);
case 117:
return jjMoveStringLiteralDfa3_1(active0, 0x100000000L);
case 120:
if ((active0 & 0x40000000L) != 0L)
return jjStartNfaWithStates_1(2, 30, 63);
break;
default :
break;
}
return jjStartNfa_1(1, active0);
}
private int jjMoveStringLiteralDfa3_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(1, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(2, active0);
return 3;
}
switch(curChar)
{
case 101:
return jjMoveStringLiteralDfa4_1(active0, 0x2800000000L);
case 105:
return jjMoveStringLiteralDfa4_1(active0, 0x1000000L);
case 107:
if ((active0 & 0x8000000L) != 0L)
return jjStartNfaWithStates_1(3, 27, 63);
return jjMoveStringLiteralDfa4_1(active0, 0x10000000L);
case 108:
return jjMoveStringLiteralDfa4_1(active0, 0x4000000L);
case 109:
if ((active0 & 0x100000000L) != 0L)
return jjStartNfaWithStates_1(3, 32, 63);
break;
case 111:
return jjMoveStringLiteralDfa4_1(active0, 0x202000000L);
case 115:
return jjMoveStringLiteralDfa4_1(active0, 0x80000000L);
case 116:
return jjMoveStringLiteralDfa4_1(active0, 0x200000L);
case 117:
return jjMoveStringLiteralDfa4_1(active0, 0x1000000000L);
case 118:
return jjMoveStringLiteralDfa4_1(active0, 0x20000000L);
default :
break;
}
return jjStartNfa_1(2, active0);
}
private int jjMoveStringLiteralDfa4_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(2, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(3, active0);
return 4;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa5_1(active0, 0x2090200000L);
case 102:
if ((active0 & 0x200000000L) != 0L)
return jjStartNfaWithStates_1(4, 33, 63);
break;
case 105:
return jjMoveStringLiteralDfa5_1(active0, 0x24000000L);
case 111:
return jjMoveStringLiteralDfa5_1(active0, 0x1000000L);
case 114:
return jjMoveStringLiteralDfa5_1(active0, 0x1802000000L);
default :
break;
}
return jjStartNfa_1(3, active0);
}
private int jjMoveStringLiteralDfa5_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(3, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(4, active0);
return 5;
}
switch(curChar)
{
case 99:
if ((active0 & 0x4000000L) != 0L)
return jjStartNfaWithStates_1(5, 26, 63);
return jjMoveStringLiteralDfa6_1(active0, 0x20000000L);
case 103:
return jjMoveStringLiteralDfa6_1(active0, 0x90000000L);
case 109:
if ((active0 & 0x2000000000L) != 0L)
return jjStartNfaWithStates_1(5, 37, 63);
break;
case 110:
if ((active0 & 0x1000000L) != 0L)
return jjStartNfaWithStates_1(5, 24, 12);
return jjMoveStringLiteralDfa6_1(active0, 0x1000000000L);
case 116:
if ((active0 & 0x2000000L) != 0L)
return jjStartNfaWithStates_1(5, 25, 63);
break;
case 118:
return jjMoveStringLiteralDfa6_1(active0, 0x800000000L);
case 120:
if ((active0 & 0x200000L) != 0L)
return jjStartNfaWithStates_1(5, 21, 63);
break;
default :
break;
}
return jjStartNfa_1(4, active0);
}
private int jjMoveStringLiteralDfa6_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(4, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(5, active0);
return 6;
}
switch(curChar)
{
case 101:
if ((active0 & 0x10000000L) != 0L)
return jjStartNfaWithStates_1(6, 28, 63);
else if ((active0 & 0x20000000L) != 0L)
return jjStartNfaWithStates_1(6, 29, 63);
else if ((active0 & 0x80000000L) != 0L)
return jjStartNfaWithStates_1(6, 31, 63);
return jjMoveStringLiteralDfa7_1(active0, 0x800000000L);
case 115:
if ((active0 & 0x1000000000L) != 0L)
return jjStartNfaWithStates_1(6, 36, 63);
break;
default :
break;
}
return jjStartNfa_1(5, active0);
}
private int jjMoveStringLiteralDfa7_1(long old0, long active0){
if (((active0 &= old0)) == 0L)
return jjStartNfa_1(5, old0);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_1(6, active0);
return 7;
}
switch(curChar)
{
case 100:
if ((active0 & 0x800000000L) != 0L)
return jjStartNfaWithStates_1(7, 35, 63);
break;
default :
break;
}
return jjStartNfa_1(6, active0);
}
private int jjStartNfaWithStates_1(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_1(state, pos + 1);
}
static final long[] jjbitVec0 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
private int jjMoveNfa_1(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 63;
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 13:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 12:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 0:
if ((0x3fe000000000000L & l) != 0L)
{
if (kind > 39)
kind = 39;
{ jjCheckNAddStates(0, 2); }
}
else if (curChar == 45)
{ jjAddStates(3, 4); }
else if (curChar == 48)
{
if (kind > 39)
kind = 39;
{ jjCheckNAdd(49); }
}
else if (curChar == 47)
{ jjAddStates(5, 6); }
else if (curChar == 34)
{ jjCheckNAddTwoStates(1, 2); }
break;
case 14:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 16:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 15:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 20:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 28:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 29:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 5:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 17:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 19:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 63:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
else if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 1:
if ((0xfffffffbffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(1, 2); }
break;
case 2:
if (curChar == 34 && kind > 7)
kind = 7;
break;
case 36:
if (curChar == 47)
{ jjAddStates(5, 6); }
break;
case 37:
if (curChar == 47)
{ jjCheckNAddStates(7, 9); }
break;
case 38:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjCheckNAddStates(7, 9); }
break;
case 39:
if ((0x2400L & l) != 0L && kind > 5)
kind = 5;
break;
case 40:
if (curChar == 10 && kind > 5)
kind = 5;
break;
case 41:
if (curChar == 13)
jjstateSet[jjnewStateCnt++] = 40;
break;
case 42:
if (curChar == 42)
{ jjCheckNAddTwoStates(43, 44); }
break;
case 43:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(43, 44); }
break;
case 44:
if (curChar == 42)
{ jjCheckNAddStates(10, 12); }
break;
case 45:
if ((0xffff7bffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(46, 44); }
break;
case 46:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(46, 44); }
break;
case 47:
if (curChar == 47 && kind > 6)
kind = 6;
break;
case 48:
if (curChar != 48)
break;
if (kind > 39)
kind = 39;
{ jjCheckNAdd(49); }
break;
case 49:
if (curChar != 46)
break;
if (kind > 40)
kind = 40;
{ jjCheckNAdd(50); }
break;
case 50:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 40)
kind = 40;
{ jjCheckNAdd(50); }
break;
case 51:
if (curChar == 45)
{ jjAddStates(3, 4); }
break;
case 52:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 39)
kind = 39;
{ jjCheckNAdd(53); }
break;
case 53:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 39)
kind = 39;
{ jjCheckNAdd(53); }
break;
case 54:
if ((0x3fe000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(55, 49); }
break;
case 55:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(55, 49); }
break;
case 56:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 39)
kind = 39;
{ jjCheckNAddStates(0, 2); }
break;
case 58:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
break;
case 59:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
break;
case 60:
if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 61;
break;
case 62:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 43)
kind = 43;
{ jjCheckNAddTwoStates(60, 62); }
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 13:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 110)
jjstateSet[jjnewStateCnt++] = 12;
break;
case 12:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 97)
jjstateSet[jjnewStateCnt++] = 11;
break;
case 0:
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAddStates(13, 15); }
}
if (curChar == 114)
{ jjAddStates(16, 17); }
else if (curChar == 109)
jjstateSet[jjnewStateCnt++] = 20;
else if (curChar == 111)
jjstateSet[jjnewStateCnt++] = 17;
else if (curChar == 102)
jjstateSet[jjnewStateCnt++] = 9;
else if (curChar == 116)
jjstateSet[jjnewStateCnt++] = 5;
break;
case 14:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 111)
jjstateSet[jjnewStateCnt++] = 13;
break;
case 16:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 116)
jjstateSet[jjnewStateCnt++] = 15;
break;
case 15:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 105)
jjstateSet[jjnewStateCnt++] = 14;
break;
case 20:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 97)
jjstateSet[jjnewStateCnt++] = 19;
break;
case 28:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 113)
jjstateSet[jjnewStateCnt++] = 33;
else if (curChar == 112)
jjstateSet[jjnewStateCnt++] = 27;
break;
case 29:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 101)
jjstateSet[jjnewStateCnt++] = 34;
if (curChar == 101)
jjstateSet[jjnewStateCnt++] = 28;
break;
case 5:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 114)
jjstateSet[jjnewStateCnt++] = 4;
break;
case 17:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 112)
jjstateSet[jjnewStateCnt++] = 16;
break;
case 19:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
if (curChar == 120)
{
if (kind > 39)
kind = 39;
}
break;
case 63:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
}
break;
case 1:
{ jjAddStates(18, 19); }
break;
case 3:
if (curChar == 101 && kind > 22)
kind = 22;
break;
case 4:
if (curChar == 117)
{ jjCheckNAdd(3); }
break;
case 6:
if (curChar == 116)
jjstateSet[jjnewStateCnt++] = 5;
break;
case 7:
if (curChar == 115)
{ jjCheckNAdd(3); }
break;
case 8:
if (curChar == 108)
jjstateSet[jjnewStateCnt++] = 7;
break;
case 9:
if (curChar == 97)
jjstateSet[jjnewStateCnt++] = 8;
break;
case 10:
if (curChar == 102)
jjstateSet[jjnewStateCnt++] = 9;
break;
case 11:
if (curChar == 108 && kind > 23)
kind = 23;
break;
case 18:
if (curChar == 111)
jjstateSet[jjnewStateCnt++] = 17;
break;
case 21:
if (curChar == 109)
jjstateSet[jjnewStateCnt++] = 20;
break;
case 22:
if (curChar == 114)
{ jjAddStates(16, 17); }
break;
case 23:
if (curChar == 100 && kind > 23)
kind = 23;
break;
case 24:
case 30:
if (curChar == 101)
{ jjCheckNAdd(23); }
break;
case 25:
if (curChar == 116)
jjstateSet[jjnewStateCnt++] = 24;
break;
case 26:
if (curChar == 97)
jjstateSet[jjnewStateCnt++] = 25;
break;
case 27:
if (curChar == 101)
jjstateSet[jjnewStateCnt++] = 26;
break;
case 31:
if (curChar == 114)
jjstateSet[jjnewStateCnt++] = 30;
break;
case 32:
if (curChar == 105)
jjstateSet[jjnewStateCnt++] = 31;
break;
case 33:
if (curChar == 117)
jjstateSet[jjnewStateCnt++] = 32;
break;
case 34:
if (curChar == 113)
jjstateSet[jjnewStateCnt++] = 33;
break;
case 35:
if (curChar == 101)
jjstateSet[jjnewStateCnt++] = 34;
break;
case 38:
{ jjAddStates(7, 9); }
break;
case 43:
{ jjCheckNAddTwoStates(43, 44); }
break;
case 45:
case 46:
{ jjCheckNAddTwoStates(46, 44); }
break;
case 57:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 42)
kind = 42;
{ jjCheckNAddStates(13, 15); }
break;
case 58:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 42)
kind = 42;
{ jjCheckNAdd(58); }
break;
case 59:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(59, 60); }
break;
case 61:
case 62:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 43)
kind = 43;
{ jjCheckNAddTwoStates(60, 62); }
break;
default : break;
}
} while(i != startsAt);
}
else
{
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 1:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjAddStates(18, 19); }
break;
case 38:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjAddStates(7, 9); }
break;
case 43:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjCheckNAddTwoStates(43, 44); }
break;
case 45:
case 46:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjCheckNAddTwoStates(46, 44); }
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 63 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
private final int jjStopStringLiteralDfa_0(int pos, long active0){
switch (pos)
{
default :
return -1;
}
}
private final int jjStartNfa_0(int pos, long active0){
return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
}
private int jjMoveStringLiteralDfa0_0(){
switch(curChar)
{
case 61:
return jjStopAtPos(0, 41);
default :
return jjMoveNfa_0(0, 0);
}
}
private int jjMoveNfa_0(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 18;
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 == 47)
{ jjAddStates(20, 21); }
break;
case 1:
if (curChar == 47)
{ jjCheckNAddStates(22, 24); }
break;
case 2:
if ((0xffffffffffffdbffL & l) != 0L)
{ jjCheckNAddStates(22, 24); }
break;
case 3:
if ((0x2400L & l) != 0L && kind > 5)
kind = 5;
break;
case 4:
if (curChar == 10 && kind > 5)
kind = 5;
break;
case 5:
if (curChar == 13)
jjstateSet[jjnewStateCnt++] = 4;
break;
case 6:
if (curChar == 42)
{ jjCheckNAddTwoStates(7, 8); }
break;
case 7:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(7, 8); }
break;
case 8:
if (curChar == 42)
{ jjCheckNAddStates(25, 27); }
break;
case 9:
if ((0xffff7bffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(10, 8); }
break;
case 10:
if ((0xfffffbffffffffffL & l) != 0L)
{ jjCheckNAddTwoStates(10, 8); }
break;
case 11:
if (curChar == 47 && kind > 6)
kind = 6;
break;
case 13:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 42)
kind = 42;
jjstateSet[jjnewStateCnt++] = 13;
break;
case 14:
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(14, 15); }
break;
case 15:
if (curChar == 46)
jjstateSet[jjnewStateCnt++] = 16;
break;
case 17:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 43)
kind = 43;
{ jjCheckNAddTwoStates(15, 17); }
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 0:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 42)
kind = 42;
{ jjCheckNAddStates(28, 30); }
break;
case 2:
{ jjAddStates(22, 24); }
break;
case 7:
{ jjCheckNAddTwoStates(7, 8); }
break;
case 9:
case 10:
{ jjCheckNAddTwoStates(10, 8); }
break;
case 13:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 42)
kind = 42;
{ jjCheckNAdd(13); }
break;
case 14:
if ((0x7fffffe87fffffeL & l) != 0L)
{ jjCheckNAddTwoStates(14, 15); }
break;
case 16:
case 17:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 43)
kind = 43;
{ jjCheckNAddTwoStates(15, 17); }
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)
{ jjAddStates(22, 24); }
break;
case 7:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjCheckNAddTwoStates(7, 8); }
break;
case 9:
case 10:
if ((jjbitVec0[i2] & l2) != 0L)
{ jjCheckNAddTwoStates(10, 8); }
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 18 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
/** Token literal values. */
public static final String[] jjstrLiteralImages = {
"", null, null, null, null, null, null, null, "\73", "\72", "\54", "\56",
"\164\157", "\173", "\175", "\50", "\51", "\133", "\135", "\74", "\76",
"\163\171\156\164\141\170", null, null, "\157\160\164\151\157\156", "\151\155\160\157\162\164",
"\160\165\142\154\151\143", "\167\145\141\153", "\160\141\143\153\141\147\145",
"\163\145\162\166\151\143\145", "\155\141\170", "\155\145\163\163\141\147\145", "\145\156\165\155",
"\157\156\145\157\146", "\155\141\160", "\162\145\163\145\162\166\145\144",
"\162\145\164\165\162\156\163", "\163\164\162\145\141\155", "\162\160\143", null, null, "\75", null, null, };
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;
}
static final int[] jjnextStates = {
53, 55, 49, 52, 54, 37, 42, 38, 39, 41, 44, 45, 47, 58, 59, 60,
29, 35, 1, 2, 1, 6, 2, 3, 5, 8, 9, 11, 13, 14, 15,
};
int curLexState = 1;
int defaultLexState = 1;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
/** Get the next Token. */
public Token getNextToken()
{
Token matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.BeginToken();
}
catch(Exception e)
{
jjmatchedKind = 0;
jjmatchedPos = -1;
matchedToken = jjFillToken();
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:
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_1();
break;
}
if (jjmatchedKind != 0x7fffffff)
{
if (jjmatchedPos + 1 < curPos)
input_stream.backup(curPos - jjmatchedPos - 1);
if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
matchedToken = jjFillToken();
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
return 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 5 :
image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
ProtoParser.appendComment(image);
break;
case 6 :
image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1)));
ProtoParser.appendComment(image);
break;
default :
break;
}
}
void MoreLexicalActions()
{
jjimageLen += (lengthOfMatch = jjmatchedPos + 1);
switch(jjmatchedKind)
{
default :
break;
}
}
void TokenLexicalActions(Token matchedToken)
{
switch(jjmatchedKind)
{
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);
}
/** Constructor. */
public ProtoParserTokenManager(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 ProtoParserTokenManager (SimpleCharStream stream, int lexState){
ReInit(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 = 63; 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;
}
/** Lexer state names. */
public static final String[] lexStateNames = {
"IDSTATE",
"DEFAULT",
};
/** 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, 0, 0,
-1, -1, -1, 0, -1, -1, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, 1, 1, 1,
};
static final long[] jjtoToken = {
0xfffffffff81L,
};
static final long[] jjtoSkip = {
0x7eL,
};
static final long[] jjtoSpecial = {
0x0L,
};
static final long[] jjtoMore = {
0x0L,
};
protected SimpleCharStream input_stream;
private final int[] jjrounds = new int[63];
private final int[] jjstateSet = new int[2 * 63];
private final StringBuilder jjimage = new StringBuilder();
private StringBuilder image = jjimage;
private int jjimageLen;
private int lengthOfMatch;
protected int curChar;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy