blob: 123e6339ee112af95885456556fef5d120331647 [file] [log] [blame]
/**
*
* Copyright (c) 2007 OptXware Research and Development LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Daniel Varro - Initial API and implementation
*
* This file was generated automatically based upon the VTCL LPG Lexer
* VTCLKWLexer.g (and btVTCLParserTemplateD.g)
*/
package org.eclipse.viatra2.lpgparser;
public class VTCLKWLexerprs implements lpg.lpgjavaruntime.ParseTable, VTCLKWLexersym {
public interface IsKeyword {
public final static byte isKeyword[] = {0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0
};
};
public final static byte isKeyword[] = IsKeyword.isKeyword;
public final boolean isKeyword(int index) { return isKeyword[index] != 0; }
public interface BaseCheck {
public final static byte baseCheck[] = {0,
9,6,7,7,2,3,4,5,11,9,
6,10,6,12,13,6,5,3,11,4,
3,5,4,4,6,5,7,3,5,4,
7,5,5,3,9,8,6,3,2,5,
6,6,4,2,7,2,3,4,4,7,
3,14,12,19,19,4,6,4,4,6,
8,7,5,15,14,10,5,4,5,10,
11,11,12,5,4,3,3,6,6,12,
11,7,8,9,9,8,14
};
};
public final static byte baseCheck[] = BaseCheck.baseCheck;
public final int baseCheck(int index) { return baseCheck[index]; }
public final static byte rhs[] = baseCheck;
public final int rhs(int index) { return rhs[index]; };
public interface BaseAction {
public final static char baseAction[] = {
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,90,
42,45,158,54,75,84,124,117,93,134,
23,162,58,27,96,64,30,99,105,74,
126,91,161,156,163,172,174,168,67,176,
178,166,181,120,182,183,185,186,187,190,
191,193,26,197,130,198,199,201,149,132,
133,203,206,107,211,207,115,216,219,221,
217,140,18,222,223,142,225,66,227,137,
229,231,230,235,233,241,238,246,249,242,
252,254,255,256,261,257,263,265,266,267,
268,269,278,281,272,280,284,286,288,289,
291,14,293,299,292,297,302,306,44,307,
294,308,311,314,315,316,318,322,321,324,
331,329,323,325,335,337,339,340,341,346,
347,351,353,354,355,356,357,358,362,360,
364,369,366,371,373,379,380,372,383,388,
382,392,390,394,396,397,399,400,395,402,
407,403,409,411,415,416,419,417,421,423,
425,430,428,435,436,437,444,442,429,447,
448,449,451,452,457,453,459,461,465,467,
469,471,472,473,476,479,481,477,485,486,
490,492,483,493,488,497,500,501,503,504,
506,505,510,514,515,518,520,523,524,525,
530,529,534,536,538,537,542,543,539,545,
550,551,552,555,556,557,558,559,569,564,
571,575,567,576,578,580,581,582,587,584,
589,590,592,594,598,601,602,605,606,610,
613,618,620,622,616,624,625,608,628,626,
632,630,639,634,637,641,642,650,645,654,
643,648,652,146,656,658,657,659,662,668,
671,669,673,674,675,678,679,686,687,690,
688,692,694,695,696,698,699,705,701,710,
708,712,151,714,716,718,721,722,723,724,
727,729,733,730,732,735,740,742,743,747,
748,753,754,744,759,761,764,757,765,769,
767,771,773,776,774,777,780,784,788,791,
793,795,797,798,785,800,801,808,799,811,
802,816,817,809,819,813,824,825,826,828,
830,831,832,834,838,836,842,840,844,845,
846,852,859,848,850,477,477
};
};
public final static char baseAction[] = BaseAction.baseAction;
public final int baseAction(int index) { return baseAction[index]; }
public final static char lhs[] = baseAction;
public final int lhs(int index) { return lhs[index]; };
public interface TermCheck {
public final static byte termCheck[] = {0,
0,1,2,3,4,5,6,7,8,9,
10,11,12,0,14,15,16,0,18,19,
3,21,0,23,7,0,0,1,28,0,
4,2,10,11,12,9,7,15,9,26,
27,0,29,0,0,32,20,34,35,5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0,0,3,
7,0,0,2,0,3,2,12,11,0,
0,0,3,15,0,0,0,0,0,0,
5,10,12,0,6,8,0,11,0,1,
0,17,2,10,0,0,1,0,4,0,
0,0,3,0,7,19,0,1,0,0,
9,0,4,0,0,2,13,0,18,2,
0,0,1,14,0,0,2,0,17,0,
3,6,0,4,14,0,4,0,1,0,
1,0,1,0,0,0,11,0,5,0,
3,0,1,0,5,11,0,12,0,1,
0,0,0,10,0,9,6,0,7,0,
1,0,8,0,1,0,0,0,0,12,
9,0,6,2,22,8,8,0,0,14,
0,1,0,0,0,0,4,0,0,11,
2,8,8,6,17,0,0,0,2,0,
1,0,7,0,0,0,1,0,0,2,
0,10,15,5,0,12,2,0,8,0,
16,0,3,0,3,0,1,0,11,2,
0,0,0,0,4,4,0,1,0,0,
8,0,0,5,0,22,2,14,6,0,
1,0,0,0,3,14,0,0,1,0,
8,22,0,0,8,2,0,5,0,16,
0,3,2,0,0,2,0,11,0,5,
0,3,0,0,8,0,0,5,0,0,
4,8,3,0,0,2,16,0,13,2,
0,1,0,1,0,11,0,0,0,0,
0,0,8,7,4,8,7,0,0,2,
0,13,0,3,13,0,0,2,0,3,
8,13,4,0,0,0,2,0,3,0,
0,0,2,0,3,0,13,0,1,0,
13,0,1,0,0,0,17,0,13,0,
17,0,1,14,10,10,0,14,0,1,
0,0,15,0,15,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0
};
};
public final static byte termCheck[] = TermCheck.termCheck;
public final int termCheck(int index) { return termCheck[index]; }
public interface TermAction {
public final static char termAction[] = {0,
477,93,110,102,106,100,96,98,109,97,
101,104,107,477,95,103,105,477,108,92,
209,91,477,94,208,477,477,139,99,477,
136,148,127,130,129,140,482,128,149,246,
248,477,247,477,477,250,138,249,251,111,
137,183,180,477,257,182,181,477,184,113,
114,132,133,477,134,39,477,145,146,217,
135,147,168,477,477,157,156,476,477,117,
218,216,116,477,118,169,215,521,144,523,
477,158,477,123,115,477,161,124,477,141,
142,125,150,152,477,151,477,198,154,155,
197,196,477,153,477,143,477,201,121,477,
200,172,202,477,119,477,159,120,122,477,
160,477,477,477,191,554,477,126,186,477,
207,477,524,212,193,477,483,206,477,397,
477,192,213,190,422,477,511,477,112,528,
477,477,477,396,131,477,162,477,421,164,
163,477,165,477,167,477,166,477,515,170,
477,477,477,173,477,477,477,505,174,477,
477,495,477,178,171,175,477,477,477,179,
477,177,477,185,176,477,477,188,189,187,
477,195,553,199,194,477,477,203,477,204,
477,477,477,498,477,214,477,210,477,477,
477,205,477,222,477,525,223,477,219,221,
477,477,526,211,477,477,220,224,477,225,
226,477,227,477,477,477,477,520,228,229,
477,497,477,231,477,477,477,477,477,230,
233,477,237,234,240,235,236,477,232,477,
477,238,239,477,545,477,242,477,477,241,
477,477,477,477,243,252,477,245,477,253,
244,477,501,255,254,477,477,477,259,256,
477,258,260,477,477,477,500,477,262,263,
477,477,477,477,477,265,266,484,477,268,
477,261,264,267,477,269,477,272,477,477,
477,271,507,274,270,477,477,276,273,275,
477,551,477,477,477,477,477,477,278,477,
509,477,277,477,279,477,506,281,477,282,
477,477,477,544,283,517,284,280,477,477,
287,477,477,494,285,286,288,477,290,477,
289,477,291,477,477,56,477,295,477,477,
296,477,477,298,293,540,477,300,477,297,
477,292,294,299,58,477,477,302,477,477,
477,301,477,546,477,304,306,477,59,477,
510,303,307,305,477,477,477,309,308,310,
485,477,311,477,312,314,477,477,477,313,
477,477,477,317,499,316,477,318,75,320,
477,319,322,315,477,323,477,502,477,537,
477,477,477,321,325,477,477,493,477,490,
477,324,477,326,477,477,329,477,514,477,
328,477,477,555,556,327,477,330,488,477,
477,332,477,477,477,477,331,336,335,477,
334,337,339,477,477,341,338,477,518,477,
333,477,477,477,26,519,342,343,477,477,
344,345,340,477,346,477,477,477,477,350,
347,477,477,351,477,352,354,348,349,477,
477,477,479,353,57,477,477,477,477,477,
357,508,355,477,360,359,477,358,477,361,
477,356,363,362,477,477,366,477,364,477,
477,477,368,477,367,365,477,370,477,477,
369,477,372,477,477,374,371,477,539,504,
477,477,376,527,477,477,481,477,373,477,
383,377,477,378,375,477,379,477,480,477,
522,477,559,477,477,477,380,477,381,477,
384,477,563,477,386,382,477,385,477,387,
477,477,477,560,477,388,389,477,390,477,
391,477,392,477,538,477,477,477,477,394,
395,477,513,401,393,399,400,477,477,398,
477,403,477,477,477,477,405,477,477,404,
562,406,407,408,402,477,477,477,409,477,
512,477,561,477,477,477,413,477,477,414,
477,411,410,415,477,412,416,477,417,477,
487,477,418,477,420,477,478,477,419,424,
477,477,477,477,425,426,477,543,477,477,
427,477,477,429,477,423,433,428,430,477,
547,477,477,477,434,432,477,477,437,477,
435,431,477,477,436,439,477,438,477,489,
477,440,558,477,477,496,477,441,477,442,
477,443,477,477,444,477,477,445,477,477,
447,446,448,477,477,449,486,477,548,450,
477,549,477,451,477,455,477,477,477,477,
477,477,452,453,457,454,456,477,477,491,
477,557,477,530,550,477,477,458,477,459,
462,460,461,477,477,477,492,477,529,477,
477,477,542,477,465,477,463,477,467,477,
564,477,468,477,477,477,464,477,541,477,
466,477,473,469,471,472,477,470,477,474,
477,477,531,477,532
};
};
public final static char termAction[] = TermAction.termAction;
public final int termAction(int index) { return termAction[index]; }
public final int asb(int index) { return 0; }
public final int asr(int index) { return 0; }
public final int nasb(int index) { return 0; }
public final int nasr(int index) { return 0; }
public final int terminalIndex(int index) { return 0; }
public final int nonterminalIndex(int index) { return 0; }
public final int scopePrefix(int index) { return 0;}
public final int scopeSuffix(int index) { return 0;}
public final int scopeLhs(int index) { return 0;}
public final int scopeLa(int index) { return 0;}
public final int scopeStateSet(int index) { return 0;}
public final int scopeRhs(int index) { return 0;}
public final int scopeState(int index) { return 0;}
public final int inSymb(int index) { return 0;}
public final String name(int index) { return null; }
public final int getErrorSymbol() { return 0; }
public final int getScopeUbound() { return 0; }
public final int getScopeSize() { return 0; }
public final int getMaxNameLength() { return 0; }
public final static int
NUM_STATES = 386,
NT_OFFSET = 54,
LA_STATE_OFFSET = 564,
MAX_LA = 1,
NUM_RULES = 87,
NUM_NONTERMINALS = 2,
NUM_SYMBOLS = 56,
SEGMENT_SIZE = 8192,
START_STATE = 88,
IDENTIFIER_SYMBOL = 0,
EOFT_SYMBOL = 36,
EOLT_SYMBOL = 55,
ACCEPT_ACTION = 476,
ERROR_ACTION = 477;
public final static boolean BACKTRACK = false;
public final int getNumStates() { return NUM_STATES; }
public final int getNtOffset() { return NT_OFFSET; }
public final int getLaStateOffset() { return LA_STATE_OFFSET; }
public final int getMaxLa() { return MAX_LA; }
public final int getNumRules() { return NUM_RULES; }
public final int getNumNonterminals() { return NUM_NONTERMINALS; }
public final int getNumSymbols() { return NUM_SYMBOLS; }
public final int getSegmentSize() { return SEGMENT_SIZE; }
public final int getStartState() { return START_STATE; }
public final int getStartSymbol() { return lhs[0]; }
public final int getIdentifierSymbol() { return IDENTIFIER_SYMBOL; }
public final int getEoftSymbol() { return EOFT_SYMBOL; }
public final int getEoltSymbol() { return EOLT_SYMBOL; }
public final int getAcceptAction() { return ACCEPT_ACTION; }
public final int getErrorAction() { return ERROR_ACTION; }
public final boolean isValidForParser() { return isValidForParser; }
public final boolean getBacktrack() { return BACKTRACK; }
public final int originalState(int state) { return 0; }
public final int asi(int state) { return 0; }
public final int nasi(int state) { return 0; }
public final int inSymbol(int state) { return 0; }
public final int ntAction(int state, int sym) {
return baseAction[state + sym];
}
public final int tAction(int state, int sym) {
int i = baseAction[state],
k = i + sym;
return termAction[termCheck[k] == sym ? k : i];
}
public final int lookAhead(int la_state, int sym) {
int k = la_state + sym;
return termAction[termCheck[k] == sym ? k : la_state];
}
}