1 |
| |
2 |
| |
3 |
| package org.drools.semantics.java.parser; |
4 |
| |
5 |
| import java.io.InputStream; |
6 |
| import antlr.TokenStreamException; |
7 |
| import antlr.TokenStreamIOException; |
8 |
| import antlr.TokenStreamRecognitionException; |
9 |
| import antlr.CharStreamException; |
10 |
| import antlr.CharStreamIOException; |
11 |
| import antlr.ANTLRException; |
12 |
| import java.io.Reader; |
13 |
| import java.util.Hashtable; |
14 |
| import antlr.CharScanner; |
15 |
| import antlr.InputBuffer; |
16 |
| import antlr.ByteBuffer; |
17 |
| import antlr.CharBuffer; |
18 |
| import antlr.Token; |
19 |
| import antlr.CommonToken; |
20 |
| import antlr.RecognitionException; |
21 |
| import antlr.NoViableAltForCharException; |
22 |
| import antlr.MismatchedCharException; |
23 |
| import antlr.TokenStream; |
24 |
| import antlr.ANTLRHashString; |
25 |
| import antlr.LexerSharedInputState; |
26 |
| import antlr.collections.impl.BitSet; |
27 |
| import antlr.SemanticException; |
28 |
| |
29 |
| |
30 |
| |
31 |
| |
32 |
| |
33 |
| |
34 |
| |
35 |
| |
36 |
| |
37 |
| |
38 |
| |
39 |
| |
40 |
| |
41 |
| |
42 |
| |
43 |
| public class JavaLexer extends antlr.CharScanner implements JavaTokenTypes, TokenStream |
44 |
| { |
45 |
0
| public JavaLexer(InputStream in) {
|
46 |
0
| this(new ByteBuffer(in));
|
47 |
| } |
48 |
126
| public JavaLexer(Reader in) {
|
49 |
126
| this(new CharBuffer(in));
|
50 |
| } |
51 |
126
| public JavaLexer(InputBuffer ib) {
|
52 |
126
| this(new LexerSharedInputState(ib));
|
53 |
| } |
54 |
126
| public JavaLexer(LexerSharedInputState state) {
|
55 |
126
| super(state);
|
56 |
126
| caseSensitiveLiterals = true;
|
57 |
126
| setCaseSensitive(true);
|
58 |
126
| literals = new Hashtable();
|
59 |
126
| literals.put(new ANTLRHashString("byte", this), new Integer(61));
|
60 |
126
| literals.put(new ANTLRHashString("public", this), new Integer(71));
|
61 |
126
| literals.put(new ANTLRHashString("case", this), new Integer(98));
|
62 |
126
| literals.put(new ANTLRHashString("short", this), new Integer(63));
|
63 |
126
| literals.put(new ANTLRHashString("break", this), new Integer(93));
|
64 |
126
| literals.put(new ANTLRHashString("while", this), new Integer(91));
|
65 |
126
| literals.put(new ANTLRHashString("new", this), new Integer(141));
|
66 |
126
| literals.put(new ANTLRHashString("ruleset", this), new Integer(44));
|
67 |
126
| literals.put(new ANTLRHashString("instanceof", this), new Integer(126));
|
68 |
126
| literals.put(new ANTLRHashString("implements", this), new Integer(83));
|
69 |
126
| literals.put(new ANTLRHashString("then", this), new Integer(47));
|
70 |
126
| literals.put(new ANTLRHashString("synchronized", this), new Integer(77));
|
71 |
126
| literals.put(new ANTLRHashString("float", this), new Integer(65));
|
72 |
126
| literals.put(new ANTLRHashString("package", this), new Integer(55));
|
73 |
126
| literals.put(new ANTLRHashString("return", this), new Integer(95));
|
74 |
126
| literals.put(new ANTLRHashString("throw", this), new Integer(97));
|
75 |
126
| literals.put(new ANTLRHashString("null", this), new Integer(140));
|
76 |
126
| literals.put(new ANTLRHashString("threadsafe", this), new Integer(76));
|
77 |
126
| literals.put(new ANTLRHashString("protected", this), new Integer(72));
|
78 |
126
| literals.put(new ANTLRHashString("when", this), new Integer(46));
|
79 |
126
| literals.put(new ANTLRHashString("class", this), new Integer(79));
|
80 |
126
| literals.put(new ANTLRHashString("throws", this), new Integer(86));
|
81 |
126
| literals.put(new ANTLRHashString("do", this), new Integer(92));
|
82 |
126
| literals.put(new ANTLRHashString("strictfp", this), new Integer(41));
|
83 |
126
| literals.put(new ANTLRHashString("super", this), new Integer(85));
|
84 |
126
| literals.put(new ANTLRHashString("transient", this), new Integer(74));
|
85 |
126
| literals.put(new ANTLRHashString("native", this), new Integer(75));
|
86 |
126
| literals.put(new ANTLRHashString("interface", this), new Integer(81));
|
87 |
126
| literals.put(new ANTLRHashString("final", this), new Integer(39));
|
88 |
126
| literals.put(new ANTLRHashString("if", this), new Integer(88));
|
89 |
126
| literals.put(new ANTLRHashString("double", this), new Integer(67));
|
90 |
126
| literals.put(new ANTLRHashString("volatile", this), new Integer(78));
|
91 |
126
| literals.put(new ANTLRHashString("catch", this), new Integer(102));
|
92 |
126
| literals.put(new ANTLRHashString("try", this), new Integer(100));
|
93 |
126
| literals.put(new ANTLRHashString("int", this), new Integer(64));
|
94 |
126
| literals.put(new ANTLRHashString("for", this), new Integer(90));
|
95 |
126
| literals.put(new ANTLRHashString("extends", this), new Integer(80));
|
96 |
126
| literals.put(new ANTLRHashString("boolean", this), new Integer(60));
|
97 |
126
| literals.put(new ANTLRHashString("char", this), new Integer(62));
|
98 |
126
| literals.put(new ANTLRHashString("private", this), new Integer(70));
|
99 |
126
| literals.put(new ANTLRHashString("default", this), new Integer(99));
|
100 |
126
| literals.put(new ANTLRHashString("rule", this), new Integer(45));
|
101 |
126
| literals.put(new ANTLRHashString("false", this), new Integer(139));
|
102 |
126
| literals.put(new ANTLRHashString("this", this), new Integer(84));
|
103 |
126
| literals.put(new ANTLRHashString("static", this), new Integer(73));
|
104 |
126
| literals.put(new ANTLRHashString("abstract", this), new Integer(40));
|
105 |
126
| literals.put(new ANTLRHashString("continue", this), new Integer(94));
|
106 |
126
| literals.put(new ANTLRHashString("finally", this), new Integer(101));
|
107 |
126
| literals.put(new ANTLRHashString("else", this), new Integer(89));
|
108 |
126
| literals.put(new ANTLRHashString("import", this), new Integer(56));
|
109 |
126
| literals.put(new ANTLRHashString("void", this), new Integer(59));
|
110 |
126
| literals.put(new ANTLRHashString("switch", this), new Integer(96));
|
111 |
126
| literals.put(new ANTLRHashString("true", this), new Integer(138));
|
112 |
126
| literals.put(new ANTLRHashString("long", this), new Integer(66));
|
113 |
| } |
114 |
| |
115 |
1094
| public Token nextToken() throws TokenStreamException {
|
116 |
1094
| Token theRetToken=null;
|
117 |
1094
| tryAgain:
|
118 |
| for (;;) { |
119 |
1488
| Token _token = null;
|
120 |
1488
| int _ttype = Token.INVALID_TYPE;
|
121 |
1488
| resetText();
|
122 |
1488
| try {
|
123 |
1488
| try {
|
124 |
1488
| switch ( LA(1)) {
|
125 |
0
| case '?':
|
126 |
| { |
127 |
0
| mQUESTION(true);
|
128 |
0
| theRetToken=_returnToken;
|
129 |
0
| break;
|
130 |
| } |
131 |
169
| case '(':
|
132 |
| { |
133 |
169
| mLPAREN(true);
|
134 |
169
| theRetToken=_returnToken;
|
135 |
169
| break;
|
136 |
| } |
137 |
169
| case ')':
|
138 |
| { |
139 |
169
| mRPAREN(true);
|
140 |
169
| theRetToken=_returnToken;
|
141 |
169
| break;
|
142 |
| } |
143 |
0
| case '[':
|
144 |
| { |
145 |
0
| mLBRACK(true);
|
146 |
0
| theRetToken=_returnToken;
|
147 |
0
| break;
|
148 |
| } |
149 |
0
| case ']':
|
150 |
| { |
151 |
0
| mRBRACK(true);
|
152 |
0
| theRetToken=_returnToken;
|
153 |
0
| break;
|
154 |
| } |
155 |
0
| case '{':
|
156 |
| { |
157 |
0
| mLCURLY(true);
|
158 |
0
| theRetToken=_returnToken;
|
159 |
0
| break;
|
160 |
| } |
161 |
0
| case '}':
|
162 |
| { |
163 |
0
| mRCURLY(true);
|
164 |
0
| theRetToken=_returnToken;
|
165 |
0
| break;
|
166 |
| } |
167 |
0
| case ':':
|
168 |
| { |
169 |
0
| mCOLON(true);
|
170 |
0
| theRetToken=_returnToken;
|
171 |
0
| break;
|
172 |
| } |
173 |
0
| case ',':
|
174 |
| { |
175 |
0
| mCOMMA(true);
|
176 |
0
| theRetToken=_returnToken;
|
177 |
0
| break;
|
178 |
| } |
179 |
0
| case '~':
|
180 |
| { |
181 |
0
| mBNOT(true);
|
182 |
0
| theRetToken=_returnToken;
|
183 |
0
| break;
|
184 |
| } |
185 |
0
| case ';':
|
186 |
| { |
187 |
0
| mSEMI(true);
|
188 |
0
| theRetToken=_returnToken;
|
189 |
0
| break;
|
190 |
| } |
191 |
21
| case '\t': case '\n': case '\u000c': case '\r':
|
192 |
255
| case ' ':
|
193 |
| { |
194 |
394
| mWS(true);
|
195 |
394
| theRetToken=_returnToken;
|
196 |
394
| break;
|
197 |
| } |
198 |
0
| case '\'':
|
199 |
| { |
200 |
0
| mCHAR_LITERAL(true);
|
201 |
0
| theRetToken=_returnToken;
|
202 |
0
| break;
|
203 |
| } |
204 |
26
| case '"':
|
205 |
| { |
206 |
26
| mSTRING_LITERAL(true);
|
207 |
26
| theRetToken=_returnToken;
|
208 |
26
| break;
|
209 |
| } |
210 |
1
| case '$': case 'A': case 'B': case 'C':
|
211 |
0
| case 'D': case 'E': case 'F': case 'G':
|
212 |
0
| case 'H': case 'I': case 'J': case 'K':
|
213 |
0
| case 'L': case 'M': case 'N': case 'O':
|
214 |
3
| case 'P': case 'Q': case 'R': case 'S':
|
215 |
0
| case 'T': case 'U': case 'V': case 'W':
|
216 |
0
| case 'X': case 'Y': case 'Z': case '_':
|
217 |
0
| case 'a': case 'b': case 'c': case 'd':
|
218 |
53
| case 'e': case 'f': case 'g': case 'h':
|
219 |
8
| case 'i': case 'j': case 'k': case 'l':
|
220 |
45
| case 'm': case 'n': case 'o': case 'p':
|
221 |
2
| case 'q': case 'r': case 's': case 't':
|
222 |
1
| case 'u': case 'v': case 'w': case 'x':
|
223 |
0
| case 'y': case 'z':
|
224 |
| { |
225 |
391
| mIDENT(true);
|
226 |
391
| theRetToken=_returnToken;
|
227 |
391
| break;
|
228 |
| } |
229 |
1
| case '.': case '0': case '1': case '2':
|
230 |
0
| case '3': case '4': case '5': case '6':
|
231 |
0
| case '7': case '8': case '9':
|
232 |
| { |
233 |
171
| mNUM_INT(true);
|
234 |
171
| theRetToken=_returnToken;
|
235 |
171
| break;
|
236 |
| } |
237 |
168
| default:
|
238 |
168
| if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (LA(4)=='=')) {
|
239 |
0
| mBSR_ASSIGN(true);
|
240 |
0
| theRetToken=_returnToken;
|
241 |
| } |
242 |
168
| else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='=')) {
|
243 |
0
| mSR_ASSIGN(true);
|
244 |
0
| theRetToken=_returnToken;
|
245 |
| } |
246 |
168
| else if ((LA(1)=='>') && (LA(2)=='>') && (LA(3)=='>') && (true)) {
|
247 |
0
| mBSR(true);
|
248 |
0
| theRetToken=_returnToken;
|
249 |
| } |
250 |
168
| else if ((LA(1)=='<') && (LA(2)=='<') && (LA(3)=='=')) {
|
251 |
0
| mSL_ASSIGN(true);
|
252 |
0
| theRetToken=_returnToken;
|
253 |
| } |
254 |
168
| else if ((LA(1)=='=') && (LA(2)=='=')) {
|
255 |
17
| mEQUAL(true);
|
256 |
17
| theRetToken=_returnToken;
|
257 |
| } |
258 |
151
| else if ((LA(1)=='!') && (LA(2)=='=')) {
|
259 |
1
| mNOT_EQUAL(true);
|
260 |
1
| theRetToken=_returnToken;
|
261 |
| } |
262 |
150
| else if ((LA(1)=='/') && (LA(2)=='=')) {
|
263 |
0
| mDIV_ASSIGN(true);
|
264 |
0
| theRetToken=_returnToken;
|
265 |
| } |
266 |
150
| else if ((LA(1)=='+') && (LA(2)=='=')) {
|
267 |
0
| mPLUS_ASSIGN(true);
|
268 |
0
| theRetToken=_returnToken;
|
269 |
| } |
270 |
150
| else if ((LA(1)=='+') && (LA(2)=='+')) {
|
271 |
0
| mINC(true);
|
272 |
0
| theRetToken=_returnToken;
|
273 |
| } |
274 |
150
| else if ((LA(1)=='-') && (LA(2)=='=')) {
|
275 |
0
| mMINUS_ASSIGN(true);
|
276 |
0
| theRetToken=_returnToken;
|
277 |
| } |
278 |
150
| else if ((LA(1)=='-') && (LA(2)=='-')) {
|
279 |
0
| mDEC(true);
|
280 |
0
| theRetToken=_returnToken;
|
281 |
| } |
282 |
150
| else if ((LA(1)=='*') && (LA(2)=='=')) {
|
283 |
0
| mSTAR_ASSIGN(true);
|
284 |
0
| theRetToken=_returnToken;
|
285 |
| } |
286 |
150
| else if ((LA(1)=='%') && (LA(2)=='=')) {
|
287 |
0
| mMOD_ASSIGN(true);
|
288 |
0
| theRetToken=_returnToken;
|
289 |
| } |
290 |
150
| else if ((LA(1)=='>') && (LA(2)=='>') && (true)) {
|
291 |
0
| mSR(true);
|
292 |
0
| theRetToken=_returnToken;
|
293 |
| } |
294 |
150
| else if ((LA(1)=='>') && (LA(2)=='=')) {
|
295 |
0
| mGE(true);
|
296 |
0
| theRetToken=_returnToken;
|
297 |
| } |
298 |
150
| else if ((LA(1)=='<') && (LA(2)=='<') && (true)) {
|
299 |
0
| mSL(true);
|
300 |
0
| theRetToken=_returnToken;
|
301 |
| } |
302 |
150
| else if ((LA(1)=='<') && (LA(2)=='=')) {
|
303 |
0
| mLE(true);
|
304 |
0
| theRetToken=_returnToken;
|
305 |
| } |
306 |
150
| else if ((LA(1)=='^') && (LA(2)=='=')) {
|
307 |
0
| mBXOR_ASSIGN(true);
|
308 |
0
| theRetToken=_returnToken;
|
309 |
| } |
310 |
150
| else if ((LA(1)=='|') && (LA(2)=='=')) {
|
311 |
0
| mBOR_ASSIGN(true);
|
312 |
0
| theRetToken=_returnToken;
|
313 |
| } |
314 |
150
| else if ((LA(1)=='|') && (LA(2)=='|')) {
|
315 |
0
| mLOR(true);
|
316 |
0
| theRetToken=_returnToken;
|
317 |
| } |
318 |
150
| else if ((LA(1)=='&') && (LA(2)=='=')) {
|
319 |
0
| mBAND_ASSIGN(true);
|
320 |
0
| theRetToken=_returnToken;
|
321 |
| } |
322 |
150
| else if ((LA(1)=='&') && (LA(2)=='&')) {
|
323 |
0
| mLAND(true);
|
324 |
0
| theRetToken=_returnToken;
|
325 |
| } |
326 |
150
| else if ((LA(1)=='/') && (LA(2)=='/')) {
|
327 |
0
| mSL_COMMENT(true);
|
328 |
0
| theRetToken=_returnToken;
|
329 |
| } |
330 |
150
| else if ((LA(1)=='/') && (LA(2)=='*')) {
|
331 |
0
| mML_COMMENT(true);
|
332 |
0
| theRetToken=_returnToken;
|
333 |
| } |
334 |
150
| else if ((LA(1)=='=') && (true)) {
|
335 |
0
| mASSIGN(true);
|
336 |
0
| theRetToken=_returnToken;
|
337 |
| } |
338 |
150
| else if ((LA(1)=='!') && (true)) {
|
339 |
5
| mLNOT(true);
|
340 |
5
| theRetToken=_returnToken;
|
341 |
| } |
342 |
145
| else if ((LA(1)=='/') && (true)) {
|
343 |
0
| mDIV(true);
|
344 |
0
| theRetToken=_returnToken;
|
345 |
| } |
346 |
145
| else if ((LA(1)=='+') && (true)) {
|
347 |
0
| mPLUS(true);
|
348 |
0
| theRetToken=_returnToken;
|
349 |
| } |
350 |
145
| else if ((LA(1)=='-') && (true)) {
|
351 |
0
| mMINUS(true);
|
352 |
0
| theRetToken=_returnToken;
|
353 |
| } |
354 |
145
| else if ((LA(1)=='*') && (true)) {
|
355 |
0
| mSTAR(true);
|
356 |
0
| theRetToken=_returnToken;
|
357 |
| } |
358 |
145
| else if ((LA(1)=='%') && (true)) {
|
359 |
0
| mMOD(true);
|
360 |
0
| theRetToken=_returnToken;
|
361 |
| } |
362 |
145
| else if ((LA(1)=='>') && (true)) {
|
363 |
19
| mGT(true);
|
364 |
19
| theRetToken=_returnToken;
|
365 |
| } |
366 |
126
| else if ((LA(1)=='<') && (true)) {
|
367 |
0
| mLT(true);
|
368 |
0
| theRetToken=_returnToken;
|
369 |
| } |
370 |
126
| else if ((LA(1)=='^') && (true)) {
|
371 |
0
| mBXOR(true);
|
372 |
0
| theRetToken=_returnToken;
|
373 |
| } |
374 |
126
| else if ((LA(1)=='|') && (true)) {
|
375 |
0
| mBOR(true);
|
376 |
0
| theRetToken=_returnToken;
|
377 |
| } |
378 |
126
| else if ((LA(1)=='&') && (true)) {
|
379 |
0
| mBAND(true);
|
380 |
0
| theRetToken=_returnToken;
|
381 |
| } |
382 |
| else { |
383 |
126
| if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
|
384 |
0
| else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
385 |
| } |
386 |
| } |
387 |
394
| if ( _returnToken==null ) continue tryAgain;
|
388 |
1094
| _ttype = _returnToken.getType();
|
389 |
1094
| _returnToken.setType(_ttype);
|
390 |
1094
| return _returnToken;
|
391 |
| } |
392 |
| catch (RecognitionException e) { |
393 |
0
| throw new TokenStreamRecognitionException(e);
|
394 |
| } |
395 |
| } |
396 |
| catch (CharStreamException cse) { |
397 |
0
| if ( cse instanceof CharStreamIOException ) {
|
398 |
0
| throw new TokenStreamIOException(((CharStreamIOException)cse).io);
|
399 |
| } |
400 |
| else { |
401 |
0
| throw new TokenStreamException(cse.getMessage());
|
402 |
| } |
403 |
| } |
404 |
| } |
405 |
| } |
406 |
| |
407 |
0
| public final void mQUESTION(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
408 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
409 |
0
| _ttype = QUESTION;
|
410 |
0
| int _saveIndex;
|
411 |
| |
412 |
0
| match('?');
|
413 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
414 |
0
| _token = makeToken(_ttype);
|
415 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
416 |
| } |
417 |
0
| _returnToken = _token;
|
418 |
| } |
419 |
| |
420 |
169
| public final void mLPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
421 |
169
| int _ttype; Token _token=null; int _begin=text.length();
|
422 |
169
| _ttype = LPAREN;
|
423 |
169
| int _saveIndex;
|
424 |
| |
425 |
169
| match('(');
|
426 |
169
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
427 |
169
| _token = makeToken(_ttype);
|
428 |
169
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
429 |
| } |
430 |
169
| _returnToken = _token;
|
431 |
| } |
432 |
| |
433 |
169
| public final void mRPAREN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
434 |
169
| int _ttype; Token _token=null; int _begin=text.length();
|
435 |
169
| _ttype = RPAREN;
|
436 |
169
| int _saveIndex;
|
437 |
| |
438 |
169
| match(')');
|
439 |
169
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
440 |
169
| _token = makeToken(_ttype);
|
441 |
169
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
442 |
| } |
443 |
169
| _returnToken = _token;
|
444 |
| } |
445 |
| |
446 |
0
| public final void mLBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
447 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
448 |
0
| _ttype = LBRACK;
|
449 |
0
| int _saveIndex;
|
450 |
| |
451 |
0
| match('[');
|
452 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
453 |
0
| _token = makeToken(_ttype);
|
454 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
455 |
| } |
456 |
0
| _returnToken = _token;
|
457 |
| } |
458 |
| |
459 |
0
| public final void mRBRACK(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
460 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
461 |
0
| _ttype = RBRACK;
|
462 |
0
| int _saveIndex;
|
463 |
| |
464 |
0
| match(']');
|
465 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
466 |
0
| _token = makeToken(_ttype);
|
467 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
468 |
| } |
469 |
0
| _returnToken = _token;
|
470 |
| } |
471 |
| |
472 |
0
| public final void mLCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
473 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
474 |
0
| _ttype = LCURLY;
|
475 |
0
| int _saveIndex;
|
476 |
| |
477 |
0
| match('{');
|
478 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
479 |
0
| _token = makeToken(_ttype);
|
480 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
481 |
| } |
482 |
0
| _returnToken = _token;
|
483 |
| } |
484 |
| |
485 |
0
| public final void mRCURLY(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
486 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
487 |
0
| _ttype = RCURLY;
|
488 |
0
| int _saveIndex;
|
489 |
| |
490 |
0
| match('}');
|
491 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
492 |
0
| _token = makeToken(_ttype);
|
493 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
494 |
| } |
495 |
0
| _returnToken = _token;
|
496 |
| } |
497 |
| |
498 |
0
| public final void mCOLON(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
499 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
500 |
0
| _ttype = COLON;
|
501 |
0
| int _saveIndex;
|
502 |
| |
503 |
0
| match(':');
|
504 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
505 |
0
| _token = makeToken(_ttype);
|
506 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
507 |
| } |
508 |
0
| _returnToken = _token;
|
509 |
| } |
510 |
| |
511 |
0
| public final void mCOMMA(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
512 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
513 |
0
| _ttype = COMMA;
|
514 |
0
| int _saveIndex;
|
515 |
| |
516 |
0
| match(',');
|
517 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
518 |
0
| _token = makeToken(_ttype);
|
519 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
520 |
| } |
521 |
0
| _returnToken = _token;
|
522 |
| } |
523 |
| |
524 |
0
| public final void mASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
525 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
526 |
0
| _ttype = ASSIGN;
|
527 |
0
| int _saveIndex;
|
528 |
| |
529 |
0
| match('=');
|
530 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
531 |
0
| _token = makeToken(_ttype);
|
532 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
533 |
| } |
534 |
0
| _returnToken = _token;
|
535 |
| } |
536 |
| |
537 |
17
| public final void mEQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
538 |
17
| int _ttype; Token _token=null; int _begin=text.length();
|
539 |
17
| _ttype = EQUAL;
|
540 |
17
| int _saveIndex;
|
541 |
| |
542 |
17
| match("==");
|
543 |
17
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
544 |
17
| _token = makeToken(_ttype);
|
545 |
17
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
546 |
| } |
547 |
17
| _returnToken = _token;
|
548 |
| } |
549 |
| |
550 |
5
| public final void mLNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
551 |
5
| int _ttype; Token _token=null; int _begin=text.length();
|
552 |
5
| _ttype = LNOT;
|
553 |
5
| int _saveIndex;
|
554 |
| |
555 |
5
| match('!');
|
556 |
5
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
557 |
5
| _token = makeToken(_ttype);
|
558 |
5
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
559 |
| } |
560 |
5
| _returnToken = _token;
|
561 |
| } |
562 |
| |
563 |
0
| public final void mBNOT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
564 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
565 |
0
| _ttype = BNOT;
|
566 |
0
| int _saveIndex;
|
567 |
| |
568 |
0
| match('~');
|
569 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
570 |
0
| _token = makeToken(_ttype);
|
571 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
572 |
| } |
573 |
0
| _returnToken = _token;
|
574 |
| } |
575 |
| |
576 |
1
| public final void mNOT_EQUAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
577 |
1
| int _ttype; Token _token=null; int _begin=text.length();
|
578 |
1
| _ttype = NOT_EQUAL;
|
579 |
1
| int _saveIndex;
|
580 |
| |
581 |
1
| match("!=");
|
582 |
1
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
583 |
1
| _token = makeToken(_ttype);
|
584 |
1
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
585 |
| } |
586 |
1
| _returnToken = _token;
|
587 |
| } |
588 |
| |
589 |
0
| public final void mDIV(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
590 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
591 |
0
| _ttype = DIV;
|
592 |
0
| int _saveIndex;
|
593 |
| |
594 |
0
| match('/');
|
595 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
596 |
0
| _token = makeToken(_ttype);
|
597 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
598 |
| } |
599 |
0
| _returnToken = _token;
|
600 |
| } |
601 |
| |
602 |
0
| public final void mDIV_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
603 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
604 |
0
| _ttype = DIV_ASSIGN;
|
605 |
0
| int _saveIndex;
|
606 |
| |
607 |
0
| match("/=");
|
608 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
609 |
0
| _token = makeToken(_ttype);
|
610 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
611 |
| } |
612 |
0
| _returnToken = _token;
|
613 |
| } |
614 |
| |
615 |
0
| public final void mPLUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
616 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
617 |
0
| _ttype = PLUS;
|
618 |
0
| int _saveIndex;
|
619 |
| |
620 |
0
| match('+');
|
621 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
622 |
0
| _token = makeToken(_ttype);
|
623 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
624 |
| } |
625 |
0
| _returnToken = _token;
|
626 |
| } |
627 |
| |
628 |
0
| public final void mPLUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
629 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
630 |
0
| _ttype = PLUS_ASSIGN;
|
631 |
0
| int _saveIndex;
|
632 |
| |
633 |
0
| match("+=");
|
634 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
635 |
0
| _token = makeToken(_ttype);
|
636 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
637 |
| } |
638 |
0
| _returnToken = _token;
|
639 |
| } |
640 |
| |
641 |
0
| public final void mINC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
642 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
643 |
0
| _ttype = INC;
|
644 |
0
| int _saveIndex;
|
645 |
| |
646 |
0
| match("++");
|
647 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
648 |
0
| _token = makeToken(_ttype);
|
649 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
650 |
| } |
651 |
0
| _returnToken = _token;
|
652 |
| } |
653 |
| |
654 |
0
| public final void mMINUS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
655 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
656 |
0
| _ttype = MINUS;
|
657 |
0
| int _saveIndex;
|
658 |
| |
659 |
0
| match('-');
|
660 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
661 |
0
| _token = makeToken(_ttype);
|
662 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
663 |
| } |
664 |
0
| _returnToken = _token;
|
665 |
| } |
666 |
| |
667 |
0
| public final void mMINUS_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
668 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
669 |
0
| _ttype = MINUS_ASSIGN;
|
670 |
0
| int _saveIndex;
|
671 |
| |
672 |
0
| match("-=");
|
673 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
674 |
0
| _token = makeToken(_ttype);
|
675 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
676 |
| } |
677 |
0
| _returnToken = _token;
|
678 |
| } |
679 |
| |
680 |
0
| public final void mDEC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
681 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
682 |
0
| _ttype = DEC;
|
683 |
0
| int _saveIndex;
|
684 |
| |
685 |
0
| match("--");
|
686 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
687 |
0
| _token = makeToken(_ttype);
|
688 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
689 |
| } |
690 |
0
| _returnToken = _token;
|
691 |
| } |
692 |
| |
693 |
0
| public final void mSTAR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
694 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
695 |
0
| _ttype = STAR;
|
696 |
0
| int _saveIndex;
|
697 |
| |
698 |
0
| match('*');
|
699 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
700 |
0
| _token = makeToken(_ttype);
|
701 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
702 |
| } |
703 |
0
| _returnToken = _token;
|
704 |
| } |
705 |
| |
706 |
0
| public final void mSTAR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
707 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
708 |
0
| _ttype = STAR_ASSIGN;
|
709 |
0
| int _saveIndex;
|
710 |
| |
711 |
0
| match("*=");
|
712 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
713 |
0
| _token = makeToken(_ttype);
|
714 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
715 |
| } |
716 |
0
| _returnToken = _token;
|
717 |
| } |
718 |
| |
719 |
0
| public final void mMOD(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
720 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
721 |
0
| _ttype = MOD;
|
722 |
0
| int _saveIndex;
|
723 |
| |
724 |
0
| match('%');
|
725 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
726 |
0
| _token = makeToken(_ttype);
|
727 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
728 |
| } |
729 |
0
| _returnToken = _token;
|
730 |
| } |
731 |
| |
732 |
0
| public final void mMOD_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
733 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
734 |
0
| _ttype = MOD_ASSIGN;
|
735 |
0
| int _saveIndex;
|
736 |
| |
737 |
0
| match("%=");
|
738 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
739 |
0
| _token = makeToken(_ttype);
|
740 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
741 |
| } |
742 |
0
| _returnToken = _token;
|
743 |
| } |
744 |
| |
745 |
0
| public final void mSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
746 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
747 |
0
| _ttype = SR;
|
748 |
0
| int _saveIndex;
|
749 |
| |
750 |
0
| match(">>");
|
751 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
752 |
0
| _token = makeToken(_ttype);
|
753 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
754 |
| } |
755 |
0
| _returnToken = _token;
|
756 |
| } |
757 |
| |
758 |
0
| public final void mSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
759 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
760 |
0
| _ttype = SR_ASSIGN;
|
761 |
0
| int _saveIndex;
|
762 |
| |
763 |
0
| match(">>=");
|
764 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
765 |
0
| _token = makeToken(_ttype);
|
766 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
767 |
| } |
768 |
0
| _returnToken = _token;
|
769 |
| } |
770 |
| |
771 |
0
| public final void mBSR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
772 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
773 |
0
| _ttype = BSR;
|
774 |
0
| int _saveIndex;
|
775 |
| |
776 |
0
| match(">>>");
|
777 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
778 |
0
| _token = makeToken(_ttype);
|
779 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
780 |
| } |
781 |
0
| _returnToken = _token;
|
782 |
| } |
783 |
| |
784 |
0
| public final void mBSR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
785 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
786 |
0
| _ttype = BSR_ASSIGN;
|
787 |
0
| int _saveIndex;
|
788 |
| |
789 |
0
| match(">>>=");
|
790 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
791 |
0
| _token = makeToken(_ttype);
|
792 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
793 |
| } |
794 |
0
| _returnToken = _token;
|
795 |
| } |
796 |
| |
797 |
0
| public final void mGE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
798 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
799 |
0
| _ttype = GE;
|
800 |
0
| int _saveIndex;
|
801 |
| |
802 |
0
| match(">=");
|
803 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
804 |
0
| _token = makeToken(_ttype);
|
805 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
806 |
| } |
807 |
0
| _returnToken = _token;
|
808 |
| } |
809 |
| |
810 |
19
| public final void mGT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
811 |
19
| int _ttype; Token _token=null; int _begin=text.length();
|
812 |
19
| _ttype = GT;
|
813 |
19
| int _saveIndex;
|
814 |
| |
815 |
19
| match(">");
|
816 |
19
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
817 |
19
| _token = makeToken(_ttype);
|
818 |
19
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
819 |
| } |
820 |
19
| _returnToken = _token;
|
821 |
| } |
822 |
| |
823 |
0
| public final void mSL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
824 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
825 |
0
| _ttype = SL;
|
826 |
0
| int _saveIndex;
|
827 |
| |
828 |
0
| match("<<");
|
829 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
830 |
0
| _token = makeToken(_ttype);
|
831 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
832 |
| } |
833 |
0
| _returnToken = _token;
|
834 |
| } |
835 |
| |
836 |
0
| public final void mSL_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
837 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
838 |
0
| _ttype = SL_ASSIGN;
|
839 |
0
| int _saveIndex;
|
840 |
| |
841 |
0
| match("<<=");
|
842 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
843 |
0
| _token = makeToken(_ttype);
|
844 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
845 |
| } |
846 |
0
| _returnToken = _token;
|
847 |
| } |
848 |
| |
849 |
0
| public final void mLE(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
850 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
851 |
0
| _ttype = LE;
|
852 |
0
| int _saveIndex;
|
853 |
| |
854 |
0
| match("<=");
|
855 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
856 |
0
| _token = makeToken(_ttype);
|
857 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
858 |
| } |
859 |
0
| _returnToken = _token;
|
860 |
| } |
861 |
| |
862 |
0
| public final void mLT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
863 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
864 |
0
| _ttype = LT;
|
865 |
0
| int _saveIndex;
|
866 |
| |
867 |
0
| match('<');
|
868 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
869 |
0
| _token = makeToken(_ttype);
|
870 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
871 |
| } |
872 |
0
| _returnToken = _token;
|
873 |
| } |
874 |
| |
875 |
0
| public final void mBXOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
876 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
877 |
0
| _ttype = BXOR;
|
878 |
0
| int _saveIndex;
|
879 |
| |
880 |
0
| match('^');
|
881 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
882 |
0
| _token = makeToken(_ttype);
|
883 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
884 |
| } |
885 |
0
| _returnToken = _token;
|
886 |
| } |
887 |
| |
888 |
0
| public final void mBXOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
889 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
890 |
0
| _ttype = BXOR_ASSIGN;
|
891 |
0
| int _saveIndex;
|
892 |
| |
893 |
0
| match("^=");
|
894 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
895 |
0
| _token = makeToken(_ttype);
|
896 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
897 |
| } |
898 |
0
| _returnToken = _token;
|
899 |
| } |
900 |
| |
901 |
0
| public final void mBOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
902 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
903 |
0
| _ttype = BOR;
|
904 |
0
| int _saveIndex;
|
905 |
| |
906 |
0
| match('|');
|
907 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
908 |
0
| _token = makeToken(_ttype);
|
909 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
910 |
| } |
911 |
0
| _returnToken = _token;
|
912 |
| } |
913 |
| |
914 |
0
| public final void mBOR_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
915 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
916 |
0
| _ttype = BOR_ASSIGN;
|
917 |
0
| int _saveIndex;
|
918 |
| |
919 |
0
| match("|=");
|
920 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
921 |
0
| _token = makeToken(_ttype);
|
922 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
923 |
| } |
924 |
0
| _returnToken = _token;
|
925 |
| } |
926 |
| |
927 |
0
| public final void mLOR(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
928 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
929 |
0
| _ttype = LOR;
|
930 |
0
| int _saveIndex;
|
931 |
| |
932 |
0
| match("||");
|
933 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
934 |
0
| _token = makeToken(_ttype);
|
935 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
936 |
| } |
937 |
0
| _returnToken = _token;
|
938 |
| } |
939 |
| |
940 |
0
| public final void mBAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
941 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
942 |
0
| _ttype = BAND;
|
943 |
0
| int _saveIndex;
|
944 |
| |
945 |
0
| match('&');
|
946 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
947 |
0
| _token = makeToken(_ttype);
|
948 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
949 |
| } |
950 |
0
| _returnToken = _token;
|
951 |
| } |
952 |
| |
953 |
0
| public final void mBAND_ASSIGN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
954 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
955 |
0
| _ttype = BAND_ASSIGN;
|
956 |
0
| int _saveIndex;
|
957 |
| |
958 |
0
| match("&=");
|
959 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
960 |
0
| _token = makeToken(_ttype);
|
961 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
962 |
| } |
963 |
0
| _returnToken = _token;
|
964 |
| } |
965 |
| |
966 |
0
| public final void mLAND(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
967 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
968 |
0
| _ttype = LAND;
|
969 |
0
| int _saveIndex;
|
970 |
| |
971 |
0
| match("&&");
|
972 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
973 |
0
| _token = makeToken(_ttype);
|
974 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
975 |
| } |
976 |
0
| _returnToken = _token;
|
977 |
| } |
978 |
| |
979 |
0
| public final void mSEMI(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
980 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
981 |
0
| _ttype = SEMI;
|
982 |
0
| int _saveIndex;
|
983 |
| |
984 |
0
| match(';');
|
985 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
986 |
0
| _token = makeToken(_ttype);
|
987 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
988 |
| } |
989 |
0
| _returnToken = _token;
|
990 |
| } |
991 |
| |
992 |
394
| public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
993 |
394
| int _ttype; Token _token=null; int _begin=text.length();
|
994 |
394
| _ttype = WS;
|
995 |
394
| int _saveIndex;
|
996 |
| |
997 |
| { |
998 |
394
| int _cnt256=0;
|
999 |
394
| _loop256:
|
1000 |
| do { |
1001 |
2138
| switch ( LA(1)) {
|
1002 |
1575
| case ' ':
|
1003 |
| { |
1004 |
1575
| match(' ');
|
1005 |
1575
| break;
|
1006 |
| } |
1007 |
0
| case '\t':
|
1008 |
| { |
1009 |
0
| match('\t');
|
1010 |
0
| break;
|
1011 |
| } |
1012 |
0
| case '\u000c':
|
1013 |
| { |
1014 |
0
| match('\f');
|
1015 |
0
| break;
|
1016 |
| } |
1017 |
21
| case '\n': case '\r':
|
1018 |
| { |
1019 |
| { |
1020 |
169
| if ((LA(1)=='\r') && (LA(2)=='\n') && (true) && (true)) {
|
1021 |
21
| match("\r\n");
|
1022 |
| } |
1023 |
148
| else if ((LA(1)=='\r') && (true) && (true) && (true)) {
|
1024 |
0
| match('\r');
|
1025 |
| } |
1026 |
148
| else if ((LA(1)=='\n')) {
|
1027 |
148
| match('\n');
|
1028 |
| } |
1029 |
| else { |
1030 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1031 |
| } |
1032 |
| |
1033 |
| } |
1034 |
169
| newline();
|
1035 |
169
| break;
|
1036 |
| } |
1037 |
394
| default:
|
1038 |
| { |
1039 |
0
| if ( _cnt256>=1 ) { break _loop256; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1040 |
| } |
1041 |
| } |
1042 |
1744
| _cnt256++;
|
1043 |
| } while (true); |
1044 |
| } |
1045 |
394
| _ttype = Token.SKIP;
|
1046 |
394
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1047 |
0
| _token = makeToken(_ttype);
|
1048 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1049 |
| } |
1050 |
394
| _returnToken = _token;
|
1051 |
| } |
1052 |
| |
1053 |
0
| public final void mSL_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1054 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1055 |
0
| _ttype = SL_COMMENT;
|
1056 |
0
| int _saveIndex;
|
1057 |
| |
1058 |
0
| match("//");
|
1059 |
| { |
1060 |
0
| _loop260:
|
1061 |
| do { |
1062 |
0
| if ((_tokenSet_0.member(LA(1)))) {
|
1063 |
| { |
1064 |
0
| match(_tokenSet_0);
|
1065 |
| } |
1066 |
| } |
1067 |
| else { |
1068 |
0
| break _loop260;
|
1069 |
| } |
1070 |
| |
1071 |
| } while (true); |
1072 |
| } |
1073 |
| { |
1074 |
0
| switch ( LA(1)) {
|
1075 |
0
| case '\n':
|
1076 |
| { |
1077 |
0
| match('\n');
|
1078 |
0
| break;
|
1079 |
| } |
1080 |
0
| case '\r':
|
1081 |
| { |
1082 |
0
| match('\r');
|
1083 |
| { |
1084 |
0
| if ((LA(1)=='\n')) {
|
1085 |
0
| match('\n');
|
1086 |
| } |
1087 |
| else { |
1088 |
| } |
1089 |
| |
1090 |
| } |
1091 |
0
| break;
|
1092 |
| } |
1093 |
0
| default:
|
1094 |
| { |
1095 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1096 |
| } |
1097 |
| } |
1098 |
| } |
1099 |
0
| _ttype = Token.SKIP; newline();
|
1100 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1101 |
0
| _token = makeToken(_ttype);
|
1102 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1103 |
| } |
1104 |
0
| _returnToken = _token;
|
1105 |
| } |
1106 |
| |
1107 |
0
| public final void mML_COMMENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1108 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1109 |
0
| _ttype = ML_COMMENT;
|
1110 |
0
| int _saveIndex;
|
1111 |
| |
1112 |
0
| match("/*");
|
1113 |
| { |
1114 |
0
| _loop266:
|
1115 |
| do { |
1116 |
0
| if ((LA(1)=='\r') && (LA(2)=='\n') && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')) && ((LA(4) >= '\u0003' && LA(4) <= '\uffff'))) {
|
1117 |
0
| match('\r');
|
1118 |
0
| match('\n');
|
1119 |
0
| newline();
|
1120 |
| } |
1121 |
0
| else if (((LA(1)=='*') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')))&&( LA(2)!='/' )) {
|
1122 |
0
| match('*');
|
1123 |
| } |
1124 |
0
| else if ((LA(1)=='\r') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')) && (true)) {
|
1125 |
0
| match('\r');
|
1126 |
0
| newline();
|
1127 |
| } |
1128 |
0
| else if ((LA(1)=='\n')) {
|
1129 |
0
| match('\n');
|
1130 |
0
| newline();
|
1131 |
| } |
1132 |
0
| else if ((_tokenSet_1.member(LA(1)))) {
|
1133 |
| { |
1134 |
0
| match(_tokenSet_1);
|
1135 |
| } |
1136 |
| } |
1137 |
| else { |
1138 |
0
| break _loop266;
|
1139 |
| } |
1140 |
| |
1141 |
| } while (true); |
1142 |
| } |
1143 |
0
| match("*/");
|
1144 |
0
| _ttype = Token.SKIP;
|
1145 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1146 |
0
| _token = makeToken(_ttype);
|
1147 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1148 |
| } |
1149 |
0
| _returnToken = _token;
|
1150 |
| } |
1151 |
| |
1152 |
0
| public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1153 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1154 |
0
| _ttype = CHAR_LITERAL;
|
1155 |
0
| int _saveIndex;
|
1156 |
| |
1157 |
0
| match('\'');
|
1158 |
| { |
1159 |
0
| if ((LA(1)=='\\')) {
|
1160 |
0
| mESC(false);
|
1161 |
| } |
1162 |
0
| else if ((_tokenSet_2.member(LA(1)))) {
|
1163 |
0
| matchNot('\'');
|
1164 |
| } |
1165 |
| else { |
1166 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1167 |
| } |
1168 |
| |
1169 |
| } |
1170 |
0
| match('\'');
|
1171 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1172 |
0
| _token = makeToken(_ttype);
|
1173 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1174 |
| } |
1175 |
0
| _returnToken = _token;
|
1176 |
| } |
1177 |
| |
1178 |
0
| protected final void mESC(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1179 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1180 |
0
| _ttype = ESC;
|
1181 |
0
| int _saveIndex;
|
1182 |
| |
1183 |
0
| match('\\');
|
1184 |
| { |
1185 |
0
| switch ( LA(1)) {
|
1186 |
0
| case 'n':
|
1187 |
| { |
1188 |
0
| match('n');
|
1189 |
0
| break;
|
1190 |
| } |
1191 |
0
| case 'r':
|
1192 |
| { |
1193 |
0
| match('r');
|
1194 |
0
| break;
|
1195 |
| } |
1196 |
0
| case 't':
|
1197 |
| { |
1198 |
0
| match('t');
|
1199 |
0
| break;
|
1200 |
| } |
1201 |
0
| case 'b':
|
1202 |
| { |
1203 |
0
| match('b');
|
1204 |
0
| break;
|
1205 |
| } |
1206 |
0
| case 'f':
|
1207 |
| { |
1208 |
0
| match('f');
|
1209 |
0
| break;
|
1210 |
| } |
1211 |
0
| case '"':
|
1212 |
| { |
1213 |
0
| match('"');
|
1214 |
0
| break;
|
1215 |
| } |
1216 |
0
| case '\'':
|
1217 |
| { |
1218 |
0
| match('\'');
|
1219 |
0
| break;
|
1220 |
| } |
1221 |
0
| case '\\':
|
1222 |
| { |
1223 |
0
| match('\\');
|
1224 |
0
| break;
|
1225 |
| } |
1226 |
0
| case 'u':
|
1227 |
| { |
1228 |
| { |
1229 |
0
| int _cnt276=0;
|
1230 |
0
| _loop276:
|
1231 |
| do { |
1232 |
0
| if ((LA(1)=='u')) {
|
1233 |
0
| match('u');
|
1234 |
| } |
1235 |
| else { |
1236 |
0
| if ( _cnt276>=1 ) { break _loop276; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1237 |
| } |
1238 |
| |
1239 |
0
| _cnt276++;
|
1240 |
| } while (true); |
1241 |
| } |
1242 |
0
| mHEX_DIGIT(false);
|
1243 |
0
| mHEX_DIGIT(false);
|
1244 |
0
| mHEX_DIGIT(false);
|
1245 |
0
| mHEX_DIGIT(false);
|
1246 |
0
| break;
|
1247 |
| } |
1248 |
0
| case '0': case '1': case '2': case '3':
|
1249 |
| { |
1250 |
| { |
1251 |
0
| matchRange('0','3');
|
1252 |
| } |
1253 |
| { |
1254 |
0
| if (((LA(1) >= '0' && LA(1) <= '7')) && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true) && (true)) {
|
1255 |
| { |
1256 |
0
| matchRange('0','7');
|
1257 |
| } |
1258 |
| { |
1259 |
0
| if (((LA(1) >= '0' && LA(1) <= '7')) && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true) && (true)) {
|
1260 |
0
| matchRange('0','7');
|
1261 |
| } |
1262 |
0
| else if (((LA(1) >= '\u0003' && LA(1) <= '\uffff')) && (true) && (true) && (true)) {
|
1263 |
| } |
1264 |
| else { |
1265 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1266 |
| } |
1267 |
| |
1268 |
| } |
1269 |
| } |
1270 |
0
| else if (((LA(1) >= '\u0003' && LA(1) <= '\uffff')) && (true) && (true) && (true)) {
|
1271 |
| } |
1272 |
| else { |
1273 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1274 |
| } |
1275 |
| |
1276 |
| } |
1277 |
0
| break;
|
1278 |
| } |
1279 |
0
| case '4': case '5': case '6': case '7':
|
1280 |
| { |
1281 |
| { |
1282 |
0
| matchRange('4','7');
|
1283 |
| } |
1284 |
| { |
1285 |
0
| if (((LA(1) >= '0' && LA(1) <= '9')) && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true) && (true)) {
|
1286 |
| { |
1287 |
0
| matchRange('0','9');
|
1288 |
| } |
1289 |
| } |
1290 |
0
| else if (((LA(1) >= '\u0003' && LA(1) <= '\uffff')) && (true) && (true) && (true)) {
|
1291 |
| } |
1292 |
| else { |
1293 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1294 |
| } |
1295 |
| |
1296 |
| } |
1297 |
0
| break;
|
1298 |
| } |
1299 |
0
| default:
|
1300 |
| { |
1301 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1302 |
| } |
1303 |
| } |
1304 |
| } |
1305 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1306 |
0
| _token = makeToken(_ttype);
|
1307 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1308 |
| } |
1309 |
0
| _returnToken = _token;
|
1310 |
| } |
1311 |
| |
1312 |
26
| public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1313 |
26
| int _ttype; Token _token=null; int _begin=text.length();
|
1314 |
26
| _ttype = STRING_LITERAL;
|
1315 |
26
| int _saveIndex;
|
1316 |
| |
1317 |
26
| match('"');
|
1318 |
| { |
1319 |
26
| _loop272:
|
1320 |
| do { |
1321 |
310
| if ((LA(1)=='\\')) {
|
1322 |
0
| mESC(false);
|
1323 |
| } |
1324 |
310
| else if ((_tokenSet_3.member(LA(1)))) {
|
1325 |
| { |
1326 |
284
| match(_tokenSet_3);
|
1327 |
| } |
1328 |
| } |
1329 |
| else { |
1330 |
26
| break _loop272;
|
1331 |
| } |
1332 |
| |
1333 |
| } while (true); |
1334 |
| } |
1335 |
26
| match('"');
|
1336 |
26
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1337 |
26
| _token = makeToken(_ttype);
|
1338 |
26
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1339 |
| } |
1340 |
26
| _returnToken = _token;
|
1341 |
| } |
1342 |
| |
1343 |
0
| protected final void mHEX_DIGIT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1344 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1345 |
0
| _ttype = HEX_DIGIT;
|
1346 |
0
| int _saveIndex;
|
1347 |
| |
1348 |
| { |
1349 |
0
| switch ( LA(1)) {
|
1350 |
0
| case '0': case '1': case '2': case '3':
|
1351 |
0
| case '4': case '5': case '6': case '7':
|
1352 |
0
| case '8': case '9':
|
1353 |
| { |
1354 |
0
| matchRange('0','9');
|
1355 |
0
| break;
|
1356 |
| } |
1357 |
0
| case 'A': case 'B': case 'C': case 'D':
|
1358 |
0
| case 'E': case 'F':
|
1359 |
| { |
1360 |
0
| matchRange('A','F');
|
1361 |
0
| break;
|
1362 |
| } |
1363 |
0
| case 'a': case 'b': case 'c': case 'd':
|
1364 |
0
| case 'e': case 'f':
|
1365 |
| { |
1366 |
0
| matchRange('a','f');
|
1367 |
0
| break;
|
1368 |
| } |
1369 |
0
| default:
|
1370 |
| { |
1371 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1372 |
| } |
1373 |
| } |
1374 |
| } |
1375 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1376 |
0
| _token = makeToken(_ttype);
|
1377 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1378 |
| } |
1379 |
0
| _returnToken = _token;
|
1380 |
| } |
1381 |
| |
1382 |
0
| protected final void mVOCAB(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1383 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1384 |
0
| _ttype = VOCAB;
|
1385 |
0
| int _saveIndex;
|
1386 |
| |
1387 |
0
| matchRange('\3','\377');
|
1388 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1389 |
0
| _token = makeToken(_ttype);
|
1390 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1391 |
| } |
1392 |
0
| _returnToken = _token;
|
1393 |
| } |
1394 |
| |
1395 |
391
| public final void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1396 |
391
| int _ttype; Token _token=null; int _begin=text.length();
|
1397 |
391
| _ttype = IDENT;
|
1398 |
391
| int _saveIndex;
|
1399 |
| |
1400 |
| { |
1401 |
391
| switch ( LA(1)) {
|
1402 |
0
| case 'a': case 'b': case 'c': case 'd':
|
1403 |
53
| case 'e': case 'f': case 'g': case 'h':
|
1404 |
8
| case 'i': case 'j': case 'k': case 'l':
|
1405 |
45
| case 'm': case 'n': case 'o': case 'p':
|
1406 |
2
| case 'q': case 'r': case 's': case 't':
|
1407 |
1
| case 'u': case 'v': case 'w': case 'x':
|
1408 |
0
| case 'y': case 'z':
|
1409 |
| { |
1410 |
386
| matchRange('a','z');
|
1411 |
386
| break;
|
1412 |
| } |
1413 |
0
| case 'A': case 'B': case 'C': case 'D':
|
1414 |
0
| case 'E': case 'F': case 'G': case 'H':
|
1415 |
0
| case 'I': case 'J': case 'K': case 'L':
|
1416 |
0
| case 'M': case 'N': case 'O': case 'P':
|
1417 |
0
| case 'Q': case 'R': case 'S': case 'T':
|
1418 |
0
| case 'U': case 'V': case 'W': case 'X':
|
1419 |
0
| case 'Y': case 'Z':
|
1420 |
| { |
1421 |
5
| matchRange('A','Z');
|
1422 |
5
| break;
|
1423 |
| } |
1424 |
0
| case '_':
|
1425 |
| { |
1426 |
0
| match('_');
|
1427 |
0
| break;
|
1428 |
| } |
1429 |
0
| case '$':
|
1430 |
| { |
1431 |
0
| match('$');
|
1432 |
0
| break;
|
1433 |
| } |
1434 |
0
| default:
|
1435 |
| { |
1436 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1437 |
| } |
1438 |
| } |
1439 |
| } |
1440 |
| { |
1441 |
391
| _loop290:
|
1442 |
| do { |
1443 |
3039
| switch ( LA(1)) {
|
1444 |
16
| case 'a': case 'b': case 'c': case 'd':
|
1445 |
5
| case 'e': case 'f': case 'g': case 'h':
|
1446 |
38
| case 'i': case 'j': case 'k': case 'l':
|
1447 |
5
| case 'm': case 'n': case 'o': case 'p':
|
1448 |
445
| case 'q': case 'r': case 's': case 't':
|
1449 |
21
| case 'u': case 'v': case 'w': case 'x':
|
1450 |
0
| case 'y': case 'z':
|
1451 |
| { |
1452 |
2416
| matchRange('a','z');
|
1453 |
2416
| break;
|
1454 |
| } |
1455 |
0
| case 'A': case 'B': case 'C': case 'D':
|
1456 |
4
| case 'E': case 'F': case 'G': case 'H':
|
1457 |
26
| case 'I': case 'J': case 'K': case 'L':
|
1458 |
0
| case 'M': case 'N': case 'O': case 'P':
|
1459 |
7
| case 'Q': case 'R': case 'S': case 'T':
|
1460 |
0
| case 'U': case 'V': case 'W': case 'X':
|
1461 |
0
| case 'Y': case 'Z':
|
1462 |
| { |
1463 |
208
| matchRange('A','Z');
|
1464 |
208
| break;
|
1465 |
| } |
1466 |
0
| case '_':
|
1467 |
| { |
1468 |
0
| match('_');
|
1469 |
0
| break;
|
1470 |
| } |
1471 |
0
| case '0': case '1': case '2': case '3':
|
1472 |
0
| case '4': case '5': case '6': case '7':
|
1473 |
0
| case '8': case '9':
|
1474 |
| { |
1475 |
24
| matchRange('0','9');
|
1476 |
24
| break;
|
1477 |
| } |
1478 |
0
| case '$':
|
1479 |
| { |
1480 |
0
| match('$');
|
1481 |
0
| break;
|
1482 |
| } |
1483 |
391
| default:
|
1484 |
| { |
1485 |
391
| break _loop290;
|
1486 |
| } |
1487 |
| } |
1488 |
| } while (true); |
1489 |
| } |
1490 |
391
| _ttype = testLiteralsTable(_ttype);
|
1491 |
391
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1492 |
391
| _token = makeToken(_ttype);
|
1493 |
391
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1494 |
| } |
1495 |
391
| _returnToken = _token;
|
1496 |
| } |
1497 |
| |
1498 |
171
| public final void mNUM_INT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1499 |
171
| int _ttype; Token _token=null; int _begin=text.length();
|
1500 |
171
| _ttype = NUM_INT;
|
1501 |
171
| int _saveIndex;
|
1502 |
171
| Token f1=null;
|
1503 |
171
| Token f2=null;
|
1504 |
171
| Token f3=null;
|
1505 |
171
| Token f4=null;
|
1506 |
171
| boolean isDecimal=false; Token t=null;
|
1507 |
| |
1508 |
171
| switch ( LA(1)) {
|
1509 |
167
| case '.':
|
1510 |
| { |
1511 |
167
| match('.');
|
1512 |
167
| _ttype = DOT;
|
1513 |
| { |
1514 |
167
| if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
1515 |
| { |
1516 |
0
| int _cnt294=0;
|
1517 |
0
| _loop294:
|
1518 |
| do { |
1519 |
0
| if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
1520 |
0
| matchRange('0','9');
|
1521 |
| } |
1522 |
| else { |
1523 |
0
| if ( _cnt294>=1 ) { break _loop294; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1524 |
| } |
1525 |
| |
1526 |
0
| _cnt294++;
|
1527 |
| } while (true); |
1528 |
| } |
1529 |
| { |
1530 |
0
| if ((LA(1)=='E'||LA(1)=='e')) {
|
1531 |
0
| mEXPONENT(false);
|
1532 |
| } |
1533 |
| else { |
1534 |
| } |
1535 |
| |
1536 |
| } |
1537 |
| { |
1538 |
0
| if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
|
1539 |
0
| mFLOAT_SUFFIX(true);
|
1540 |
0
| f1=_returnToken;
|
1541 |
0
| t=f1;
|
1542 |
| } |
1543 |
| else { |
1544 |
| } |
1545 |
| |
1546 |
| } |
1547 |
| |
1548 |
0
| if (t != null && t.getText().toUpperCase().indexOf('D')>=0) {
|
1549 |
0
| _ttype = NUM_DOUBLE;
|
1550 |
| } |
1551 |
| else { |
1552 |
0
| _ttype = NUM_FLOAT;
|
1553 |
| } |
1554 |
| |
1555 |
| } |
1556 |
| else { |
1557 |
| } |
1558 |
| |
1559 |
| } |
1560 |
167
| break;
|
1561 |
| } |
1562 |
1
| case '0': case '1': case '2': case '3':
|
1563 |
0
| case '4': case '5': case '6': case '7':
|
1564 |
0
| case '8': case '9':
|
1565 |
| { |
1566 |
| { |
1567 |
4
| switch ( LA(1)) {
|
1568 |
0
| case '0':
|
1569 |
| { |
1570 |
0
| match('0');
|
1571 |
0
| isDecimal = true;
|
1572 |
| { |
1573 |
0
| switch ( LA(1)) {
|
1574 |
0
| case 'X': case 'x':
|
1575 |
| { |
1576 |
| { |
1577 |
0
| switch ( LA(1)) {
|
1578 |
0
| case 'x':
|
1579 |
| { |
1580 |
0
| match('x');
|
1581 |
0
| break;
|
1582 |
| } |
1583 |
0
| case 'X':
|
1584 |
| { |
1585 |
0
| match('X');
|
1586 |
0
| break;
|
1587 |
| } |
1588 |
0
| default:
|
1589 |
| { |
1590 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1591 |
| } |
1592 |
| } |
1593 |
| } |
1594 |
| { |
1595 |
0
| int _cnt301=0;
|
1596 |
0
| _loop301:
|
1597 |
| do { |
1598 |
0
| if ((_tokenSet_4.member(LA(1))) && (true) && (true) && (true)) {
|
1599 |
0
| mHEX_DIGIT(false);
|
1600 |
| } |
1601 |
| else { |
1602 |
0
| if ( _cnt301>=1 ) { break _loop301; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1603 |
| } |
1604 |
| |
1605 |
0
| _cnt301++;
|
1606 |
| } while (true); |
1607 |
| } |
1608 |
0
| break;
|
1609 |
| } |
1610 |
0
| case '0': case '1': case '2': case '3':
|
1611 |
0
| case '4': case '5': case '6': case '7':
|
1612 |
| { |
1613 |
| { |
1614 |
0
| int _cnt303=0;
|
1615 |
0
| _loop303:
|
1616 |
| do { |
1617 |
0
| if (((LA(1) >= '0' && LA(1) <= '7'))) {
|
1618 |
0
| matchRange('0','7');
|
1619 |
| } |
1620 |
| else { |
1621 |
0
| if ( _cnt303>=1 ) { break _loop303; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1622 |
| } |
1623 |
| |
1624 |
0
| _cnt303++;
|
1625 |
| } while (true); |
1626 |
| } |
1627 |
0
| break;
|
1628 |
| } |
1629 |
0
| default:
|
1630 |
| { |
1631 |
| } |
1632 |
| } |
1633 |
| } |
1634 |
0
| break;
|
1635 |
| } |
1636 |
0
| case '1': case '2': case '3': case '4':
|
1637 |
0
| case '5': case '6': case '7': case '8':
|
1638 |
0
| case '9':
|
1639 |
| { |
1640 |
| { |
1641 |
4
| matchRange('1','9');
|
1642 |
| } |
1643 |
| { |
1644 |
4
| _loop306:
|
1645 |
| do { |
1646 |
4
| if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
1647 |
0
| matchRange('0','9');
|
1648 |
| } |
1649 |
| else { |
1650 |
4
| break _loop306;
|
1651 |
| } |
1652 |
| |
1653 |
| } while (true); |
1654 |
| } |
1655 |
4
| isDecimal=true;
|
1656 |
4
| break;
|
1657 |
| } |
1658 |
0
| default:
|
1659 |
| { |
1660 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1661 |
| } |
1662 |
| } |
1663 |
| } |
1664 |
| { |
1665 |
4
| if ((LA(1)=='L'||LA(1)=='l')) {
|
1666 |
| { |
1667 |
0
| switch ( LA(1)) {
|
1668 |
0
| case 'l':
|
1669 |
| { |
1670 |
0
| match('l');
|
1671 |
0
| break;
|
1672 |
| } |
1673 |
0
| case 'L':
|
1674 |
| { |
1675 |
0
| match('L');
|
1676 |
0
| break;
|
1677 |
| } |
1678 |
0
| default:
|
1679 |
| { |
1680 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1681 |
| } |
1682 |
| } |
1683 |
| } |
1684 |
0
| _ttype = NUM_LONG;
|
1685 |
| } |
1686 |
4
| else if (((LA(1)=='.'||LA(1)=='D'||LA(1)=='E'||LA(1)=='F'||LA(1)=='d'||LA(1)=='e'||LA(1)=='f'))&&(isDecimal)) {
|
1687 |
| { |
1688 |
0
| switch ( LA(1)) {
|
1689 |
0
| case '.':
|
1690 |
| { |
1691 |
0
| match('.');
|
1692 |
| { |
1693 |
0
| _loop311:
|
1694 |
| do { |
1695 |
0
| if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
1696 |
0
| matchRange('0','9');
|
1697 |
| } |
1698 |
| else { |
1699 |
0
| break _loop311;
|
1700 |
| } |
1701 |
| |
1702 |
| } while (true); |
1703 |
| } |
1704 |
| { |
1705 |
0
| if ((LA(1)=='E'||LA(1)=='e')) {
|
1706 |
0
| mEXPONENT(false);
|
1707 |
| } |
1708 |
| else { |
1709 |
| } |
1710 |
| |
1711 |
| } |
1712 |
| { |
1713 |
0
| if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
|
1714 |
0
| mFLOAT_SUFFIX(true);
|
1715 |
0
| f2=_returnToken;
|
1716 |
0
| t=f2;
|
1717 |
| } |
1718 |
| else { |
1719 |
| } |
1720 |
| |
1721 |
| } |
1722 |
0
| break;
|
1723 |
| } |
1724 |
0
| case 'E': case 'e':
|
1725 |
| { |
1726 |
0
| mEXPONENT(false);
|
1727 |
| { |
1728 |
0
| if ((LA(1)=='D'||LA(1)=='F'||LA(1)=='d'||LA(1)=='f')) {
|
1729 |
0
| mFLOAT_SUFFIX(true);
|
1730 |
0
| f3=_returnToken;
|
1731 |
0
| t=f3;
|
1732 |
| } |
1733 |
| else { |
1734 |
| } |
1735 |
| |
1736 |
| } |
1737 |
0
| break;
|
1738 |
| } |
1739 |
0
| case 'D': case 'F': case 'd': case 'f':
|
1740 |
| { |
1741 |
0
| mFLOAT_SUFFIX(true);
|
1742 |
0
| f4=_returnToken;
|
1743 |
0
| t=f4;
|
1744 |
0
| break;
|
1745 |
| } |
1746 |
0
| default:
|
1747 |
| { |
1748 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1749 |
| } |
1750 |
| } |
1751 |
| } |
1752 |
| |
1753 |
0
| if (t != null && t.getText().toUpperCase() .indexOf('D') >= 0) {
|
1754 |
0
| _ttype = NUM_DOUBLE;
|
1755 |
| } |
1756 |
| else { |
1757 |
0
| _ttype = NUM_FLOAT;
|
1758 |
| } |
1759 |
| |
1760 |
| } |
1761 |
| else { |
1762 |
| } |
1763 |
| |
1764 |
| } |
1765 |
4
| break;
|
1766 |
| } |
1767 |
0
| default:
|
1768 |
| { |
1769 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1770 |
| } |
1771 |
| } |
1772 |
171
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1773 |
171
| _token = makeToken(_ttype);
|
1774 |
171
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1775 |
| } |
1776 |
171
| _returnToken = _token;
|
1777 |
| } |
1778 |
| |
1779 |
0
| protected final void mEXPONENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1780 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1781 |
0
| _ttype = EXPONENT;
|
1782 |
0
| int _saveIndex;
|
1783 |
| |
1784 |
| { |
1785 |
0
| switch ( LA(1)) {
|
1786 |
0
| case 'e':
|
1787 |
| { |
1788 |
0
| match('e');
|
1789 |
0
| break;
|
1790 |
| } |
1791 |
0
| case 'E':
|
1792 |
| { |
1793 |
0
| match('E');
|
1794 |
0
| break;
|
1795 |
| } |
1796 |
0
| default:
|
1797 |
| { |
1798 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1799 |
| } |
1800 |
| } |
1801 |
| } |
1802 |
| { |
1803 |
0
| switch ( LA(1)) {
|
1804 |
0
| case '+':
|
1805 |
| { |
1806 |
0
| match('+');
|
1807 |
0
| break;
|
1808 |
| } |
1809 |
0
| case '-':
|
1810 |
| { |
1811 |
0
| match('-');
|
1812 |
0
| break;
|
1813 |
| } |
1814 |
0
| case '0': case '1': case '2': case '3':
|
1815 |
0
| case '4': case '5': case '6': case '7':
|
1816 |
0
| case '8': case '9':
|
1817 |
| { |
1818 |
0
| break;
|
1819 |
| } |
1820 |
0
| default:
|
1821 |
| { |
1822 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1823 |
| } |
1824 |
| } |
1825 |
| } |
1826 |
| { |
1827 |
0
| int _cnt319=0;
|
1828 |
0
| _loop319:
|
1829 |
| do { |
1830 |
0
| if (((LA(1) >= '0' && LA(1) <= '9'))) {
|
1831 |
0
| matchRange('0','9');
|
1832 |
| } |
1833 |
| else { |
1834 |
0
| if ( _cnt319>=1 ) { break _loop319; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
|
1835 |
| } |
1836 |
| |
1837 |
0
| _cnt319++;
|
1838 |
| } while (true); |
1839 |
| } |
1840 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1841 |
0
| _token = makeToken(_ttype);
|
1842 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1843 |
| } |
1844 |
0
| _returnToken = _token;
|
1845 |
| } |
1846 |
| |
1847 |
0
| protected final void mFLOAT_SUFFIX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {
|
1848 |
0
| int _ttype; Token _token=null; int _begin=text.length();
|
1849 |
0
| _ttype = FLOAT_SUFFIX;
|
1850 |
0
| int _saveIndex;
|
1851 |
| |
1852 |
0
| switch ( LA(1)) {
|
1853 |
0
| case 'f':
|
1854 |
| { |
1855 |
0
| match('f');
|
1856 |
0
| break;
|
1857 |
| } |
1858 |
0
| case 'F':
|
1859 |
| { |
1860 |
0
| match('F');
|
1861 |
0
| break;
|
1862 |
| } |
1863 |
0
| case 'd':
|
1864 |
| { |
1865 |
0
| match('d');
|
1866 |
0
| break;
|
1867 |
| } |
1868 |
0
| case 'D':
|
1869 |
| { |
1870 |
0
| match('D');
|
1871 |
0
| break;
|
1872 |
| } |
1873 |
0
| default:
|
1874 |
| { |
1875 |
0
| throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
|
1876 |
| } |
1877 |
| } |
1878 |
0
| if ( _createToken && _token==null && _ttype!=Token.SKIP ) {
|
1879 |
0
| _token = makeToken(_ttype);
|
1880 |
0
| _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin));
|
1881 |
| } |
1882 |
0
| _returnToken = _token;
|
1883 |
| } |
1884 |
| |
1885 |
| |
1886 |
4
| private static final long[] mk_tokenSet_0() {
|
1887 |
4
| long[] data = new long[2048];
|
1888 |
4
| data[0]=-9224L;
|
1889 |
4092
| for (int i = 1; i<=1023; i++) { data[i]=-1L; }
|
1890 |
4
| return data;
|
1891 |
| } |
1892 |
| public static final BitSet _tokenSet_0 = new BitSet(mk_tokenSet_0()); |
1893 |
4
| private static final long[] mk_tokenSet_1() {
|
1894 |
4
| long[] data = new long[2048];
|
1895 |
4
| data[0]=-4398046520328L;
|
1896 |
4092
| for (int i = 1; i<=1023; i++) { data[i]=-1L; }
|
1897 |
4
| return data;
|
1898 |
| } |
1899 |
| public static final BitSet _tokenSet_1 = new BitSet(mk_tokenSet_1()); |
1900 |
4
| private static final long[] mk_tokenSet_2() {
|
1901 |
4
| long[] data = new long[2048];
|
1902 |
4
| data[0]=-549755813896L;
|
1903 |
4
| data[1]=-268435457L;
|
1904 |
4088
| for (int i = 2; i<=1023; i++) { data[i]=-1L; }
|
1905 |
4
| return data;
|
1906 |
| } |
1907 |
| public static final BitSet _tokenSet_2 = new BitSet(mk_tokenSet_2()); |
1908 |
4
| private static final long[] mk_tokenSet_3() {
|
1909 |
4
| long[] data = new long[2048];
|
1910 |
4
| data[0]=-17179869192L;
|
1911 |
4
| data[1]=-268435457L;
|
1912 |
4088
| for (int i = 2; i<=1023; i++) { data[i]=-1L; }
|
1913 |
4
| return data;
|
1914 |
| } |
1915 |
| public static final BitSet _tokenSet_3 = new BitSet(mk_tokenSet_3()); |
1916 |
4
| private static final long[] mk_tokenSet_4() {
|
1917 |
4
| long[] data = new long[1025];
|
1918 |
4
| data[0]=287948901175001088L;
|
1919 |
4
| data[1]=541165879422L;
|
1920 |
4
| return data;
|
1921 |
| } |
1922 |
| public static final BitSet _tokenSet_4 = new BitSet(mk_tokenSet_4()); |
1923 |
| |
1924 |
| } |