Browse Source

parser refresh

accumulation
Sascha Wunderlich 7 years ago
parent
commit
7cba802977
  1. 2699
      prism/src/parser/PrismParser.java
  2. 21
      prism/src/parser/PrismParserConstants.java
  3. 151
      prism/src/parser/PrismParserTokenManager.java

2699
prism/src/parser/PrismParser.java
File diff suppressed because it is too large
View File

21
prism/src/parser/PrismParserConstants.java

@ -181,23 +181,25 @@ public interface PrismParserConstants {
/** RegularExpression Id. */
int ACCBOXMINUS = 85;
/** RegularExpression Id. */
int REG_INT = 86;
int ACCUNTIL = 86;
/** RegularExpression Id. */
int REG_DOUBLE = 87;
int REG_INT = 87;
/** RegularExpression Id. */
int REG_IDENTPRIME = 88;
int REG_DOUBLE = 88;
/** RegularExpression Id. */
int REG_IDENT = 89;
int REG_IDENTPRIME = 89;
/** RegularExpression Id. */
int REG_QUOTED_IDENT = 90;
int REG_IDENT = 90;
/** RegularExpression Id. */
int REG_QUOTED_STRING = 91;
int REG_QUOTED_IDENT = 91;
/** RegularExpression Id. */
int PREPROC = 92;
int REG_QUOTED_STRING = 92;
/** RegularExpression Id. */
int LEXICAL_ERROR = 93;
int PREPROC = 93;
/** RegularExpression Id. */
int REGEXP_MARKER = 94;
int LEXICAL_ERROR = 94;
/** RegularExpression Id. */
int REGEXP_MARKER = 95;
/** Lexical state. */
int DEFAULT = 0;
@ -290,6 +292,7 @@ public interface PrismParserConstants {
"\"<->\"",
"\"[+]\"",
"\"[-]\"",
"\"U+\"",
"<REG_INT>",
"<REG_DOUBLE>",
"<REG_IDENTPRIME>",

151
prism/src/parser/PrismParserTokenManager.java

@ -25,24 +25,24 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
switch (pos)
{
case 0:
if ((active0 & 0xc783a04a00908L) != 0L || (active1 & 0x80400000L) != 0L)
return 31;
if ((active0 & 0x387c5fb5ff6f0L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
return 31;
}
if ((active0 & 0xc783a04a00908L) != 0L || (active1 & 0x40000000L) != 0L)
return 31;
if ((active1 & 0x2000L) != 0L)
return 1;
if ((active0 & 0x2000000000000000L) != 0L)
return 11;
return -1;
case 1:
if ((active0 & 0x39fddfb5ff6f0L) != 0L || (active1 & 0x40000000L) != 0L)
if ((active0 & 0x39fddfb5ff6f0L) != 0L || (active1 & 0x80000000L) != 0L)
{
if (jjmatchedPos != 1)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 1;
}
return 31;
@ -51,60 +51,60 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
case 2:
if ((active0 & 0x100e8000000L) != 0L)
return 31;
if ((active0 & 0x39edd135ff6f0L) != 0L || (active1 & 0x40000000L) != 0L)
if ((active0 & 0x39edd135ff6f0L) != 0L || (active1 & 0x80000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 2;
return 31;
}
return -1;
case 3:
if ((active0 & 0x21ad801100490L) != 0L)
return 31;
if ((active0 & 0x18405124ff260L) != 0L)
{
if (jjmatchedPos != 3)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 3;
}
return 31;
}
if ((active0 & 0x21ad801100490L) != 0L)
return 31;
return -1;
case 4:
if ((active0 & 0x10020060L) != 0L)
return 31;
if ((active0 & 0x18445024df200L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 4;
return 31;
}
if ((active0 & 0x10020060L) != 0L)
return 31;
return -1;
case 5:
if ((active0 & 0x1000100480200L) != 0L)
return 31;
if ((active0 & 0x84440205f000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 5;
return 31;
}
return -1;
case 6:
if ((active0 & 0x40000041000L) != 0L)
return 31;
if ((active0 & 0x80440201e000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 6;
return 31;
}
if ((active0 & 0x40000041000L) != 0L)
return 31;
return -1;
case 7:
if ((active0 & 0x80440201e000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 7;
return 31;
}
@ -114,7 +114,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
return 31;
if ((active0 & 0x80440000a000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 8;
return 31;
}
@ -124,7 +124,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
return 31;
if ((active0 & 0x4400002000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 9;
return 31;
}
@ -132,7 +132,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
case 10:
if ((active0 & 0x4400002000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 10;
return 31;
}
@ -142,7 +142,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
return 31;
if ((active0 & 0x4400000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 11;
return 31;
}
@ -152,7 +152,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
return 31;
if ((active0 & 0x400000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 12;
return 31;
}
@ -160,7 +160,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
case 13:
if ((active0 & 0x400000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 13;
return 31;
}
@ -168,7 +168,7 @@ private static final int jjStopStringLiteralDfa_0(int pos, long active0, long ac
case 14:
if ((active0 & 0x400000000L) != 0L)
{
jjmatchedKind = 89;
jjmatchedKind = 90;
jjmatchedPos = 14;
return 31;
}
@ -245,11 +245,12 @@ static private int jjMoveStringLiteralDfa0_0(){
return jjMoveStringLiteralDfa1_0(0x1800000000L, 0x0L);
case 82:
jjmatchedKind = 45;
return jjMoveStringLiteralDfa1_0(0x180000000000L, 0x40000000L);
return jjMoveStringLiteralDfa1_0(0x180000000000L, 0x80000000L);
case 83:
return jjStartNfaWithStates_0(0, 46, 31);
case 85:
return jjStartNfaWithStates_0(0, 50, 31);
jjmatchedKind = 50;
return jjMoveStringLiteralDfa1_0(0x0L, 0x400000L);
case 87:
return jjStartNfaWithStates_0(0, 51, 31);
case 88:
@ -308,6 +309,8 @@ static private int jjMoveStringLiteralDfa1_0(long active0, long active1){
switch(curChar)
{
case 43:
if ((active1 & 0x400000L) != 0L)
return jjStopAtPos(1, 86);
return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x140000L);
case 45:
if ((active1 & 0x8000L) != 0L)
@ -342,7 +345,7 @@ static private int jjMoveStringLiteralDfa1_0(long active0, long active1){
case 100:
return jjMoveStringLiteralDfa2_0(active0, 0x40000000L, active1, 0L);
case 101:
return jjMoveStringLiteralDfa2_0(active0, 0x40000000000L, active1, 0x40000000L);
return jjMoveStringLiteralDfa2_0(active0, 0x40000000000L, active1, 0x80000000L);
case 105:
return jjMoveStringLiteralDfa2_0(active0, 0x80080000L, active1, 0L);
case 108:
@ -399,7 +402,7 @@ static private int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1,
case 100:
return jjMoveStringLiteralDfa3_0(active0, 0x10001f000L, active1, 0L);
case 103:
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x40000000L);
return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80000000L);
case 105:
return jjMoveStringLiteralDfa3_0(active0, 0x101001000000L, active1, 0L);
case 108:
@ -450,8 +453,8 @@ static private int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1,
switch(curChar)
{
case 58:
if ((active1 & 0x40000000L) != 0L)
return jjStopAtPos(3, 94);
if ((active1 & 0x80000000L) != 0L)
return jjStopAtPos(3, 95);
break;
case 97:
return jjMoveStringLiteralDfa4_0(active0, 0x40002000000L, active1, 0L);
@ -872,14 +875,14 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 31:
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 89)
kind = 89;
if (kind > 90)
kind = 90;
{ jjCheckNAdd(22); }
}
else if (curChar == 39)
{
if (kind > 88)
kind = 88;
if (kind > 89)
kind = 89;
}
if ((0x3ff000000000000L & l) != 0L)
{ jjCheckNAddTwoStates(20, 21); }
@ -887,8 +890,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 0:
if ((0x3ff000000000000L & l) != 0L)
{
if (kind > 87)
kind = 87;
if (kind > 88)
kind = 88;
{ jjCheckNAddStates(0, 3); }
}
else if ((0x100002600L & l) != 0L)
@ -906,14 +909,14 @@ static private int jjMoveNfa_0(int startState, int curPos)
jjstateSet[jjnewStateCnt++] = 1;
if ((0x3fe000000000000L & l) != 0L)
{
if (kind > 86)
kind = 86;
if (kind > 87)
kind = 87;
{ jjCheckNAdd(8); }
}
else if (curChar == 48)
{
if (kind > 86)
kind = 86;
if (kind > 87)
kind = 87;
}
break;
case 1:
@ -949,20 +952,20 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 7:
if ((0x3fe000000000000L & l) == 0L)
break;
if (kind > 86)
kind = 86;
if (kind > 87)
kind = 87;
{ jjCheckNAdd(8); }
break;
case 8:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 86)
kind = 86;
if (kind > 87)
kind = 87;
{ jjCheckNAdd(8); }
break;
case 9:
if (curChar == 48 && kind > 86)
kind = 86;
if (curChar == 48 && kind > 87)
kind = 87;
break;
case 10:
if (curChar == 46)
@ -971,8 +974,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 11:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 87)
kind = 87;
if (kind > 88)
kind = 88;
{ jjCheckNAddTwoStates(11, 12); }
break;
case 13:
@ -982,8 +985,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 14:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 87)
kind = 87;
if (kind > 88)
kind = 88;
{ jjCheckNAdd(14); }
break;
case 15:
@ -995,14 +998,14 @@ static private int jjMoveNfa_0(int startState, int curPos)
{ jjCheckNAddTwoStates(16, 17); }
break;
case 17:
if (curChar == 35 && kind > 92)
kind = 92;
if (curChar == 35 && kind > 93)
kind = 93;
break;
case 18:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 87)
kind = 87;
if (kind > 88)
kind = 88;
{ jjCheckNAddStates(0, 3); }
break;
case 20:
@ -1010,14 +1013,14 @@ static private int jjMoveNfa_0(int startState, int curPos)
{ jjCheckNAddTwoStates(20, 21); }
break;
case 21:
if (curChar == 39 && kind > 88)
kind = 88;
if (curChar == 39 && kind > 89)
kind = 89;
break;
case 22:
if ((0x3ff000000000000L & l) == 0L)
break;
if (kind > 89)
kind = 89;
if (kind > 90)
kind = 90;
{ jjCheckNAdd(22); }
break;
case 23:
@ -1029,8 +1032,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
{ jjAddStates(11, 12); }
break;
case 26:
if (curChar == 34 && kind > 90)
kind = 90;
if (curChar == 34 && kind > 91)
kind = 91;
break;
case 28:
{ jjCheckNAddStates(13, 15); }
@ -1040,8 +1043,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
{ jjCheckNAddStates(13, 15); }
break;
case 30:
if (curChar == 34 && kind > 91)
kind = 91;
if (curChar == 34 && kind > 92)
kind = 92;
break;
default : break;
}
@ -1057,8 +1060,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 31:
if ((0x7fffffe87fffffeL & l) != 0L)
{
if (kind > 89)
kind = 89;
if (kind > 90)
kind = 90;
{ jjCheckNAdd(22); }
}
if ((0x7fffffe87fffffeL & l) != 0L)
@ -1067,8 +1070,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 0:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 89)
kind = 89;
if (kind > 90)
kind = 90;
{ jjCheckNAddStates(16, 18); }
break;
case 2:
@ -1090,8 +1093,8 @@ static private int jjMoveNfa_0(int startState, int curPos)
case 22:
if ((0x7fffffe87fffffeL & l) == 0L)
break;
if (kind > 89)
kind = 89;
if (kind > 90)
kind = 90;
{ jjCheckNAdd(22); }
break;
case 24:
@ -1177,7 +1180,7 @@ public static final String[] jjstrLiteralImages = {
"\174", "\75\76", "\74\75\76", "\55\76", "\72", "\73", "\54", "\56\56", "\50", "\51",
"\133", "\135", "\173", "\175", "\75", "\41\75", "\74", "\76", "\74\75", "\76\75",
"\53", "\55", "\52", "\57", "\47", "\74\55", "\77", "\136", "\74\53\76", "\74\55\76",
"\133\53\135", "\133\55\135", null, null, null, null, null, null, null, null,
"\133\53\135", "\133\55\135", "\125\53", null, null, null, null, null, null, null, null,
"\122\145\147\72", };
static protected Token jjFillToken()
{
@ -1252,9 +1255,9 @@ public static Token getNextToken()
jjmatchedKind = 0x7fffffff;
jjmatchedPos = 0;
curPos = jjMoveStringLiteralDfa0_0();
if (jjmatchedPos == 0 && jjmatchedKind > 93)
if (jjmatchedPos == 0 && jjmatchedKind > 94)
{
jjmatchedKind = 93;
jjmatchedKind = 94;
}
if (jjmatchedKind != 0x7fffffff)
{
@ -1422,10 +1425,10 @@ 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, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
};
static final long[] jjtoToken = {
0xfffffffffffffff9L, 0x7fffffffL,
0xfffffffffffffff9L, 0xffffffffL,
};
static final long[] jjtoSkip = {
0x6L, 0x0L,

Loading…
Cancel
Save