net.sourceforge.pmd.lang.modelica.ast.ModelicaParserImplTokenManager Maven / Gradle / Ivy
The newest version!
/* Generated By:JJTree&JavaCC: Do not edit this line. ModelicaParserImplTokenManager.java */
package net.sourceforge.pmd.lang.modelica.ast;
import static net.sourceforge.pmd.lang.modelica.ast.ModelicaTokenKinds.*;
/** net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken Manager. */
class ModelicaParserImplTokenManager extends net.sourceforge.pmd.lang.ast.impl.javacc.AbstractTokenManager
{
/** 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 & 0xfff7ffffffffe000L) != 0L || (active1 & 0x1ffL) != 0L)
{
jjmatchedKind = 89;
return 1;
}
if ((active1 & 0x2000040000L) != 0L)
return 19;
return -1;
case 1:
if ((active0 & 0xffd3bfdfffffe000L) != 0L || (active1 & 0x1eeL) != 0L)
{
if (jjmatchedPos != 1)
{
jjmatchedKind = 89;
jjmatchedPos = 1;
}
return 1;
}
if ((active0 & 0x24402000000000L) != 0L || (active1 & 0x11L) != 0L)
return 1;
return -1;
case 2:
if ((active0 & 0x4001000080000000L) != 0L || (active1 & 0x60L) != 0L)
return 1;
if ((active0 & 0xbff2ffff7fffe000L) != 0L || (active1 & 0x18eL) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 2;
return 1;
}
return -1;
case 3:
if ((active0 & 0xb81002000a000000L) != 0L || (active1 & 0x8cL) != 0L)
return 1;
if ((active0 & 0x7e2fdff75ffe000L) != 0L || (active1 & 0x102L) != 0L)
{
if (jjmatchedPos != 3)
{
jjmatchedKind = 89;
jjmatchedPos = 3;
}
return 1;
}
return -1;
case 4:
if ((active0 & 0x2004060004e0000L) != 0L || (active1 & 0x102L) != 0L)
return 1;
if ((active0 & 0x15e2bd9f75b1e000L) != 0L || (active1 & 0x8L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 4;
return 1;
}
return -1;
case 5:
if ((active0 & 0x1400840210206000L) != 0L)
return 1;
if ((active0 & 0x1e2399d65918000L) != 0L || (active1 & 0x8L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 5;
return 1;
}
return -1;
case 6:
if ((active0 & 0x22000045010000L) != 0L)
return 1;
if ((active0 & 0x1c0399d20908000L) != 0L || (active1 & 0x8L) != 0L)
{
if (jjmatchedPos != 6)
{
jjmatchedKind = 89;
jjmatchedPos = 6;
}
return 1;
}
return -1;
case 7:
if ((active0 & 0x180119501808000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 7;
return 1;
}
if ((active0 & 0x40280820100000L) != 0L || (active1 & 0x8L) != 0L)
return 1;
return -1;
case 8:
if ((active0 & 0x80101401000000L) != 0L)
return 1;
if ((active0 & 0x100018100808000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 8;
return 1;
}
return -1;
case 9:
if ((active0 & 0x18100008000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 9;
return 1;
}
if ((active0 & 0x100000000800000L) != 0L)
return 1;
return -1;
case 10:
if ((active0 & 0x8100000000L) != 0L)
return 1;
if ((active0 & 0x10000008000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 10;
return 1;
}
return -1;
case 11:
if ((active0 & 0x8000L) != 0L)
return 1;
if ((active0 & 0x10000000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedPos = 11;
return 1;
}
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 40:
return jjStopAtPos(0, 2);
case 41:
return jjStopAtPos(0, 3);
case 42:
return jjStopAtPos(0, 81);
case 43:
return jjStopAtPos(0, 79);
case 44:
return jjStopAtPos(0, 10);
case 45:
return jjStopAtPos(0, 80);
case 46:
jjmatchedKind = 11;
return jjMoveStringLiteralDfa1_0(0x0L, 0x1f00000L);
case 47:
jjmatchedKind = 82;
return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000000L);
case 58:
jjmatchedKind = 12;
return jjMoveStringLiteralDfa1_0(0x8000000000000L, 0x0L);
case 59:
return jjStopAtPos(0, 8);
case 60:
jjmatchedKind = 73;
return jjMoveStringLiteralDfa1_0(0x0L, 0x4400L);
case 61:
jjmatchedKind = 9;
return jjMoveStringLiteralDfa1_0(0x0L, 0x2000L);
case 62:
jjmatchedKind = 75;
return jjMoveStringLiteralDfa1_0(0x0L, 0x1000L);
case 91:
return jjStopAtPos(0, 6);
case 93:
return jjStopAtPos(0, 7);
case 94:
return jjStopAtPos(0, 83);
case 97:
return jjMoveStringLiteralDfa1_0(0x180000000000000L, 0x20L);
case 98:
return jjMoveStringLiteralDfa1_0(0x200000000400000L, 0x0L);
case 99:
return jjMoveStringLiteralDfa1_0(0x2210001040000L, 0x0L);
case 100:
return jjMoveStringLiteralDfa1_0(0x1080000000000L, 0x0L);
case 101:
return jjMoveStringLiteralDfa1_0(0x30500009c0808000L, 0x8L);
case 102:
return jjMoveStringLiteralDfa1_0(0x4000020020020000L, 0x100L);
case 105:
return jjMoveStringLiteralDfa1_0(0x24402010002000L, 0x1L);
case 108:
return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x0L);
case 109:
return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L);
case 110:
return jjMoveStringLiteralDfa1_0(0x0L, 0x40L);
case 111:
return jjMoveStringLiteralDfa1_0(0x804000100000L, 0x10L);
case 112:
return jjMoveStringLiteralDfa1_0(0x10060c010000L, 0x0L);
case 114:
return jjMoveStringLiteralDfa1_0(0x400009000200000L, 0x0L);
case 115:
return jjMoveStringLiteralDfa1_0(0x40000000000L, 0x0L);
case 116:
return jjMoveStringLiteralDfa1_0(0x800000002000000L, 0x80L);
case 119:
return jjMoveStringLiteralDfa1_0(0x4000L, 0x6L);
case 123:
return jjStopAtPos(0, 4);
case 125:
return jjStopAtPos(0, 5);
case 65279:
return jjStopAtPos(0, 1);
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 & 0x400000L) != 0L)
return jjStopAtPos(1, 86);
else if ((active1 & 0x2000000000L) != 0L)
return jjStopAtPos(1, 101);
break;
case 43:
if ((active1 & 0x100000L) != 0L)
return jjStopAtPos(1, 84);
break;
case 45:
if ((active1 & 0x200000L) != 0L)
return jjStopAtPos(1, 85);
break;
case 47:
if ((active1 & 0x800000L) != 0L)
return jjStopAtPos(1, 87);
break;
case 61:
if ((active0 & 0x8000000000000L) != 0L)
return jjStopAtPos(1, 51);
else if ((active1 & 0x400L) != 0L)
return jjStopAtPos(1, 74);
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 94:
if ((active1 & 0x1000000L) != 0L)
return jjStopAtPos(1, 88);
break;
case 97:
return jjMoveStringLiteralDfa2_0(active0, 0x10100004010000L, active1, 0x100L);
case 101:
return jjMoveStringLiteralDfa2_0(active0, 0x401009000200000L, active1, 0L);
case 102:
if ((active0 & 0x4000000000000L) != 0L)
return jjStartNfaWithStates_0(1, 50, 1);
break;
case 104:
return jjMoveStringLiteralDfa2_0(active0, 0x800000000000000L, active1, 0x6L);
case 105:
return jjMoveStringLiteralDfa2_0(active0, 0x80000024000L, active1, 0L);
case 108:
return jjMoveStringLiteralDfa2_0(active0, 0x3080020000440000L, active1, 0x8L);
case 109:
return jjMoveStringLiteralDfa2_0(active0, 0x10002000L, active1, 0L);
case 110:
if ((active1 & 0x1L) != 0L)
{
jjmatchedKind = 64;
jjmatchedPos = 1;
}
return jjMoveStringLiteralDfa2_0(active0, 0x120402180008000L, active1, 0x20L);
case 111:
return jjMoveStringLiteralDfa2_0(active0, 0xc002210001080000L, active1, 0x40L);
case 112:
return jjMoveStringLiteralDfa2_0(active0, 0x100000L, active1, 0L);
case 113:
return jjMoveStringLiteralDfa2_0(active0, 0x40000000000000L, active1, 0L);
case 114:
if ((active1 & 0x10L) != 0L)
return jjStartNfaWithStates_0(1, 68, 1);
return jjMoveStringLiteralDfa2_0(active0, 0x200000400000000L, active1, 0x80L);
case 116:
return jjMoveStringLiteralDfa2_0(active0, 0x40000000000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa2_0(active0, 0x804228000000L, active1, 0L);
case 120:
return jjMoveStringLiteralDfa2_0(active0, 0x840800000L, active1, 0L);
case 121:
return jjMoveStringLiteralDfa2_0(active0, 0x2000000L, active1, 0L);
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, 0x40000L, active1, 0L);
case 98:
return jjMoveStringLiteralDfa3_0(active0, 0x200000000L, active1, 0L);
case 99:
return jjMoveStringLiteralDfa3_0(active0, 0x10000004208000L, active1, 0L);
case 100:
if ((active0 & 0x80000000L) != 0L)
return jjStartNfaWithStates_0(2, 31, 1);
else if ((active1 & 0x20L) != 0L)
return jjStartNfaWithStates_0(2, 69, 1);
return jjMoveStringLiteralDfa3_0(active0, 0x1000080000L, active1, 0L);
case 101:
return jjMoveStringLiteralDfa3_0(active0, 0xa00000000100000L, active1, 0x4L);
case 103:
return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0L);
case 105:
return jjMoveStringLiteralDfa3_0(active0, 0x20000000000000L, active1, 0x2L);
case 108:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x100L);
case 110:
return jjMoveStringLiteralDfa3_0(active0, 0x102212021020000L, active1, 0L);
case 111:
return jjMoveStringLiteralDfa3_0(active0, 0x8000020400400000L, active1, 0L);
case 112:
return jjMoveStringLiteralDfa3_0(active0, 0x408012802000L, active1, 0L);
case 114:
if ((active0 & 0x1000000000000L) != 0L)
return jjStartNfaWithStates_0(2, 48, 1);
else if ((active0 & 0x4000000000000000L) != 0L)
return jjStartNfaWithStates_0(2, 62, 1);
return jjMoveStringLiteralDfa3_0(active0, 0x140008010000L, active1, 0L);
case 115:
return jjMoveStringLiteralDfa3_0(active0, 0x3000080000000000L, active1, 0x8L);
case 116:
if ((active1 & 0x40L) != 0L)
return jjStartNfaWithStates_0(2, 70, 1);
return jjMoveStringLiteralDfa3_0(active0, 0x400804840004000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa3_0(active0, 0x40000100000000L, active1, 0x80L);
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 97:
return jjMoveStringLiteralDfa4_0(active0, 0x240100000828000L, active1, 0L);
case 99:
return jjMoveStringLiteralDfa4_0(active0, 0x80020400000L, active1, 0L);
case 101:
if ((active0 & 0x2000000L) != 0L)
return jjStartNfaWithStates_0(3, 25, 1);
else if ((active0 & 0x8000000L) != 0L)
return jjStartNfaWithStates_0(3, 27, 1);
else if ((active0 & 0x2000000000000000L) != 0L)
{
jjmatchedKind = 61;
jjmatchedPos = 3;
}
else if ((active1 & 0x80L) != 0L)
return jjStartNfaWithStates_0(3, 71, 1);
return jjMoveStringLiteralDfa4_0(active0, 0x1000047840080000L, active1, 0x8L);
case 104:
if ((active0 & 0x10000000000000L) != 0L)
return jjStartNfaWithStates_0(3, 52, 1);
return jjMoveStringLiteralDfa4_0(active0, 0x4000L, active1, 0L);
case 107:
return jjMoveStringLiteralDfa4_0(active0, 0x4000000L, active1, 0L);
case 108:
return jjMoveStringLiteralDfa4_0(active0, 0x8200000000L, active1, 0x2L);
case 109:
return jjMoveStringLiteralDfa4_0(active0, 0x100000000L, active1, 0L);
case 110:
if ((active0 & 0x800000000000000L) != 0L)
return jjStartNfaWithStates_0(3, 59, 1);
else if ((active1 & 0x4L) != 0L)
return jjStartNfaWithStates_0(3, 66, 1);
return jjMoveStringLiteralDfa4_0(active0, 0x2000001000000L, active1, 0L);
case 111:
return jjMoveStringLiteralDfa4_0(active0, 0x180000000202000L, active1, 0L);
case 112:
if ((active0 & 0x8000000000000000L) != 0L)
return jjStartNfaWithStates_0(3, 63, 1);
return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0L);
case 114:
return jjMoveStringLiteralDfa4_0(active0, 0x100000L, active1, 0L);
case 115:
return jjMoveStringLiteralDfa4_0(active0, 0x210000040000L, active1, 0x100L);
case 116:
return jjMoveStringLiteralDfa4_0(active0, 0x20000400010000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa4_0(active0, 0x400400010000000L, active1, 0L);
case 119:
if ((active0 & 0x20000000000L) != 0L)
return jjStartNfaWithStates_0(3, 41, 1);
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, 0x48004100000L, active1, 0L);
case 99:
return jjMoveStringLiteralDfa5_0(active0, 0x1000000000L, active1, 0L);
case 101:
if ((active1 & 0x2L) != 0L)
return jjStartNfaWithStates_0(4, 65, 1);
else if ((active1 & 0x100L) != 0L)
return jjStartNfaWithStates_0(4, 72, 1);
return jjMoveStringLiteralDfa5_0(active0, 0x2000501000000L, active1, 0L);
case 105:
return jjMoveStringLiteralDfa5_0(active0, 0x1020000200014000L, active1, 0L);
case 107:
if ((active0 & 0x400000L) != 0L)
return jjStartNfaWithStates_0(4, 22, 1);
else if ((active0 & 0x200000000000000L) != 0L)
return jjStartNfaWithStates_0(4, 57, 1);
break;
case 108:
if ((active0 & 0x20000L) != 0L)
return jjStartNfaWithStates_0(4, 17, 1);
else if ((active0 & 0x80000L) != 0L)
return jjStartNfaWithStates_0(4, 19, 1);
break;
case 109:
return jjMoveStringLiteralDfa5_0(active0, 0x100000000000L, active1, 0L);
case 110:
return jjMoveStringLiteralDfa5_0(active0, 0x40800000L, active1, 0L);
case 112:
return jjMoveStringLiteralDfa5_0(active0, 0x8000L, active1, 0L);
case 114:
if ((active0 & 0x2000000000L) != 0L)
return jjStartNfaWithStates_0(4, 37, 1);
else if ((active0 & 0x4000000000L) != 0L)
return jjStartNfaWithStates_0(4, 38, 1);
return jjMoveStringLiteralDfa5_0(active0, 0x480080810202000L, active1, 0L);
case 115:
if ((active0 & 0x40000L) != 0L)
return jjStartNfaWithStates_0(4, 18, 1);
break;
case 116:
if ((active0 & 0x400000000000L) != 0L)
return jjStartNfaWithStates_0(4, 46, 1);
return jjMoveStringLiteralDfa5_0(active0, 0x140210020000000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa5_0(active0, 0x800000000000L, active1, 0L);
case 119:
return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x8L);
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 97:
return jjMoveStringLiteralDfa6_0(active0, 0x120200000010000L, active1, 0L);
case 99:
if ((active0 & 0x200000000L) != 0L)
return jjStartNfaWithStates_0(5, 33, 1);
return jjMoveStringLiteralDfa6_0(active0, 0x2008401000000L, active1, 0L);
case 100:
if ((active0 & 0x200000L) != 0L)
return jjStartNfaWithStates_0(5, 21, 1);
return jjMoveStringLiteralDfa6_0(active0, 0x40800000L, active1, 0L);
case 101:
if ((active0 & 0x10000000L) != 0L)
return jjStartNfaWithStates_0(5, 28, 1);
return jjMoveStringLiteralDfa6_0(active0, 0x180000000000L, active1, 0L);
case 102:
if ((active0 & 0x1000000000000000L) != 0L)
return jjStartNfaWithStates_0(5, 60, 1);
break;
case 103:
return jjMoveStringLiteralDfa6_0(active0, 0x4000000L, active1, 0L);
case 104:
return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x8L);
case 105:
return jjMoveStringLiteralDfa6_0(active0, 0xc0000020000000L, active1, 0L);
case 108:
return jjMoveStringLiteralDfa6_0(active0, 0x1000000000L, active1, 0L);
case 109:
if ((active0 & 0x40000000000L) != 0L)
return jjStartNfaWithStates_0(5, 42, 1);
break;
case 110:
if ((active0 & 0x4000L) != 0L)
return jjStartNfaWithStates_0(5, 14, 1);
else if ((active0 & 0x400000000000000L) != 0L)
return jjStartNfaWithStates_0(5, 58, 1);
return jjMoveStringLiteralDfa6_0(active0, 0x800000000L, active1, 0L);
case 114:
return jjMoveStringLiteralDfa6_0(active0, 0x10100000000L, active1, 0L);
case 115:
return jjMoveStringLiteralDfa6_0(active0, 0x8000L, active1, 0L);
case 116:
if ((active0 & 0x2000L) != 0L)
return jjStartNfaWithStates_0(5, 13, 1);
else if ((active0 & 0x800000000000L) != 0L)
return jjStartNfaWithStates_0(5, 47, 1);
return jjMoveStringLiteralDfa6_0(active0, 0x100000L, active1, 0L);
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 97:
return jjMoveStringLiteralDfa7_0(active0, 0x11900800000L, active1, 0L);
case 101:
if ((active0 & 0x4000000L) != 0L)
return jjStartNfaWithStates_0(6, 26, 1);
return jjMoveStringLiteralDfa7_0(active0, 0x8000000000L, active1, 0x8L);
case 108:
if ((active0 & 0x10000L) != 0L)
return jjStartNfaWithStates_0(6, 16, 1);
else if ((active0 & 0x20000000000000L) != 0L)
return jjStartNfaWithStates_0(6, 53, 1);
break;
case 110:
return jjMoveStringLiteralDfa7_0(active0, 0x200000000000L, active1, 0L);
case 111:
return jjMoveStringLiteralDfa7_0(active0, 0x40000020100000L, active1, 0L);
case 115:
if ((active0 & 0x40000000L) != 0L)
return jjStartNfaWithStates_0(6, 30, 1);
break;
case 116:
if ((active0 & 0x2000000000000L) != 0L)
{
jjmatchedKind = 49;
jjmatchedPos = 6;
}
return jjMoveStringLiteralDfa7_0(active0, 0x180180401000000L, active1, 0L);
case 117:
return jjMoveStringLiteralDfa7_0(active0, 0x8000L, active1, 0L);
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 97:
return jjMoveStringLiteralDfa8_0(active0, 0x8000000000L, active1, 0L);
case 98:
return jjMoveStringLiteralDfa8_0(active0, 0x800000L, active1, 0L);
case 101:
if ((active0 & 0x80000000000L) != 0L)
return jjStartNfaWithStates_0(7, 43, 1);
return jjMoveStringLiteralDfa8_0(active0, 0x100400000000L, active1, 0L);
case 104:
return jjMoveStringLiteralDfa8_0(active0, 0x80000000000000L, active1, 0L);
case 105:
return jjMoveStringLiteralDfa8_0(active0, 0x100010000000000L, active1, 0L);
case 108:
if ((active0 & 0x800000000L) != 0L)
return jjStartNfaWithStates_0(7, 35, 1);
return jjMoveStringLiteralDfa8_0(active0, 0x8000L, active1, 0L);
case 110:
if ((active0 & 0x20000000L) != 0L)
return jjStartNfaWithStates_0(7, 29, 1);
else if ((active0 & 0x40000000000000L) != 0L)
return jjStartNfaWithStates_0(7, 54, 1);
else if ((active1 & 0x8L) != 0L)
return jjStartNfaWithStates_0(7, 67, 1);
break;
case 111:
return jjMoveStringLiteralDfa8_0(active0, 0x1000000L, active1, 0L);
case 114:
if ((active0 & 0x100000L) != 0L)
return jjStartNfaWithStates_0(7, 20, 1);
return jjMoveStringLiteralDfa8_0(active0, 0x1000000000L, active1, 0L);
case 116:
if ((active0 & 0x200000000000L) != 0L)
return jjStartNfaWithStates_0(7, 45, 1);
return jjMoveStringLiteralDfa8_0(active0, 0x100000000L, 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, 0L);
return 8;
}
switch(curChar)
{
case 97:
return jjMoveStringLiteralDfa9_0(active0, 0x8000L);
case 98:
return jjMoveStringLiteralDfa9_0(active0, 0x8000000000L);
case 100:
if ((active0 & 0x400000000L) != 0L)
return jjStartNfaWithStates_0(8, 34, 1);
break;
case 101:
if ((active0 & 0x1000000000L) != 0L)
return jjStartNfaWithStates_0(8, 36, 1);
break;
case 105:
return jjMoveStringLiteralDfa9_0(active0, 0x100000000L);
case 108:
return jjMoveStringLiteralDfa9_0(active0, 0x800000L);
case 109:
if ((active0 & 0x80000000000000L) != 0L)
return jjStartNfaWithStates_0(8, 55, 1);
break;
case 110:
return jjMoveStringLiteralDfa9_0(active0, 0x10000000000L);
case 111:
return jjMoveStringLiteralDfa9_0(active0, 0x100000000000000L);
case 114:
if ((active0 & 0x1000000L) != 0L)
return jjStartNfaWithStates_0(8, 24, 1);
else if ((active0 & 0x100000000000L) != 0L)
return jjStartNfaWithStates_0(8, 44, 1);
break;
default :
break;
}
return jjStartNfa_0(7, active0, 0L);
}
private int jjMoveStringLiteralDfa9_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(7, old0, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(8, active0, 0L);
return 9;
}
switch(curChar)
{
case 101:
if ((active0 & 0x800000L) != 0L)
return jjStartNfaWithStates_0(9, 23, 1);
return jjMoveStringLiteralDfa10_0(active0, 0x10000000000L);
case 108:
return jjMoveStringLiteralDfa10_0(active0, 0x8000000000L);
case 110:
if ((active0 & 0x100000000000000L) != 0L)
return jjStartNfaWithStates_0(9, 56, 1);
break;
case 111:
return jjMoveStringLiteralDfa10_0(active0, 0x100000000L);
case 116:
return jjMoveStringLiteralDfa10_0(active0, 0x8000L);
default :
break;
}
return jjStartNfa_0(8, active0, 0L);
}
private int jjMoveStringLiteralDfa10_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(8, old0, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(9, active0, 0L);
return 10;
}
switch(curChar)
{
case 100:
return jjMoveStringLiteralDfa11_0(active0, 0x10000000000L);
case 101:
if ((active0 & 0x8000000000L) != 0L)
return jjStartNfaWithStates_0(10, 39, 1);
return jjMoveStringLiteralDfa11_0(active0, 0x8000L);
case 110:
if ((active0 & 0x100000000L) != 0L)
return jjStartNfaWithStates_0(10, 32, 1);
break;
default :
break;
}
return jjStartNfa_0(9, active0, 0L);
}
private int jjMoveStringLiteralDfa11_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(9, old0, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(10, active0, 0L);
return 11;
}
switch(curChar)
{
case 98:
return jjMoveStringLiteralDfa12_0(active0, 0x10000000000L);
case 100:
if ((active0 & 0x8000L) != 0L)
return jjStartNfaWithStates_0(11, 15, 1);
break;
default :
break;
}
return jjStartNfa_0(10, active0, 0L);
}
private int jjMoveStringLiteralDfa12_0(long old0, long active0)
{
if (((active0 &= old0)) == 0L)
return jjStartNfa_0(10, old0, 0L);
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
jjStopStringLiteralDfa_0(11, active0, 0L);
return 12;
}
switch(curChar)
{
case 121:
if ((active0 & 0x10000000000L) != 0L)
return jjStartNfaWithStates_0(12, 40, 1);
break;
default :
break;
}
return jjStartNfa_0(11, 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 = {
0x2000000L, 0x0L, 0x0L, 0x0L
};
static final long[] jjbitVec1 = {
0xfffffffffffffffeL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL
};
static final long[] jjbitVec3 = {
0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL
};
private int jjMoveNfa_0(int startState, int curPos)
{
int startsAt = 0;
jjnewStateCnt = 22;
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 ((0x3ff000000000000L & l) != 0L)
{
if (kind > 98)
kind = 98;
jjCheckNAddStates(0, 2);
}
else if ((0x100002600L & l) != 0L)
{
if (kind > 99)
kind = 99;
jjCheckNAdd(18);
}
else if (curChar == 47)
jjstateSet[jjnewStateCnt++] = 19;
else if (curChar == 34)
jjCheckNAddStates(3, 5);
else if (curChar == 39)
jjCheckNAddTwoStates(3, 5);
break;
case 1:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 89)
kind = 89;
jjstateSet[jjnewStateCnt++] = 1;
break;
case 2:
if (curChar == 39)
jjCheckNAddTwoStates(3, 5);
break;
case 4:
if ((0x8000008400000000L & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 5:
if ((0xffffff7a00000000L & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 6:
if (curChar == 39 && kind > 89)
kind = 89;
break;
case 7:
if (curChar == 34)
jjCheckNAddStates(3, 5);
break;
case 8:
if ((0xfffffffbffffffffL & l) != 0L)
jjCheckNAddStates(3, 5);
break;
case 10:
if ((0x8000008400000000L & l) != 0L)
jjCheckNAddStates(3, 5);
break;
case 11:
if (curChar == 34 && kind > 93)
kind = 93;
break;
case 12:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 98)
kind = 98;
jjCheckNAddStates(0, 2);
break;
case 13:
if (curChar != 46)
break;
if (kind > 98)
kind = 98;
jjCheckNAddTwoStates(14, 15);
break;
case 14:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 98)
kind = 98;
jjCheckNAddTwoStates(14, 15);
break;
case 16:
if ((0x280000000000L & l) != 0L)
jjCheckNAdd(17);
break;
case 17:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 98)
kind = 98;
jjCheckNAdd(17);
break;
case 18:
if ((0x100002600L & l) == 0L)
break;
if (kind > 99)
kind = 99;
jjCheckNAdd(18);
break;
case 19:
if (curChar != 47)
break;
if (kind > 100)
kind = 100;
jjCheckNAdd(20);
break;
case 20:
if ((0xffffffffffffdbffL & l) == 0L)
break;
if (kind > 100)
kind = 100;
jjCheckNAdd(20);
break;
case 21:
if (curChar == 47)
jjstateSet[jjnewStateCnt++] = 19;
break;
default : break;
}
} while(i != startsAt);
}
else if (curChar < 128)
{
long l = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 0:
case 1:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 89)
kind = 89;
jjCheckNAdd(1);
break;
case 3:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 4;
break;
case 4:
if ((0x54404610000000L & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 5:
if ((0x7ffffffeefffffffL & l) != 0L)
jjCheckNAddStates(6, 8);
break;
case 8:
if ((0xffffffffefffffffL & l) != 0L)
jjCheckNAddStates(3, 5);
break;
case 9:
if (curChar == 92)
jjstateSet[jjnewStateCnt++] = 10;
break;
case 10:
if ((0x54404610000000L & l) != 0L)
jjCheckNAddStates(3, 5);
break;
case 15:
if ((0x2000000020L & l) != 0L)
jjAddStates(9, 10);
break;
case 20:
if (kind > 100)
kind = 100;
jjstateSet[jjnewStateCnt++] = 20;
break;
default : break;
}
} while(i != startsAt);
}
else
{
int hiByte = (int)(curChar >> 8);
int i1 = hiByte >> 6;
long l1 = 1L << (hiByte & 077);
int i2 = (curChar & 0xff) >> 6;
long l2 = 1L << (curChar & 077);
do
{
switch(jjstateSet[--i])
{
case 4:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjAddStates(6, 8);
break;
case 8:
if (jjCanMove_1(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(3, 5);
break;
case 10:
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
jjCheckNAddStates(3, 5);
break;
case 20:
if (!jjCanMove_1(hiByte, i1, i2, l1, l2))
break;
if (kind > 100)
kind = 100;
jjstateSet[jjnewStateCnt++] = 20;
break;
default : break;
}
} while(i != startsAt);
}
if (kind != 0x7fffffff)
{
jjmatchedKind = kind;
jjmatchedPos = curPos;
kind = 0x7fffffff;
}
++curPos;
if ((i = jjnewStateCnt) == (startsAt = 22 - (jjnewStateCnt = startsAt)))
return curPos;
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) { return curPos; }
}
}
private int jjMoveStringLiteralDfa0_1()
{
switch(curChar)
{
case 42:
return jjMoveStringLiteralDfa1_1(0x4000000000L);
default :
return 1;
}
}
private int jjMoveStringLiteralDfa1_1(long active1)
{
try { curChar = input_stream.readChar(); }
catch(java.io.IOException e) {
return 1;
}
switch(curChar)
{
case 47:
if ((active1 & 0x4000000000L) != 0L)
return jjStopAtPos(1, 102);
break;
default :
return 2;
}
return 2;
}
private int jjMoveStringLiteralDfa0_2()
{
return 1;
}
static final int[] jjnextStates = {
12, 13, 15, 8, 9, 11, 3, 5, 6, 16, 17,
};
private static final boolean jjCanMove_0(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 32:
return ((jjbitVec0[i2] & l2) != 0L);
default :
return false;
}
}
private static final boolean jjCanMove_1(int hiByte, int i1, int i2, long l1, long l2)
{
switch(hiByte)
{
case 0:
return ((jjbitVec3[i2] & l2) != 0L);
default :
if ((jjbitVec1[i1] & l1) != 0L)
return true;
return false;
}
}
/** net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken literal values. */
public static final String[] jjstrLiteralImages = {
"", "\ufeff", "\50", "\51", "\173", "\175", "\133", "\135", "\73", "\75",
"\54", "\56", "\72", "\151\155\160\157\162\164", "\167\151\164\150\151\156",
"\145\156\143\141\160\163\165\154\141\164\145\144", "\160\141\162\164\151\141\154", "\146\151\156\141\154",
"\143\154\141\163\163", "\155\157\144\145\154", "\157\160\145\162\141\164\157\162",
"\162\145\143\157\162\144", "\142\154\157\143\153", "\145\170\160\141\156\144\141\142\154\145",
"\143\157\156\156\145\143\164\157\162", "\164\171\160\145", "\160\141\143\153\141\147\145", "\160\165\162\145",
"\151\155\160\165\162\145", "\146\165\156\143\164\151\157\156", "\145\170\164\145\156\144\163",
"\145\156\144", "\145\156\165\155\145\162\141\164\151\157\156", "\160\165\142\154\151\143",
"\160\162\157\164\145\143\164\145\144", "\145\170\164\145\162\156\141\154", "\162\145\144\145\143\154\141\162\145",
"\151\156\156\145\162", "\157\165\164\145\162", "\162\145\160\154\141\143\145\141\142\154\145",
"\143\157\156\163\164\162\141\151\156\145\144\142\171", "\146\154\157\167", "\163\164\162\145\141\155",
"\144\151\163\143\162\145\164\145", "\160\141\162\141\155\145\164\145\162", "\143\157\156\163\164\141\156\164",
"\151\156\160\165\164", "\157\165\164\160\165\164", "\144\145\162", "\143\157\156\156\145\143\164",
"\151\146", "\72\75", "\145\141\143\150", "\151\156\151\164\151\141\154",
"\145\161\165\141\164\151\157\156", "\141\154\147\157\162\151\164\150\155",
"\141\156\156\157\164\141\164\151\157\156", "\142\162\145\141\153", "\162\145\164\165\162\156", "\164\150\145\156",
"\145\154\163\145\151\146", "\145\154\163\145", "\146\157\162", "\154\157\157\160", "\151\156",
"\167\150\151\154\145", "\167\150\145\156", "\145\154\163\145\167\150\145\156", "\157\162",
"\141\156\144", "\156\157\164", "\164\162\165\145", "\146\141\154\163\145", "\74", "\74\75",
"\76", "\76\75", "\75\75", "\74\76", "\53", "\55", "\52", "\57", "\136", "\56\53",
"\56\55", "\56\52", "\56\57", "\56\136", null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, };
/** Lexer state names. */
public static final String[] lexStateNames = {
"DEFAULT",
"IN_MULTI_LINE_COMMENT",
"IN_PREPROCESSOR_OUTPUT_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,
-1, 1, 0, -1,
};
static final long[] jjtoToken = {
0xffffffffffffffffL, 0x423ffffffL,
};
static final long[] jjtoSkip = {
0x0L, 0x5800000000L,
};
static final long[] jjtoSpecial = {
0x0L, 0x4000000000L,
};
static final long[] jjtoMore = {
0x0L, 0xa000000000L,
};
protected net.sourceforge.pmd.lang.ast.impl.javacc.CharStream input_stream;
private final int[] jjrounds = new int[22];
private final int[] jjstateSet = new int[44];
private final StringBuilder jjimage = new StringBuilder();
private StringBuilder image = jjimage;
private int jjimageLen;
private int lengthOfMatch;
protected char curChar;
/** Constructor. */
public ModelicaParserImplTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream stream){
input_stream = stream;
}
/** Constructor. */
public ModelicaParserImplTokenManager(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream stream, int lexState){
this(stream);
SwitchTo(lexState);
}
/** Reinitialise parser. */
public void ReInit(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream stream)
{
jjmatchedPos = jjnewStateCnt = 0;
curLexState = defaultLexState;
input_stream = stream;
ReInitRounds();
}
private void ReInitRounds()
{
int i;
jjround = 0x80000001;
for (i = 22; i-- > 0;)
jjrounds[i] = 0x80000000;
}
/** Reinitialise parser. */
public void ReInit(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream stream, int lexState)
{
ReInit(stream);
SwitchTo(lexState);
}
/** Switch to specified lex state. */
public void SwitchTo(int lexState)
{
if (lexState >= 3 || lexState < 0)
throw new IllegalArgumentException("Invalid lexical state " + lexState);
else
curLexState = lexState;
}
protected net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken jjFillToken() {return input_stream.getTokenDocument().createToken(jjmatchedKind, input_stream, jjstrLiteralImages[jjmatchedKind]);}int curLexState = 0;
int defaultLexState = 0;
int jjnewStateCnt;
int jjround;
int jjmatchedPos;
int jjmatchedKind;
/** Get the next net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken. */
public net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken getNextToken()
{
net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken specialToken = null;
net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken matchedToken;
int curPos = 0;
EOFLoop :
for (;;)
{
try
{
curChar = input_stream.markTokenStart();
}
catch(java.io.IOException e)
{
jjmatchedKind = 0;
matchedToken = jjFillToken();
matchedToken.specialToken = specialToken;
return matchedToken;
}
image = jjimage;
image.setLength(0);
jjimageLen = 0;
for (;;)
{
switch(curLexState)
{
case 0:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
break;
case 1:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_1();
if (jjmatchedPos == 0 && jjmatchedKind > 103)
{
jjmatchedKind = 103;
}
break;
case 2:
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_2();
if (jjmatchedPos == 0 && jjmatchedKind > 103)
{
jjmatchedKind = 103;
}
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 ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
{
matchedToken = jjFillToken();
if (specialToken == null)
specialToken = matchedToken;
else
{
matchedToken.specialToken = specialToken;
specialToken = (specialToken.next = matchedToken);
}
matchedToken = SkipLexicalActions(matchedToken);
}
else
SkipLexicalActions(null);
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
continue EOFLoop;
}
jjimageLen += jjmatchedPos + 1;
if (jjnewLexState[jjmatchedKind] != -1)
curLexState = jjnewLexState[jjmatchedKind];
curPos = 0;
jjmatchedKind = 0x7fffffff;
try {
curChar = input_stream.readChar();
continue;
}
catch (java.io.IOException e1) { }
}
int error_line = input_stream.getEndLine();
int error_column = (input_stream.getEndColumn() - 1);
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.getTokenImage();
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.getTokenImage();
}
throw net.sourceforge.pmd.lang.ast.InternalApiBridge.newLexException(EOFSeen, lexStateNames[curLexState], error_line, error_column, error_after, curChar);
}
}
}
net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken SkipLexicalActions(net.sourceforge.pmd.lang.ast.impl.javacc.JavaccToken matchedToken) {
switch(jjmatchedKind)
{
default :
break;
}
return matchedToken; }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);
}
}