001    /* This file was generated by SableCC (http://www.sablecc.org/). */
002    
003    package org.jdmp.core.script.jdmp.lexer;
004    
005    import java.io.*;
006    import org.jdmp.core.script.jdmp.node.*;
007    
008    @SuppressWarnings("nls")
009    public class Lexer
010    {
011        protected Token token;
012        protected State state = State.INITIAL;
013    
014        private PushbackReader in;
015        private int line;
016        private int pos;
017        private boolean cr;
018        private boolean eof;
019        private final StringBuffer text = new StringBuffer();
020    
021        @SuppressWarnings("unused")
022        protected void filter() throws LexerException, IOException
023        {
024            // Do nothing
025        }
026    
027        public Lexer(@SuppressWarnings("hiding") PushbackReader in)
028        {
029            this.in = in;
030        }
031     
032        public Token peek() throws LexerException, IOException
033        {
034            while(this.token == null)
035            {
036                this.token = getToken();
037                filter();
038            }
039    
040            return this.token;
041        }
042    
043        public Token next() throws LexerException, IOException
044        {
045            while(this.token == null)
046            {
047                this.token = getToken();
048                filter();
049            }
050    
051            Token result = this.token;
052            this.token = null;
053            return result;
054        }
055    
056        protected Token getToken() throws IOException, LexerException
057        {
058            int dfa_state = 0;
059    
060            int start_pos = this.pos;
061            int start_line = this.line;
062    
063            int accept_state = -1;
064            int accept_token = -1;
065            int accept_length = -1;
066            int accept_pos = -1;
067            int accept_line = -1;
068    
069            @SuppressWarnings("hiding") int[][][] gotoTable = Lexer.gotoTable[this.state.id()];
070            @SuppressWarnings("hiding") int[] accept = Lexer.accept[this.state.id()];
071            this.text.setLength(0);
072    
073            while(true)
074            {
075                int c = getChar();
076    
077                if(c != -1)
078                {
079                    switch(c)
080                    {
081                    case 10:
082                        if(this.cr)
083                        {
084                            this.cr = false;
085                        }
086                        else
087                        {
088                            this.line++;
089                            this.pos = 0;
090                        }
091                        break;
092                    case 13:
093                        this.line++;
094                        this.pos = 0;
095                        this.cr = true;
096                        break;
097                    default:
098                        this.pos++;
099                        this.cr = false;
100                        break;
101                    }
102    
103                    this.text.append((char) c);
104    
105                    do
106                    {
107                        int oldState = (dfa_state < -1) ? (-2 -dfa_state) : dfa_state;
108    
109                        dfa_state = -1;
110    
111                        int[][] tmp1 =  gotoTable[oldState];
112                        int low = 0;
113                        int high = tmp1.length - 1;
114    
115                        while(low <= high)
116                        {
117                            int middle = (low + high) / 2;
118                            int[] tmp2 = tmp1[middle];
119    
120                            if(c < tmp2[0])
121                            {
122                                high = middle - 1;
123                            }
124                            else if(c > tmp2[1])
125                            {
126                                low = middle + 1;
127                            }
128                            else
129                            {
130                                dfa_state = tmp2[2];
131                                break;
132                            }
133                        }
134                    }while(dfa_state < -1);
135                }
136                else
137                {
138                    dfa_state = -1;
139                }
140    
141                if(dfa_state >= 0)
142                {
143                    if(accept[dfa_state] != -1)
144                    {
145                        accept_state = dfa_state;
146                        accept_token = accept[dfa_state];
147                        accept_length = this.text.length();
148                        accept_pos = this.pos;
149                        accept_line = this.line;
150                    }
151                }
152                else
153                {
154                    if(accept_state != -1)
155                    {
156                        switch(accept_token)
157                        {
158                        case 0:
159                            {
160                                @SuppressWarnings("hiding") Token token = new0(
161                                    getText(accept_length),
162                                    start_line + 1,
163                                    start_pos + 1);
164                                pushBack(accept_length);
165                                this.pos = accept_pos;
166                                this.line = accept_line;
167                                return token;
168                            }
169                        case 1:
170                            {
171                                @SuppressWarnings("hiding") Token token = new1(
172                                    getText(accept_length),
173                                    start_line + 1,
174                                    start_pos + 1);
175                                pushBack(accept_length);
176                                this.pos = accept_pos;
177                                this.line = accept_line;
178                                return token;
179                            }
180                        case 2:
181                            {
182                                @SuppressWarnings("hiding") Token token = new2(
183                                    getText(accept_length),
184                                    start_line + 1,
185                                    start_pos + 1);
186                                pushBack(accept_length);
187                                this.pos = accept_pos;
188                                this.line = accept_line;
189                                return token;
190                            }
191                        case 3:
192                            {
193                                @SuppressWarnings("hiding") Token token = new3(
194                                    getText(accept_length),
195                                    start_line + 1,
196                                    start_pos + 1);
197                                pushBack(accept_length);
198                                this.pos = accept_pos;
199                                this.line = accept_line;
200                                return token;
201                            }
202                        case 4:
203                            {
204                                @SuppressWarnings("hiding") Token token = new4(
205                                    getText(accept_length),
206                                    start_line + 1,
207                                    start_pos + 1);
208                                pushBack(accept_length);
209                                this.pos = accept_pos;
210                                this.line = accept_line;
211                                return token;
212                            }
213                        case 5:
214                            {
215                                @SuppressWarnings("hiding") Token token = new5(
216                                    start_line + 1,
217                                    start_pos + 1);
218                                pushBack(accept_length);
219                                this.pos = accept_pos;
220                                this.line = accept_line;
221                                return token;
222                            }
223                        case 6:
224                            {
225                                @SuppressWarnings("hiding") Token token = new6(
226                                    start_line + 1,
227                                    start_pos + 1);
228                                pushBack(accept_length);
229                                this.pos = accept_pos;
230                                this.line = accept_line;
231                                return token;
232                            }
233                        case 7:
234                            {
235                                @SuppressWarnings("hiding") Token token = new7(
236                                    start_line + 1,
237                                    start_pos + 1);
238                                pushBack(accept_length);
239                                this.pos = accept_pos;
240                                this.line = accept_line;
241                                return token;
242                            }
243                        case 8:
244                            {
245                                @SuppressWarnings("hiding") Token token = new8(
246                                    start_line + 1,
247                                    start_pos + 1);
248                                pushBack(accept_length);
249                                this.pos = accept_pos;
250                                this.line = accept_line;
251                                return token;
252                            }
253                        case 9:
254                            {
255                                @SuppressWarnings("hiding") Token token = new9(
256                                    start_line + 1,
257                                    start_pos + 1);
258                                pushBack(accept_length);
259                                this.pos = accept_pos;
260                                this.line = accept_line;
261                                return token;
262                            }
263                        case 10:
264                            {
265                                @SuppressWarnings("hiding") Token token = new10(
266                                    start_line + 1,
267                                    start_pos + 1);
268                                pushBack(accept_length);
269                                this.pos = accept_pos;
270                                this.line = accept_line;
271                                return token;
272                            }
273                        case 11:
274                            {
275                                @SuppressWarnings("hiding") Token token = new11(
276                                    start_line + 1,
277                                    start_pos + 1);
278                                pushBack(accept_length);
279                                this.pos = accept_pos;
280                                this.line = accept_line;
281                                return token;
282                            }
283                        case 12:
284                            {
285                                @SuppressWarnings("hiding") Token token = new12(
286                                    start_line + 1,
287                                    start_pos + 1);
288                                pushBack(accept_length);
289                                this.pos = accept_pos;
290                                this.line = accept_line;
291                                return token;
292                            }
293                        case 13:
294                            {
295                                @SuppressWarnings("hiding") Token token = new13(
296                                    start_line + 1,
297                                    start_pos + 1);
298                                pushBack(accept_length);
299                                this.pos = accept_pos;
300                                this.line = accept_line;
301                                return token;
302                            }
303                        case 14:
304                            {
305                                @SuppressWarnings("hiding") Token token = new14(
306                                    start_line + 1,
307                                    start_pos + 1);
308                                pushBack(accept_length);
309                                this.pos = accept_pos;
310                                this.line = accept_line;
311                                return token;
312                            }
313                        case 15:
314                            {
315                                @SuppressWarnings("hiding") Token token = new15(
316                                    start_line + 1,
317                                    start_pos + 1);
318                                pushBack(accept_length);
319                                this.pos = accept_pos;
320                                this.line = accept_line;
321                                return token;
322                            }
323                        case 16:
324                            {
325                                @SuppressWarnings("hiding") Token token = new16(
326                                    start_line + 1,
327                                    start_pos + 1);
328                                pushBack(accept_length);
329                                this.pos = accept_pos;
330                                this.line = accept_line;
331                                return token;
332                            }
333                        case 17:
334                            {
335                                @SuppressWarnings("hiding") Token token = new17(
336                                    start_line + 1,
337                                    start_pos + 1);
338                                pushBack(accept_length);
339                                this.pos = accept_pos;
340                                this.line = accept_line;
341                                return token;
342                            }
343                        case 18:
344                            {
345                                @SuppressWarnings("hiding") Token token = new18(
346                                    start_line + 1,
347                                    start_pos + 1);
348                                pushBack(accept_length);
349                                this.pos = accept_pos;
350                                this.line = accept_line;
351                                return token;
352                            }
353                        case 19:
354                            {
355                                @SuppressWarnings("hiding") Token token = new19(
356                                    start_line + 1,
357                                    start_pos + 1);
358                                pushBack(accept_length);
359                                this.pos = accept_pos;
360                                this.line = accept_line;
361                                return token;
362                            }
363                        case 20:
364                            {
365                                @SuppressWarnings("hiding") Token token = new20(
366                                    start_line + 1,
367                                    start_pos + 1);
368                                pushBack(accept_length);
369                                this.pos = accept_pos;
370                                this.line = accept_line;
371                                return token;
372                            }
373                        case 21:
374                            {
375                                @SuppressWarnings("hiding") Token token = new21(
376                                    start_line + 1,
377                                    start_pos + 1);
378                                pushBack(accept_length);
379                                this.pos = accept_pos;
380                                this.line = accept_line;
381                                return token;
382                            }
383                        case 22:
384                            {
385                                @SuppressWarnings("hiding") Token token = new22(
386                                    start_line + 1,
387                                    start_pos + 1);
388                                pushBack(accept_length);
389                                this.pos = accept_pos;
390                                this.line = accept_line;
391                                return token;
392                            }
393                        case 23:
394                            {
395                                @SuppressWarnings("hiding") Token token = new23(
396                                    start_line + 1,
397                                    start_pos + 1);
398                                pushBack(accept_length);
399                                this.pos = accept_pos;
400                                this.line = accept_line;
401                                return token;
402                            }
403                        case 24:
404                            {
405                                @SuppressWarnings("hiding") Token token = new24(
406                                    start_line + 1,
407                                    start_pos + 1);
408                                pushBack(accept_length);
409                                this.pos = accept_pos;
410                                this.line = accept_line;
411                                return token;
412                            }
413                        case 25:
414                            {
415                                @SuppressWarnings("hiding") Token token = new25(
416                                    start_line + 1,
417                                    start_pos + 1);
418                                pushBack(accept_length);
419                                this.pos = accept_pos;
420                                this.line = accept_line;
421                                return token;
422                            }
423                        case 26:
424                            {
425                                @SuppressWarnings("hiding") Token token = new26(
426                                    start_line + 1,
427                                    start_pos + 1);
428                                pushBack(accept_length);
429                                this.pos = accept_pos;
430                                this.line = accept_line;
431                                return token;
432                            }
433                        case 27:
434                            {
435                                @SuppressWarnings("hiding") Token token = new27(
436                                    start_line + 1,
437                                    start_pos + 1);
438                                pushBack(accept_length);
439                                this.pos = accept_pos;
440                                this.line = accept_line;
441                                return token;
442                            }
443                        case 28:
444                            {
445                                @SuppressWarnings("hiding") Token token = new28(
446                                    start_line + 1,
447                                    start_pos + 1);
448                                pushBack(accept_length);
449                                this.pos = accept_pos;
450                                this.line = accept_line;
451                                return token;
452                            }
453                        case 29:
454                            {
455                                @SuppressWarnings("hiding") Token token = new29(
456                                    start_line + 1,
457                                    start_pos + 1);
458                                pushBack(accept_length);
459                                this.pos = accept_pos;
460                                this.line = accept_line;
461                                return token;
462                            }
463                        case 30:
464                            {
465                                @SuppressWarnings("hiding") Token token = new30(
466                                    start_line + 1,
467                                    start_pos + 1);
468                                pushBack(accept_length);
469                                this.pos = accept_pos;
470                                this.line = accept_line;
471                                return token;
472                            }
473                        case 31:
474                            {
475                                @SuppressWarnings("hiding") Token token = new31(
476                                    getText(accept_length),
477                                    start_line + 1,
478                                    start_pos + 1);
479                                pushBack(accept_length);
480                                this.pos = accept_pos;
481                                this.line = accept_line;
482                                return token;
483                            }
484                        case 32:
485                            {
486                                @SuppressWarnings("hiding") Token token = new32(
487                                    start_line + 1,
488                                    start_pos + 1);
489                                pushBack(accept_length);
490                                this.pos = accept_pos;
491                                this.line = accept_line;
492                                return token;
493                            }
494                        case 33:
495                            {
496                                @SuppressWarnings("hiding") Token token = new33(
497                                    start_line + 1,
498                                    start_pos + 1);
499                                pushBack(accept_length);
500                                this.pos = accept_pos;
501                                this.line = accept_line;
502                                return token;
503                            }
504                        case 34:
505                            {
506                                @SuppressWarnings("hiding") Token token = new34(
507                                    start_line + 1,
508                                    start_pos + 1);
509                                pushBack(accept_length);
510                                this.pos = accept_pos;
511                                this.line = accept_line;
512                                return token;
513                            }
514                        case 35:
515                            {
516                                @SuppressWarnings("hiding") Token token = new35(
517                                    start_line + 1,
518                                    start_pos + 1);
519                                pushBack(accept_length);
520                                this.pos = accept_pos;
521                                this.line = accept_line;
522                                return token;
523                            }
524                        case 36:
525                            {
526                                @SuppressWarnings("hiding") Token token = new36(
527                                    start_line + 1,
528                                    start_pos + 1);
529                                pushBack(accept_length);
530                                this.pos = accept_pos;
531                                this.line = accept_line;
532                                return token;
533                            }
534                        case 37:
535                            {
536                                @SuppressWarnings("hiding") Token token = new37(
537                                    start_line + 1,
538                                    start_pos + 1);
539                                pushBack(accept_length);
540                                this.pos = accept_pos;
541                                this.line = accept_line;
542                                return token;
543                            }
544                        case 38:
545                            {
546                                @SuppressWarnings("hiding") Token token = new38(
547                                    start_line + 1,
548                                    start_pos + 1);
549                                pushBack(accept_length);
550                                this.pos = accept_pos;
551                                this.line = accept_line;
552                                return token;
553                            }
554                        case 39:
555                            {
556                                @SuppressWarnings("hiding") Token token = new39(
557                                    start_line + 1,
558                                    start_pos + 1);
559                                pushBack(accept_length);
560                                this.pos = accept_pos;
561                                this.line = accept_line;
562                                return token;
563                            }
564                        case 40:
565                            {
566                                @SuppressWarnings("hiding") Token token = new40(
567                                    start_line + 1,
568                                    start_pos + 1);
569                                pushBack(accept_length);
570                                this.pos = accept_pos;
571                                this.line = accept_line;
572                                return token;
573                            }
574                        case 41:
575                            {
576                                @SuppressWarnings("hiding") Token token = new41(
577                                    start_line + 1,
578                                    start_pos + 1);
579                                pushBack(accept_length);
580                                this.pos = accept_pos;
581                                this.line = accept_line;
582                                return token;
583                            }
584                        case 42:
585                            {
586                                @SuppressWarnings("hiding") Token token = new42(
587                                    start_line + 1,
588                                    start_pos + 1);
589                                pushBack(accept_length);
590                                this.pos = accept_pos;
591                                this.line = accept_line;
592                                return token;
593                            }
594                        case 43:
595                            {
596                                @SuppressWarnings("hiding") Token token = new43(
597                                    start_line + 1,
598                                    start_pos + 1);
599                                pushBack(accept_length);
600                                this.pos = accept_pos;
601                                this.line = accept_line;
602                                return token;
603                            }
604                        case 44:
605                            {
606                                @SuppressWarnings("hiding") Token token = new44(
607                                    getText(accept_length),
608                                    start_line + 1,
609                                    start_pos + 1);
610                                pushBack(accept_length);
611                                this.pos = accept_pos;
612                                this.line = accept_line;
613                                return token;
614                            }
615                        case 45:
616                            {
617                                @SuppressWarnings("hiding") Token token = new45(
618                                    getText(accept_length),
619                                    start_line + 1,
620                                    start_pos + 1);
621                                pushBack(accept_length);
622                                this.pos = accept_pos;
623                                this.line = accept_line;
624                                return token;
625                            }
626                        case 46:
627                            {
628                                @SuppressWarnings("hiding") Token token = new46(
629                                    getText(accept_length),
630                                    start_line + 1,
631                                    start_pos + 1);
632                                pushBack(accept_length);
633                                this.pos = accept_pos;
634                                this.line = accept_line;
635                                return token;
636                            }
637                        case 47:
638                            {
639                                @SuppressWarnings("hiding") Token token = new47(
640                                    getText(accept_length),
641                                    start_line + 1,
642                                    start_pos + 1);
643                                pushBack(accept_length);
644                                this.pos = accept_pos;
645                                this.line = accept_line;
646                                return token;
647                            }
648                        }
649                    }
650                    else
651                    {
652                        if(this.text.length() > 0)
653                        {
654                            throw new LexerException(
655                                "[" + (start_line + 1) + "," + (start_pos + 1) + "]" +
656                                " Unknown token: " + this.text);
657                        }
658    
659                        @SuppressWarnings("hiding") EOF token = new EOF(
660                            start_line + 1,
661                            start_pos + 1);
662                        return token;
663                    }
664                }
665            }
666        }
667    
668        Token new0(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TWhiteSpace(text, line, pos); }
669        Token new1(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTraditionalComment(text, line, pos); }
670        Token new2(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDocumentationComment(text, line, pos); }
671        Token new3(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TEndOfLineComment(text, line, pos); }
672        Token new4(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMatlabComment(text, line, pos); }
673        Token new5(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTrue(line, pos); }
674        Token new6(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFalse(line, pos); }
675        Token new7(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNull(line, pos); }
676        Token new8(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLParenthese(line, pos); }
677        Token new9(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRParenthese(line, pos); }
678        Token new10(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLBrace(line, pos); }
679        Token new11(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRBrace(line, pos); }
680        Token new12(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLBracket(line, pos); }
681        Token new13(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRBracket(line, pos); }
682        Token new14(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TSemicolon(line, pos); }
683        Token new15(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TComma(line, pos); }
684        Token new16(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDot(line, pos); }
685        Token new17(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAssign(line, pos); }
686        Token new18(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TComplement(line, pos); }
687        Token new19(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TBitComplement(line, pos); }
688        Token new20(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TAnd(line, pos); }
689        Token new21(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TOr(line, pos); }
690        Token new22(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLogicalAnd(line, pos); }
691        Token new23(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLogicalOr(line, pos); }
692        Token new24(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TQuestion(line, pos); }
693        Token new25(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TColon(line, pos); }
694        Token new26(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TEq(line, pos); }
695        Token new27(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLt(line, pos); }
696        Token new28(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TGt(line, pos); }
697        Token new29(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLteq(line, pos); }
698        Token new30(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TGteq(line, pos); }
699        Token new31(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TNeq(text, line, pos); }
700        Token new32(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TPlus(line, pos); }
701        Token new33(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMinus(line, pos); }
702        Token new34(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TMult(line, pos); }
703        Token new35(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDotMult(line, pos); }
704        Token new36(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TRdiv(line, pos); }
705        Token new37(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDotRdiv(line, pos); }
706        Token new38(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TLdiv(line, pos); }
707        Token new39(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDotLdiv(line, pos); }
708        Token new40(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TTranspose(line, pos); }
709        Token new41(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDotTranspose(line, pos); }
710        Token new42(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TPower(line, pos); }
711        Token new43(@SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TDotPower(line, pos); }
712        Token new44(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TInteger(text, line, pos); }
713        Token new45(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TFloatingPoint(text, line, pos); }
714        Token new46(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TString(text, line, pos); }
715        Token new47(@SuppressWarnings("hiding") String text, @SuppressWarnings("hiding") int line, @SuppressWarnings("hiding") int pos) { return new TIdentifier(text, line, pos); }
716    
717        private int getChar() throws IOException
718        {
719            if(this.eof)
720            {
721                return -1;
722            }
723    
724            int result = this.in.read();
725    
726            if(result == -1)
727            {
728                this.eof = true;
729            }
730    
731            return result;
732        }
733    
734        private void pushBack(int acceptLength) throws IOException
735        {
736            int length = this.text.length();
737            for(int i = length - 1; i >= acceptLength; i--)
738            {
739                this.eof = false;
740    
741                this.in.unread(this.text.charAt(i));
742            }
743        }
744    
745        protected void unread(@SuppressWarnings("hiding") Token token) throws IOException
746        {
747            @SuppressWarnings("hiding") String text = token.getText();
748            int length = text.length();
749    
750            for(int i = length - 1; i >= 0; i--)
751            {
752                this.eof = false;
753    
754                this.in.unread(text.charAt(i));
755            }
756    
757            this.pos = token.getPos() - 1;
758            this.line = token.getLine() - 1;
759        }
760    
761        private String getText(int acceptLength)
762        {
763            StringBuffer s = new StringBuffer(acceptLength);
764            for(int i = 0; i < acceptLength; i++)
765            {
766                s.append(this.text.charAt(i));
767            }
768    
769            return s.toString();
770        }
771    
772        private static int[][][][] gotoTable;
773    /*  {
774            { // INITIAL
775                {{9, 9, 1}, {10, 10, 2}, {12, 12, 3}, {13, 13, 4}, {32, 32, 5}, {33, 33, 6}, {34, 34, 7}, {36, 36, 8}, {37, 37, 9}, {38, 38, 10}, {39, 39, 11}, {40, 40, 12}, {41, 41, 13}, {42, 42, 14}, {43, 43, 15}, {44, 44, 16}, {45, 45, 17}, {46, 46, 18}, {47, 47, 19}, {48, 48, 20}, {49, 57, 21}, {58, 58, 22}, {59, 59, 23}, {60, 60, 24}, {61, 61, 25}, {62, 62, 26}, {63, 63, 27}, {65, 72, 28}, {73, 73, 29}, {74, 77, 28}, {78, 78, 30}, {79, 90, 28}, {91, 91, 31}, {92, 92, 32}, {93, 93, 33}, {94, 94, 34}, {95, 95, 35}, {97, 101, 36}, {102, 102, 37}, {103, 104, 36}, {105, 105, 38}, {106, 109, 36}, {110, 110, 39}, {111, 115, 36}, {116, 116, 40}, {117, 122, 36}, {123, 123, 41}, {124, 124, 42}, {125, 125, 43}, {126, 126, 44}, {170, 170, 45}, {181, 181, 46}, {186, 186, 47}, {192, 214, 48}, {216, 246, 49}, {248, 501, 50}, {506, 535, 51}, {592, 680, 52}, {688, 696, 53}, {699, 705, 54}, {720, 721, 55}, {736, 740, 56}, {890, 890, 57}, {902, 902, 58}, {904, 906, 59}, {908, 908, 60}, {910, 929, 61}, {931, 974, 62}, {976, 982, 63}, {986, 986, 64}, {988, 988, 65}, {990, 990, 66}, {992, 992, 67}, {994, 1011, 68}, {1025, 1036, 69}, {1038, 1103, 70}, {1105, 1116, 71}, {1118, 1153, 72}, {1168, 1220, 73}, {1223, 1224, 74}, {1227, 1228, 75}, {1232, 1259, 76}, {1262, 1269, 77}, {1272, 1273, 78}, {1329, 1366, 79}, {1369, 1369, 80}, {1377, 1415, 81}, {1488, 1514, 82}, {1520, 1522, 83}, {1569, 1594, 84}, {1600, 1610, 85}, {1649, 1719, 86}, {1722, 1726, 87}, {1728, 1742, 88}, {1744, 1747, 89}, {1749, 1749, 90}, {1765, 1766, 91}, {2309, 2361, 92}, {2365, 2365, 93}, {2392, 2401, 94}, {2437, 2444, 95}, {2447, 2448, 96}, {2451, 2472, 97}, {2474, 2480, 98}, {2482, 2482, 99}, {2486, 2489, 100}, {2524, 2525, 101}, {2527, 2529, 102}, {2544, 2545, 103}, {2565, 2570, 104}, {2575, 2576, 105}, {2579, 2600, 106}, {2602, 2608, 107}, {2610, 2611, 108}, {2613, 2614, 109}, {2616, 2617, 110}, {2649, 2652, 111}, {2654, 2654, 112}, {2674, 2676, 113}, {2693, 2699, 114}, {2701, 2701, 115}, {2703, 2705, 116}, {2707, 2728, 117}, {2730, 2736, 118}, {2738, 2739, 119}, {2741, 2745, 120}, {2749, 2749, 121}, {2784, 2784, 122}, {2821, 2828, 123}, {2831, 2832, 124}, {2835, 2856, 125}, {2858, 2864, 126}, {2866, 2867, 127}, {2870, 2873, 128}, {2877, 2877, 129}, {2908, 2909, 130}, {2911, 2913, 131}, {2949, 2954, 132}, {2958, 2960, 133}, {2962, 2965, 134}, {2969, 2970, 135}, {2972, 2972, 136}, {2974, 2975, 137}, {2979, 2980, 138}, {2984, 2986, 139}, {2990, 2997, 140}, {2999, 3001, 141}, {3077, 3084, 142}, {3086, 3088, 143}, {3090, 3112, 144}, {3114, 3123, 145}, {3125, 3129, 146}, {3168, 3169, 147}, {3205, 3212, 148}, {3214, 3216, 149}, {3218, 3240, 150}, {3242, 3251, 151}, {3253, 3257, 152}, {3294, 3294, 153}, {3296, 3297, 154}, {3333, 3340, 155}, {3342, 3344, 156}, {3346, 3368, 157}, {3370, 3385, 158}, {3424, 3425, 159}, {3585, 3630, 160}, {3632, 3632, 161}, {3634, 3635, 162}, {3648, 3654, 163}, {3713, 3714, 164}, {3716, 3716, 165}, {3719, 3720, 166}, {3722, 3722, 167}, {3725, 3725, 168}, {3732, 3735, 169}, {3737, 3743, 170}, {3745, 3747, 171}, {3749, 3749, 172}, {3751, 3751, 173}, {3754, 3755, 174}, {3757, 3758, 175}, {3760, 3760, 176}, {3762, 3763, 177}, {3773, 3773, 178}, {3776, 3780, 179}, {3782, 3782, 180}, {3804, 3805, 181}, {3904, 3911, 182}, {3913, 3945, 183}, {4256, 4293, 184}, {4304, 4342, 185}, {4352, 4441, 186}, {4447, 4514, 187}, {4520, 4601, 188}, {7680, 7835, 189}, {7840, 7929, 190}, {7936, 7957, 191}, {7960, 7965, 192}, {7968, 8005, 193}, {8008, 8013, 194}, {8016, 8023, 195}, {8025, 8025, 196}, {8027, 8027, 197}, {8029, 8029, 198}, {8031, 8061, 199}, {8064, 8116, 200}, {8118, 8124, 201}, {8126, 8126, 202}, {8130, 8132, 203}, {8134, 8140, 204}, {8144, 8147, 205}, {8150, 8155, 206}, {8160, 8172, 207}, {8178, 8180, 208}, {8182, 8188, 209}, {8319, 8319, 210}, {8450, 8450, 211}, {8455, 8455, 212}, {8458, 8467, 213}, {8469, 8469, 214}, {8472, 8477, 215}, {8484, 8484, 216}, {8486, 8486, 217}, {8488, 8488, 218}, {8490, 8497, 219}, {8499, 8504, 220}, {12293, 12293, 221}, {12337, 12341, 222}, {12353, 12436, 223}, {12443, 12446, 224}, {12449, 12538, 225}, {12540, 12542, 226}, {12549, 12588, 227}, {12593, 12686, 228}, {19968, 40869, 229}, {44032, 55203, 230}, {63744, 64045, 231}, {64256, 64262, 232}, {64275, 64279, 233}, {64287, 64296, 234}, {64298, 64310, 235}, {64312, 64316, 236}, {64318, 64318, 237}, {64320, 64321, 238}, {64323, 64324, 239}, {64326, 64433, 240}, {64467, 64829, 241}, {64848, 64911, 242}, {64914, 64967, 243}, {65008, 65019, 244}, {65136, 65138, 245}, {65140, 65140, 246}, {65142, 65276, 247}, {65313, 65338, 248}, {65345, 65370, 249}, {65382, 65470, 250}, {65474, 65479, 251}, {65482, 65487, 252}, {65490, 65495, 253}, {65498, 65500, 254}, },
776                {{9, 32, -2}, },
777                {{9, 32, -2}, },
778                {{9, 32, -2}, },
779                {{9, 9, 1}, {10, 10, 255}, {12, 32, -2}, },
780                {{9, 32, -2}, },
781                {{61, 61, 256}, },
782                {{0, 9, 257}, {11, 12, 257}, {14, 33, 257}, {34, 34, 258}, {35, 91, 257}, {92, 92, 259}, {93, 65535, 257}, },
783                {{36, 36, 260}, {48, 57, 261}, {65, 90, 262}, {95, 95, 263}, {97, 122, 264}, {170, 170, 265}, {181, 181, 266}, {186, 186, 267}, {192, 214, 268}, {216, 246, 269}, {248, 501, 270}, {506, 535, 271}, {592, 680, 272}, {688, 696, 273}, {699, 705, 274}, {720, 721, 275}, {736, 740, 276}, {890, 890, 277}, {902, 902, 278}, {904, 906, 279}, {908, 908, 280}, {910, 929, 281}, {931, 974, 282}, {976, 982, 283}, {986, 986, 284}, {988, 988, 285}, {990, 990, 286}, {992, 992, 287}, {994, 1011, 288}, {1025, 1036, 289}, {1038, 1103, 290}, {1105, 1116, 291}, {1118, 1153, 292}, {1168, 1220, 293}, {1223, 1224, 294}, {1227, 1228, 295}, {1232, 1259, 296}, {1262, 1269, 297}, {1272, 1273, 298}, {1329, 1366, 299}, {1369, 1369, 300}, {1377, 1415, 301}, {1488, 1514, 302}, {1520, 1522, 303}, {1569, 1594, 304}, {1600, 1610, 305}, {1632, 1641, 306}, {1649, 1719, 307}, {1722, 1726, 308}, {1728, 1742, 309}, {1744, 1747, 310}, {1749, 1749, 311}, {1765, 1766, 312}, {1776, 1785, 313}, {2309, 2361, 314}, {2365, 2365, 315}, {2392, 2401, 316}, {2406, 2415, 317}, {2437, 2444, 318}, {2447, 2448, 319}, {2451, 2472, 320}, {2474, 2480, 321}, {2482, 2482, 322}, {2486, 2489, 323}, {2524, 2525, 324}, {2527, 2529, 325}, {2534, 2543, 326}, {2544, 2545, 327}, {2565, 2570, 328}, {2575, 2576, 329}, {2579, 2600, 330}, {2602, 2608, 331}, {2610, 2611, 332}, {2613, 2614, 333}, {2616, 2617, 334}, {2649, 2652, 335}, {2654, 2654, 336}, {2662, 2671, 337}, {2674, 2676, 338}, {2693, 2699, 339}, {2701, 2701, 340}, {2703, 2705, 341}, {2707, 2728, 342}, {2730, 2736, 343}, {2738, 2739, 344}, {2741, 2745, 345}, {2749, 2749, 346}, {2784, 2784, 347}, {2790, 2799, 348}, {2821, 2828, 349}, {2831, 2832, 350}, {2835, 2856, 351}, {2858, 2864, 352}, {2866, 2867, 353}, {2870, 2873, 354}, {2877, 2877, 355}, {2908, 2909, 356}, {2911, 2913, 357}, {2918, 2927, 358}, {2949, 2954, 359}, {2958, 2960, 360}, {2962, 2965, 361}, {2969, 2970, 362}, {2972, 2972, 363}, {2974, 2975, 364}, {2979, 2980, 365}, {2984, 2986, 366}, {2990, 2997, 367}, {2999, 3001, 368}, {3047, 3055, 369}, {3077, 3084, 370}, {3086, 3088, 371}, {3090, 3112, 372}, {3114, 3123, 373}, {3125, 3129, 374}, {3168, 3169, 375}, {3174, 3183, 376}, {3205, 3212, 377}, {3214, 3216, 378}, {3218, 3240, 379}, {3242, 3251, 380}, {3253, 3257, 381}, {3294, 3294, 382}, {3296, 3297, 383}, {3302, 3311, 384}, {3333, 3340, 385}, {3342, 3344, 386}, {3346, 3368, 387}, {3370, 3385, 388}, {3424, 3425, 389}, {3430, 3439, 390}, {3585, 3630, 391}, {3632, 3632, 392}, {3634, 3635, 393}, {3648, 3654, 394}, {3664, 3673, 395}, {3713, 3714, 396}, {3716, 3716, 397}, {3719, 3720, 398}, {3722, 3722, 399}, {3725, 3725, 400}, {3732, 3735, 401}, {3737, 3743, 402}, {3745, 3747, 403}, {3749, 3749, 404}, {3751, 3751, 405}, {3754, 3755, 406}, {3757, 3758, 407}, {3760, 3760, 408}, {3762, 3763, 409}, {3773, 3773, 410}, {3776, 3780, 411}, {3782, 3782, 412}, {3792, 3801, 413}, {3804, 3805, 414}, {3872, 3881, 415}, {3904, 3911, 416}, {3913, 3945, 417}, {4256, 4293, 418}, {4304, 4342, 419}, {4352, 4441, 420}, {4447, 4514, 421}, {4520, 4601, 422}, {7680, 7835, 423}, {7840, 7929, 424}, {7936, 7957, 425}, {7960, 7965, 426}, {7968, 8005, 427}, {8008, 8013, 428}, {8016, 8023, 429}, {8025, 8025, 430}, {8027, 8027, 431}, {8029, 8029, 432}, {8031, 8061, 433}, {8064, 8116, 434}, {8118, 8124, 435}, {8126, 8126, 436}, {8130, 8132, 437}, {8134, 8140, 438}, {8144, 8147, 439}, {8150, 8155, 440}, {8160, 8172, 441}, {8178, 8180, 442}, {8182, 8188, 443}, {8319, 8319, 444}, {8450, 8450, 445}, {8455, 8455, 446}, {8458, 8467, 447}, {8469, 8469, 448}, {8472, 8477, 449}, {8484, 8484, 450}, {8486, 8486, 451}, {8488, 8488, 452}, {8490, 8497, 453}, {8499, 8504, 454}, {12293, 12293, 455}, {12337, 12341, 456}, {12353, 12436, 457}, {12443, 12446, 458}, {12449, 12538, 459}, {12540, 12542, 460}, {12549, 12588, 461}, {12593, 12686, 462}, {19968, 40869, 463}, {44032, 55203, 464}, {63744, 64045, 465}, {64256, 64262, 466}, {64275, 64279, 467}, {64287, 64296, 468}, {64298, 64310, 469}, {64312, 64316, 470}, {64318, 64318, 471}, {64320, 64321, 472}, {64323, 64324, 473}, {64326, 64433, 474}, {64467, 64829, 475}, {64848, 64911, 476}, {64914, 64967, 477}, {65008, 65019, 478}, {65136, 65138, 479}, {65140, 65140, 480}, {65142, 65276, 481}, {65296, 65305, 482}, {65313, 65338, 483}, {65345, 65370, 484}, {65382, 65470, 485}, {65474, 65479, 486}, {65482, 65487, 487}, {65490, 65495, 488}, {65498, 65500, 489}, },
784                {{0, 9, 490}, {10, 10, 491}, {11, 12, 490}, {13, 13, 492}, {14, 65535, 490}, },
785                {{38, 38, 493}, },
786                {},
787                {},
788                {},
789                {},
790                {},
791                {},
792                {{73, 73, 494}, {105, 105, 495}, },
793                {{42, 42, 496}, {47, 47, 497}, {48, 57, 498}, {92, 92, 499}, {94, 94, 500}, },
794                {{42, 42, 501}, {47, 47, 502}, },
795                {{46, 46, 503}, {48, 57, 504}, {68, 68, 505}, {69, 69, 506}, {70, 70, 507}, {76, 76, 508}, {100, 100, 509}, {101, 101, 510}, {102, 102, 511}, {108, 108, 512}, },
796                {{46, 46, 503}, {48, 57, 513}, {68, 108, -22}, },
797                {},
798                {},
799                {{61, 61, 514}, },
800                {{61, 61, 515}, },
801                {{61, 61, 516}, },
802                {},
803                {{36, 65500, -10}, },
804                {{36, 95, -10}, {97, 109, 264}, {110, 110, 517}, {111, 122, 264}, {170, 65500, -10}, },
805                {{36, 95, -10}, {97, 97, 518}, {98, 122, 264}, {170, 65500, -10}, },
806                {},
807                {},
808                {},
809                {},
810                {{36, 65500, -10}, },
811                {{36, 65500, -10}, },
812                {{36, 95, -10}, {97, 97, 519}, {98, 65500, -32}, },
813                {{36, 109, -31}, {110, 110, 520}, {111, 65500, -31}, },
814                {{36, 95, -10}, {97, 97, 521}, {98, 116, 264}, {117, 117, 522}, {118, 122, 264}, {170, 65500, -10}, },
815                {{36, 95, -10}, {97, 113, 264}, {114, 114, 523}, {115, 122, 264}, {170, 65500, -10}, },
816                {},
817                {{124, 124, 524}, },
818                {},
819                {{61, 61, 525}, },
820                {{36, 65500, -10}, },
821                {{36, 65500, -10}, },
822                {{36, 65500, -10}, },
823                {{36, 65500, -10}, },
824                {{36, 65500, -10}, },
825                {{36, 65500, -10}, },
826                {{36, 65500, -10}, },
827                {{36, 65500, -10}, },
828                {{36, 65500, -10}, },
829                {{36, 65500, -10}, },
830                {{36, 65500, -10}, },
831                {{36, 65500, -10}, },
832                {{36, 65500, -10}, },
833                {{36, 65500, -10}, },
834                {{36, 65500, -10}, },
835                {{36, 65500, -10}, },
836                {{36, 65500, -10}, },
837                {{36, 65500, -10}, },
838                {{36, 65500, -10}, },
839                {{36, 65500, -10}, },
840                {{36, 65500, -10}, },
841                {{36, 65500, -10}, },
842                {{36, 65500, -10}, },
843                {{36, 65500, -10}, },
844                {{36, 65500, -10}, },
845                {{36, 65500, -10}, },
846                {{36, 65500, -10}, },
847                {{36, 65500, -10}, },
848                {{36, 65500, -10}, },
849                {{36, 65500, -10}, },
850                {{36, 65500, -10}, },
851                {{36, 65500, -10}, },
852                {{36, 65500, -10}, },
853                {{36, 65500, -10}, },
854                {{36, 65500, -10}, },
855                {{36, 65500, -10}, },
856                {{36, 65500, -10}, },
857                {{36, 65500, -10}, },
858                {{36, 65500, -10}, },
859                {{36, 65500, -10}, },
860                {{36, 65500, -10}, },
861                {{36, 65500, -10}, },
862                {{36, 65500, -10}, },
863                {{36, 65500, -10}, },
864                {{36, 65500, -10}, },
865                {{36, 65500, -10}, },
866                {{36, 65500, -10}, },
867                {{36, 65500, -10}, },
868                {{36, 65500, -10}, },
869                {{36, 65500, -10}, },
870                {{36, 65500, -10}, },
871                {{36, 65500, -10}, },
872                {{36, 65500, -10}, },
873                {{36, 65500, -10}, },
874                {{36, 65500, -10}, },
875                {{36, 65500, -10}, },
876                {{36, 65500, -10}, },
877                {{36, 65500, -10}, },
878                {{36, 65500, -10}, },
879                {{36, 65500, -10}, },
880                {{36, 65500, -10}, },
881                {{36, 65500, -10}, },
882                {{36, 65500, -10}, },
883                {{36, 65500, -10}, },
884                {{36, 65500, -10}, },
885                {{36, 65500, -10}, },
886                {{36, 65500, -10}, },
887                {{36, 65500, -10}, },
888                {{36, 65500, -10}, },
889                {{36, 65500, -10}, },
890                {{36, 65500, -10}, },
891                {{36, 65500, -10}, },
892                {{36, 65500, -10}, },
893                {{36, 65500, -10}, },
894                {{36, 65500, -10}, },
895                {{36, 65500, -10}, },
896                {{36, 65500, -10}, },
897                {{36, 65500, -10}, },
898                {{36, 65500, -10}, },
899                {{36, 65500, -10}, },
900                {{36, 65500, -10}, },
901                {{36, 65500, -10}, },
902                {{36, 65500, -10}, },
903                {{36, 65500, -10}, },
904                {{36, 65500, -10}, },
905                {{36, 65500, -10}, },
906                {{36, 65500, -10}, },
907                {{36, 65500, -10}, },
908                {{36, 65500, -10}, },
909                {{36, 65500, -10}, },
910                {{36, 65500, -10}, },
911                {{36, 65500, -10}, },
912                {{36, 65500, -10}, },
913                {{36, 65500, -10}, },
914                {{36, 65500, -10}, },
915                {{36, 65500, -10}, },
916                {{36, 65500, -10}, },
917                {{36, 65500, -10}, },
918                {{36, 65500, -10}, },
919                {{36, 65500, -10}, },
920                {{36, 65500, -10}, },
921                {{36, 65500, -10}, },
922                {{36, 65500, -10}, },
923                {{36, 65500, -10}, },
924                {{36, 65500, -10}, },
925                {{36, 65500, -10}, },
926                {{36, 65500, -10}, },
927                {{36, 65500, -10}, },
928                {{36, 65500, -10}, },
929                {{36, 65500, -10}, },
930                {{36, 65500, -10}, },
931                {{36, 65500, -10}, },
932                {{36, 65500, -10}, },
933                {{36, 65500, -10}, },
934                {{36, 65500, -10}, },
935                {{36, 65500, -10}, },
936                {{36, 65500, -10}, },
937                {{36, 65500, -10}, },
938                {{36, 65500, -10}, },
939                {{36, 65500, -10}, },
940                {{36, 65500, -10}, },
941                {{36, 65500, -10}, },
942                {{36, 65500, -10}, },
943                {{36, 65500, -10}, },
944                {{36, 65500, -10}, },
945                {{36, 65500, -10}, },
946                {{36, 65500, -10}, },
947                {{36, 65500, -10}, },
948                {{36, 65500, -10}, },
949                {{36, 65500, -10}, },
950                {{36, 65500, -10}, },
951                {{36, 65500, -10}, },
952                {{36, 65500, -10}, },
953                {{36, 65500, -10}, },
954                {{36, 65500, -10}, },
955                {{36, 65500, -10}, },
956                {{36, 65500, -10}, },
957                {{36, 65500, -10}, },
958                {{36, 65500, -10}, },
959                {{36, 65500, -10}, },
960                {{36, 65500, -10}, },
961                {{36, 65500, -10}, },
962                {{36, 65500, -10}, },
963                {{36, 65500, -10}, },
964                {{36, 65500, -10}, },
965                {{36, 65500, -10}, },
966                {{36, 65500, -10}, },
967                {{36, 65500, -10}, },
968                {{36, 65500, -10}, },
969                {{36, 65500, -10}, },
970                {{36, 65500, -10}, },
971                {{36, 65500, -10}, },
972                {{36, 65500, -10}, },
973                {{36, 65500, -10}, },
974                {{36, 65500, -10}, },
975                {{36, 65500, -10}, },
976                {{36, 65500, -10}, },
977                {{36, 65500, -10}, },
978                {{36, 65500, -10}, },
979                {{36, 65500, -10}, },
980                {{36, 65500, -10}, },
981                {{36, 65500, -10}, },
982                {{36, 65500, -10}, },
983                {{36, 65500, -10}, },
984                {{36, 65500, -10}, },
985                {{36, 65500, -10}, },
986                {{36, 65500, -10}, },
987                {{36, 65500, -10}, },
988                {{36, 65500, -10}, },
989                {{36, 65500, -10}, },
990                {{36, 65500, -10}, },
991                {{36, 65500, -10}, },
992                {{36, 65500, -10}, },
993                {{36, 65500, -10}, },
994                {{36, 65500, -10}, },
995                {{36, 65500, -10}, },
996                {{36, 65500, -10}, },
997                {{36, 65500, -10}, },
998                {{36, 65500, -10}, },
999                {{36, 65500, -10}, },
1000                {{36, 65500, -10}, },
1001                {{36, 65500, -10}, },
1002                {{36, 65500, -10}, },
1003                {{36, 65500, -10}, },
1004                {{36, 65500, -10}, },
1005                {{36, 65500, -10}, },
1006                {{36, 65500, -10}, },
1007                {{36, 65500, -10}, },
1008                {{36, 65500, -10}, },
1009                {{36, 65500, -10}, },
1010                {{36, 65500, -10}, },
1011                {{36, 65500, -10}, },
1012                {{36, 65500, -10}, },
1013                {{36, 65500, -10}, },
1014                {{36, 65500, -10}, },
1015                {{36, 65500, -10}, },
1016                {{36, 65500, -10}, },
1017                {{36, 65500, -10}, },
1018                {{36, 65500, -10}, },
1019                {{36, 65500, -10}, },
1020                {{36, 65500, -10}, },
1021                {{36, 65500, -10}, },
1022                {{36, 65500, -10}, },
1023                {{36, 65500, -10}, },
1024                {{36, 65500, -10}, },
1025                {{36, 65500, -10}, },
1026                {{36, 65500, -10}, },
1027                {{36, 65500, -10}, },
1028                {{36, 65500, -10}, },
1029                {{36, 65500, -10}, },
1030                {{9, 32, -2}, },
1031                {},
1032                {{0, 65535, -9}, },
1033                {},
1034                {{34, 34, 526}, {39, 39, 527}, {48, 51, 528}, {52, 55, 529}, {92, 92, 530}, {98, 98, 531}, {102, 102, 532}, {110, 110, 533}, {114, 114, 534}, {116, 116, 535}, },
1035                {{36, 65500, -10}, },
1036                {{36, 65500, -10}, },
1037                {{36, 65500, -10}, },
1038                {{36, 65500, -10}, },
1039                {{36, 65500, -10}, },
1040                {{36, 65500, -10}, },
1041                {{36, 65500, -10}, },
1042                {{36, 65500, -10}, },
1043                {{36, 65500, -10}, },
1044                {{36, 65500, -10}, },
1045                {{36, 65500, -10}, },
1046                {{36, 65500, -10}, },
1047                {{36, 65500, -10}, },
1048                {{36, 65500, -10}, },
1049                {{36, 65500, -10}, },
1050                {{36, 65500, -10}, },
1051                {{36, 65500, -10}, },
1052                {{36, 65500, -10}, },
1053                {{36, 65500, -10}, },
1054                {{36, 65500, -10}, },
1055                {{36, 65500, -10}, },
1056                {{36, 65500, -10}, },
1057                {{36, 65500, -10}, },
1058                {{36, 65500, -10}, },
1059                {{36, 65500, -10}, },
1060                {{36, 65500, -10}, },
1061                {{36, 65500, -10}, },
1062                {{36, 65500, -10}, },
1063                {{36, 65500, -10}, },
1064                {{36, 65500, -10}, },
1065                {{36, 65500, -10}, },
1066                {{36, 65500, -10}, },
1067                {{36, 65500, -10}, },
1068                {{36, 65500, -10}, },
1069                {{36, 65500, -10}, },
1070                {{36, 65500, -10}, },
1071                {{36, 65500, -10}, },
1072                {{36, 65500, -10}, },
1073                {{36, 65500, -10}, },
1074                {{36, 65500, -10}, },
1075                {{36, 65500, -10}, },
1076                {{36, 65500, -10}, },
1077                {{36, 65500, -10}, },
1078                {{36, 65500, -10}, },
1079                {{36, 65500, -10}, },
1080                {{36, 65500, -10}, },
1081                {{36, 65500, -10}, },
1082                {{36, 65500, -10}, },
1083                {{36, 65500, -10}, },
1084                {{36, 65500, -10}, },
1085                {{36, 65500, -10}, },
1086                {{36, 65500, -10}, },
1087                {{36, 65500, -10}, },
1088                {{36, 65500, -10}, },
1089                {{36, 65500, -10}, },
1090                {{36, 65500, -10}, },
1091                {{36, 65500, -10}, },
1092                {{36, 65500, -10}, },
1093                {{36, 65500, -10}, },
1094                {{36, 65500, -10}, },
1095                {{36, 65500, -10}, },
1096                {{36, 65500, -10}, },
1097                {{36, 65500, -10}, },
1098                {{36, 65500, -10}, },
1099                {{36, 65500, -10}, },
1100                {{36, 65500, -10}, },
1101                {{36, 65500, -10}, },
1102                {{36, 65500, -10}, },
1103                {{36, 65500, -10}, },
1104                {{36, 65500, -10}, },
1105                {{36, 65500, -10}, },
1106                {{36, 65500, -10}, },
1107                {{36, 65500, -10}, },
1108                {{36, 65500, -10}, },
1109                {{36, 65500, -10}, },
1110                {{36, 65500, -10}, },
1111                {{36, 65500, -10}, },
1112                {{36, 65500, -10}, },
1113                {{36, 65500, -10}, },
1114                {{36, 65500, -10}, },
1115                {{36, 65500, -10}, },
1116                {{36, 65500, -10}, },
1117                {{36, 65500, -10}, },
1118                {{36, 65500, -10}, },
1119                {{36, 65500, -10}, },
1120                {{36, 65500, -10}, },
1121                {{36, 65500, -10}, },
1122                {{36, 65500, -10}, },
1123                {{36, 65500, -10}, },
1124                {{36, 65500, -10}, },
1125                {{36, 65500, -10}, },
1126                {{36, 65500, -10}, },
1127                {{36, 65500, -10}, },
1128                {{36, 65500, -10}, },
1129                {{36, 65500, -10}, },
1130                {{36, 65500, -10}, },
1131                {{36, 65500, -10}, },
1132                {{36, 65500, -10}, },
1133                {{36, 65500, -10}, },
1134                {{36, 65500, -10}, },
1135                {{36, 65500, -10}, },
1136                {{36, 65500, -10}, },
1137                {{36, 65500, -10}, },
1138                {{36, 65500, -10}, },
1139                {{36, 65500, -10}, },
1140                {{36, 65500, -10}, },
1141                {{36, 65500, -10}, },
1142                {{36, 65500, -10}, },
1143                {{36, 65500, -10}, },
1144                {{36, 65500, -10}, },
1145                {{36, 65500, -10}, },
1146                {{36, 65500, -10}, },
1147                {{36, 65500, -10}, },
1148                {{36, 65500, -10}, },
1149                {{36, 65500, -10}, },
1150                {{36, 65500, -10}, },
1151                {{36, 65500, -10}, },
1152                {{36, 65500, -10}, },
1153                {{36, 65500, -10}, },
1154                {{36, 65500, -10}, },
1155                {{36, 65500, -10}, },
1156                {{36, 65500, -10}, },
1157                {{36, 65500, -10}, },
1158                {{36, 65500, -10}, },
1159                {{36, 65500, -10}, },
1160                {{36, 65500, -10}, },
1161                {{36, 65500, -10}, },
1162                {{36, 65500, -10}, },
1163                {{36, 65500, -10}, },
1164                {{36, 65500, -10}, },
1165                {{36, 65500, -10}, },
1166                {{36, 65500, -10}, },
1167                {{36, 65500, -10}, },
1168                {{36, 65500, -10}, },
1169                {{36, 65500, -10}, },
1170                {{36, 65500, -10}, },
1171                {{36, 65500, -10}, },
1172                {{36, 65500, -10}, },
1173                {{36, 65500, -10}, },
1174                {{36, 65500, -10}, },
1175                {{36, 65500, -10}, },
1176                {{36, 65500, -10}, },
1177                {{36, 65500, -10}, },
1178                {{36, 65500, -10}, },
1179                {{36, 65500, -10}, },
1180                {{36, 65500, -10}, },
1181                {{36, 65500, -10}, },
1182                {{36, 65500, -10}, },
1183                {{36, 65500, -10}, },
1184                {{36, 65500, -10}, },
1185                {{36, 65500, -10}, },
1186                {{36, 65500, -10}, },
1187                {{36, 65500, -10}, },
1188                {{36, 65500, -10}, },
1189                {{36, 65500, -10}, },
1190                {{36, 65500, -10}, },
1191                {{36, 65500, -10}, },
1192                {{36, 65500, -10}, },
1193                {{36, 65500, -10}, },
1194                {{36, 65500, -10}, },
1195                {{36, 65500, -10}, },
1196                {{36, 65500, -10}, },
1197                {{36, 65500, -10}, },
1198                {{36, 65500, -10}, },
1199                {{36, 65500, -10}, },
1200                {{36, 65500, -10}, },
1201                {{36, 65500, -10}, },
1202                {{36, 65500, -10}, },
1203                {{36, 65500, -10}, },
1204                {{36, 65500, -10}, },
1205                {{36, 65500, -10}, },
1206                {{36, 65500, -10}, },
1207                {{36, 65500, -10}, },
1208                {{36, 65500, -10}, },
1209                {{36, 65500, -10}, },
1210                {{36, 65500, -10}, },
1211                {{36, 65500, -10}, },
1212                {{36, 65500, -10}, },
1213                {{36, 65500, -10}, },
1214                {{36, 65500, -10}, },
1215                {{36, 65500, -10}, },
1216                {{36, 65500, -10}, },
1217                {{36, 65500, -10}, },
1218                {{36, 65500, -10}, },
1219                {{36, 65500, -10}, },
1220                {{36, 65500, -10}, },
1221                {{36, 65500, -10}, },
1222                {{36, 65500, -10}, },
1223                {{36, 65500, -10}, },
1224                {{36, 65500, -10}, },
1225                {{36, 65500, -10}, },
1226                {{36, 65500, -10}, },
1227                {{36, 65500, -10}, },
1228                {{36, 65500, -10}, },
1229                {{36, 65500, -10}, },
1230                {{36, 65500, -10}, },
1231                {{36, 65500, -10}, },
1232                {{36, 65500, -10}, },
1233                {{36, 65500, -10}, },
1234                {{36, 65500, -10}, },
1235                {{36, 65500, -10}, },
1236                {{36, 65500, -10}, },
1237                {{36, 65500, -10}, },
1238                {{36, 65500, -10}, },
1239                {{36, 65500, -10}, },
1240                {{36, 65500, -10}, },
1241                {{36, 65500, -10}, },
1242                {{36, 65500, -10}, },
1243                {{36, 65500, -10}, },
1244                {{36, 65500, -10}, },
1245                {{36, 65500, -10}, },
1246                {{36, 65500, -10}, },
1247                {{36, 65500, -10}, },
1248                {{36, 65500, -10}, },
1249                {{36, 65500, -10}, },
1250                {{36, 65500, -10}, },
1251                {{36, 65500, -10}, },
1252                {{36, 65500, -10}, },
1253                {{36, 65500, -10}, },
1254                {{36, 65500, -10}, },
1255                {{36, 65500, -10}, },
1256                {{36, 65500, -10}, },
1257                {{36, 65500, -10}, },
1258                {{36, 65500, -10}, },
1259                {{36, 65500, -10}, },
1260                {{36, 65500, -10}, },
1261                {{36, 65500, -10}, },
1262                {{36, 65500, -10}, },
1263                {{36, 65500, -10}, },
1264                {{36, 65500, -10}, },
1265                {{0, 65535, -11}, },
1266                {},
1267                {{10, 10, 536}, },
1268                {},
1269                {{110, 110, 537}, },
1270                {{110, 110, 538}, },
1271                {},
1272                {},
1273                {{48, 57, 498}, {68, 68, 539}, {69, 69, 540}, {70, 70, 541}, {100, 100, 542}, {101, 101, 543}, {102, 102, 544}, },
1274                {},
1275                {},
1276                {{0, 9, 545}, {10, 10, 546}, {11, 12, 545}, {13, 13, 547}, {14, 41, 545}, {42, 42, 548}, {43, 65535, 545}, },
1277                {{0, 9, 549}, {10, 10, 550}, {11, 12, 549}, {13, 13, 551}, {14, 65535, 549}, },
1278                {{48, 57, 552}, {68, 68, 553}, {69, 69, 554}, {70, 70, 555}, {100, 100, 556}, {101, 101, 557}, {102, 102, 558}, },
1279                {{46, 70, -22}, {100, 102, -22}, },
1280                {},
1281                {{43, 43, 559}, {45, 45, 560}, {48, 57, 561}, },
1282                {},
1283                {},
1284                {},
1285                {{43, 57, -508}, },
1286                {},
1287                {},
1288                {{46, 108, -23}, },
1289                {},
1290                {},
1291                {},
1292                {{36, 95, -10}, {97, 101, 264}, {102, 102, 562}, {103, 122, 264}, {170, 65500, -10}, },
1293                {{36, 57, -10}, {65, 77, 262}, {78, 78, 563}, {79, 90, 262}, {95, 65500, -10}, },
1294                {{36, 95, -10}, {97, 107, 264}, {108, 108, 564}, {109, 122, 264}, {170, 65500, -10}, },
1295                {{36, 101, -519}, {102, 102, 565}, {103, 65500, -519}, },
1296                {{36, 109, -31}, {110, 110, 566}, {111, 65500, -31}, },
1297                {{36, 107, -521}, {108, 108, 567}, {109, 65500, -521}, },
1298                {{36, 95, -10}, {97, 116, 264}, {117, 117, 568}, {118, 65500, -41}, },
1299                {},
1300                {},
1301                {{0, 65535, -9}, },
1302                {{0, 65535, -9}, },
1303                {{0, 34, -9}, {35, 47, 257}, {48, 55, 569}, {56, 91, 257}, {92, 65535, -9}, },
1304                {{0, 47, -530}, {48, 55, 570}, {56, 65535, -530}, },
1305                {{0, 65535, -9}, },
1306                {{0, 65535, -9}, },
1307                {{0, 65535, -9}, },
1308                {{0, 65535, -9}, },
1309                {{0, 65535, -9}, },
1310                {{0, 65535, -9}, },
1311                {},
1312                {{102, 102, 571}, },
1313                {{102, 102, 572}, },
1314                {},
1315                {{43, 43, 573}, {45, 45, 574}, {48, 57, 575}, },
1316                {},
1317                {},
1318                {{43, 57, -542}, },
1319                {},
1320                {{0, 41, -503}, {42, 42, 576}, {43, 65535, 545}, },
1321                {{0, 65535, -547}, },
1322                {{0, 9, 545}, {10, 10, 577}, {11, 65535, -547}, },
1323                {{0, 9, 578}, {10, 10, 579}, {11, 12, 578}, {13, 13, 580}, {14, 41, 578}, {42, 42, 581}, {43, 46, 578}, {47, 47, 582}, {48, 65535, 578}, },
1324                {{0, 65535, -504}, },
1325                {},
1326                {{10, 10, 583}, },
1327                {{48, 102, -505}, },
1328                {},
1329                {{43, 43, 584}, {45, 45, 585}, {48, 57, 586}, },
1330                {},
1331                {},
1332                {{43, 57, -556}, },
1333                {},
1334                {{48, 57, 561}, },
1335                {{48, 57, 561}, },
1336                {{48, 57, 561}, {68, 68, 587}, {70, 70, 588}, {100, 100, 589}, {102, 102, 590}, },
1337                {{36, 65500, -10}, },
1338                {{36, 65500, -10}, },
1339                {{36, 95, -10}, {97, 114, 264}, {115, 115, 591}, {116, 122, 264}, {170, 65500, -10}, },
1340                {{36, 65500, -10}, },
1341                {{36, 65500, -10}, },
1342                {{36, 107, -521}, {108, 108, 592}, {109, 65500, -521}, },
1343                {{36, 95, -10}, {97, 100, 264}, {101, 101, 593}, {102, 122, 264}, {170, 65500, -10}, },
1344                {{0, 47, -530}, {48, 55, 594}, {56, 65535, -530}, },
1345                {{0, 65535, -9}, },
1346                {},
1347                {},
1348                {{48, 57, 575}, },
1349                {{48, 57, 575}, },
1350                {{48, 57, 575}, {68, 68, 539}, {70, 100, -500}, {102, 102, 544}, },
1351                {{0, 9, 595}, {10, 10, 596}, {11, 12, 595}, {13, 13, 597}, {14, 41, 595}, {42, 42, 576}, {43, 46, 595}, {47, 47, 598}, {48, 65535, 595}, },
1352                {{0, 65535, -547}, },
1353                {{0, 9, 599}, {10, 10, 600}, {11, 12, 599}, {13, 13, 601}, {14, 41, 599}, {42, 42, 602}, {43, 65535, 599}, },
1354                {{0, 65535, -580}, },
1355                {{0, 9, 599}, {10, 10, 603}, {11, 65535, -580}, },
1356                {{0, 65535, -550}, },
1357                {},
1358                {},
1359                {{48, 57, 586}, },
1360                {{48, 57, 586}, },
1361                {{48, 57, 586}, {68, 68, 553}, {70, 100, -505}, {102, 102, 558}, },
1362                {},
1363                {},
1364                {},
1365                {},
1366                {{36, 100, -570}, {101, 101, 604}, {102, 65500, -570}, },
1367                {{36, 65500, -10}, },
1368                {{36, 65500, -10}, },
1369                {{0, 65535, -9}, },
1370                {{0, 9, 605}, {10, 10, 606}, {11, 12, 605}, {13, 13, 607}, {14, 41, 605}, {42, 42, 608}, {43, 65535, 605}, },
1371                {{0, 65535, -597}, },
1372                {{0, 9, 605}, {10, 10, 609}, {11, 65535, -597}, },
1373                {},
1374                {{0, 65535, -580}, },
1375                {{0, 65535, -580}, },
1376                {{0, 9, 599}, {10, 10, 610}, {11, 65535, -580}, },
1377                {{0, 41, -550}, {42, 42, 602}, {43, 65535, -550}, },
1378                {{0, 65535, -580}, },
1379                {{36, 65500, -10}, },
1380                {{0, 65535, -597}, },
1381                {{0, 65535, -597}, },
1382                {{0, 9, 605}, {10, 10, 611}, {11, 65535, -597}, },
1383                {{0, 41, -578}, {42, 42, 608}, {43, 65535, -578}, },
1384                {{0, 65535, -597}, },
1385                {{0, 65535, -580}, },
1386                {{0, 65535, -597}, },
1387            }
1388        };*/
1389    
1390        private static int[][] accept;
1391    /*  {
1392            // INITIAL
1393            {0, 0, 0, 0, 0, 0, 18, -1, 47, 4, 20, 40, 8, 9, 34, 32, 15, 33, 16, 36, 44, 44, 25, 14, 27, 17, 28, 24, 47, 47, 47, 12, 38, 13, 42, 47, 47, 47, 47, 47, 47, 10, 21, 11, 19, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 0, 31, -1, 46, -1, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 4, 4, 4, 22, -1, -1, 35, 37, 45, 39, 43, -1, 3, 45, -1, 45, -1, 45, 44, 45, -1, 45, 44, 44, 29, 26, 30, 47, 47, 47, 47, 47, 47, 47, 23, 31, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 4, -1, -1, 45, -1, 45, 45, -1, 45, -1, -1, -1, -1, 3, 3, 3, 45, 45, -1, 45, 45, -1, 45, -1, -1, 45, 45, 45, 47, 45, 45, 47, 47, -1, -1, 45, 45, -1, -1, 45, -1, -1, -1, -1, -1, -1, 2, 3, -1, -1, 45, 45, 45, 45, 45, 47, 7, 5, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, },
1394    
1395        };*/
1396    
1397        public static class State
1398        {
1399            public final static State INITIAL = new State(0);
1400    
1401            private int id;
1402    
1403            private State(@SuppressWarnings("hiding") int id)
1404            {
1405                this.id = id;
1406            }
1407    
1408            public int id()
1409            {
1410                return this.id;
1411            }
1412        }
1413    
1414        static 
1415        {
1416            try
1417            {
1418                DataInputStream s = new DataInputStream(
1419                    new BufferedInputStream(
1420                    Lexer.class.getResourceAsStream("lexer.dat")));
1421    
1422                // read gotoTable
1423                int length = s.readInt();
1424                gotoTable = new int[length][][][];
1425                for(int i = 0; i < gotoTable.length; i++)
1426                {
1427                    length = s.readInt();
1428                    gotoTable[i] = new int[length][][];
1429                    for(int j = 0; j < gotoTable[i].length; j++)
1430                    {
1431                        length = s.readInt();
1432                        gotoTable[i][j] = new int[length][3];
1433                        for(int k = 0; k < gotoTable[i][j].length; k++)
1434                        {
1435                            for(int l = 0; l < 3; l++)
1436                            {
1437                                gotoTable[i][j][k][l] = s.readInt();
1438                            }
1439                        }
1440                    }
1441                }
1442    
1443                // read accept
1444                length = s.readInt();
1445                accept = new int[length][];
1446                for(int i = 0; i < accept.length; i++)
1447                {
1448                    length = s.readInt();
1449                    accept[i] = new int[length];
1450                    for(int j = 0; j < accept[i].length; j++)
1451                    {
1452                        accept[i][j] = s.readInt();
1453                    }
1454                }
1455    
1456                s.close();
1457            }
1458            catch(Exception e)
1459            {
1460                throw new RuntimeException("The file \"lexer.dat\" is either missing or corrupted.");
1461            }
1462        }
1463    }