1 // $ANTLR 3.5.2 src/org/simantics/graph/compiler/internal/parsing/Graph.g 2018-06-15 14:02:54
2 package org.simantics.graph.compiler.internal.parsing;
4 import gnu.trove.list.array.*;
7 import org.antlr.runtime.*;
8 import java.util.Stack;
10 import java.util.ArrayList;
12 @SuppressWarnings("all")
13 public class GraphLexer extends Lexer {
14 public static final int EOF=-1;
15 public static final int T__65=65;
16 public static final int T__66=66;
17 public static final int T__67=67;
18 public static final int T__68=68;
19 public static final int T__69=69;
20 public static final int T__70=70;
21 public static final int T__71=71;
22 public static final int T__72=72;
23 public static final int T__73=73;
24 public static final int T__74=74;
25 public static final int T__75=75;
26 public static final int T__76=76;
27 public static final int T__77=77;
28 public static final int T__78=78;
29 public static final int T__79=79;
30 public static final int T__80=80;
31 public static final int ARRAY=4;
32 public static final int ARRAY_TYPE=5;
33 public static final int ASSIGNMENT=6;
34 public static final int BLANK=7;
35 public static final int COMMENT=8;
36 public static final int DEDENT=9;
37 public static final int DOMAIN_OF=10;
38 public static final int EMBEDDED_TYPE=11;
39 public static final int EMBEDDED_VALUE=12;
40 public static final int EQUALS=13;
41 public static final int ESC_SEQ=14;
42 public static final int EXPONENT=15;
43 public static final int FALSE=16;
44 public static final int FILE=17;
45 public static final int FLOAT=18;
46 public static final int HAS_DOMAIN=19;
47 public static final int HAS_RANGE=20;
48 public static final int HEX_DIGIT=21;
49 public static final int ID=22;
50 public static final int INDENT=23;
51 public static final int INHERITS=24;
52 public static final int INSTANCE_OF=25;
53 public static final int INT=26;
54 public static final int INT_RANGE=27;
55 public static final int LBRACKET=28;
56 public static final int LCURLY=29;
57 public static final int LPAREN=30;
58 public static final int MAP=31;
59 public static final int NEWLINE=32;
60 public static final int NO_VALUE=33;
61 public static final int PROPERTY=34;
62 public static final int RANGE=35;
63 public static final int RBRACKET=36;
64 public static final int RCURLY=37;
65 public static final int RECORD=38;
66 public static final int RECORD_TYPE=39;
67 public static final int REF=40;
68 public static final int REQUIRES_VALUE_TYPE=41;
69 public static final int RESOURCE=42;
70 public static final int RPAREN=43;
71 public static final int STRING=44;
72 public static final int SUBRELATION_OF=45;
73 public static final int TAGGED_VALUE=46;
74 public static final int TEMPLATE_DEFINITION=47;
75 public static final int TEMPLATE_INSTANCE=48;
76 public static final int TRUE=49;
77 public static final int TUPLE=50;
78 public static final int TUPLE_TYPE=51;
79 public static final int TYPE_ANNOTATION=52;
80 public static final int TYPE_COMPONENT=53;
81 public static final int TYPE_DEFINITION=54;
82 public static final int TYPE_DEFINITIONS=55;
83 public static final int TYPE_REFERENCE=56;
84 public static final int UNICODE_ESC=57;
85 public static final int UNION_TYPE=58;
86 public static final int URI=59;
87 public static final int VALUE_DEFINITION=60;
88 public static final int VALUE_DEFINITIONS=61;
89 public static final int VARIABLE=62;
90 public static final int VARIANT=63;
91 public static final int WS=64;
95 TIntArrayList iStack = new TIntArrayList();
98 List tokens = new ArrayList();
99 public void emit(Token token) {
103 public Token nextToken() {
104 if(tokens.isEmpty()) {
106 if ( tokens.isEmpty() ) {
107 /* When end-of-file is encountered, we
108 emit balancing number of DEDENT tokens.
110 if(iStack.size() <= 1)
111 return getEOFToken();
113 while(iStack.size() > 1) {
114 iStack.removeAt(iStack.size()-1);
122 return (Token)tokens.remove(0);
129 public Lexer[] getDelegates() {
130 return new Lexer[] {};
133 public GraphLexer() {}
134 public GraphLexer(CharStream input) {
135 this(input, new RecognizerSharedState());
137 public GraphLexer(CharStream input, RecognizerSharedState state) {
140 @Override public String getGrammarFileName() { return "src/org/simantics/graph/compiler/internal/parsing/Graph.g"; }
142 // $ANTLR start "T__65"
143 public final void mT__65() throws RecognitionException {
146 int _channel = DEFAULT_TOKEN_CHANNEL;
147 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:46:7: ( '$' )
148 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:46:9: '$'
154 state.channel = _channel;
157 // do for sure before leaving
160 // $ANTLR end "T__65"
162 // $ANTLR start "T__66"
163 public final void mT__66() throws RecognitionException {
166 int _channel = DEFAULT_TOKEN_CHANNEL;
167 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:47:7: ( '%' )
168 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:47:9: '%'
174 state.channel = _channel;
177 // do for sure before leaving
180 // $ANTLR end "T__66"
182 // $ANTLR start "T__67"
183 public final void mT__67() throws RecognitionException {
186 int _channel = DEFAULT_TOKEN_CHANNEL;
187 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:48:7: ( ',' )
188 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:48:9: ','
194 state.channel = _channel;
197 // do for sure before leaving
200 // $ANTLR end "T__67"
202 // $ANTLR start "T__68"
203 public final void mT__68() throws RecognitionException {
206 int _channel = DEFAULT_TOKEN_CHANNEL;
207 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:49:7: ( '-->' )
208 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:49:9: '-->'
215 state.channel = _channel;
218 // do for sure before leaving
221 // $ANTLR end "T__68"
223 // $ANTLR start "T__69"
224 public final void mT__69() throws RecognitionException {
227 int _channel = DEFAULT_TOKEN_CHANNEL;
228 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:50:7: ( '.' )
229 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:50:9: '.'
235 state.channel = _channel;
238 // do for sure before leaving
241 // $ANTLR end "T__69"
243 // $ANTLR start "T__70"
244 public final void mT__70() throws RecognitionException {
247 int _channel = DEFAULT_TOKEN_CHANNEL;
248 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:51:7: ( ':' )
249 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:51:9: ':'
255 state.channel = _channel;
258 // do for sure before leaving
261 // $ANTLR end "T__70"
263 // $ANTLR start "T__71"
264 public final void mT__71() throws RecognitionException {
267 int _channel = DEFAULT_TOKEN_CHANNEL;
268 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:52:7: ( '<--' )
269 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:52:9: '<--'
276 state.channel = _channel;
279 // do for sure before leaving
282 // $ANTLR end "T__71"
284 // $ANTLR start "T__72"
285 public final void mT__72() throws RecognitionException {
288 int _channel = DEFAULT_TOKEN_CHANNEL;
289 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:53:7: ( '<R' )
290 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:53:9: '<R'
297 state.channel = _channel;
300 // do for sure before leaving
303 // $ANTLR end "T__72"
305 // $ANTLR start "T__73"
306 public final void mT__73() throws RecognitionException {
309 int _channel = DEFAULT_TOKEN_CHANNEL;
310 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:54:7: ( '<T' )
311 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:54:9: '<T'
318 state.channel = _channel;
321 // do for sure before leaving
324 // $ANTLR end "T__73"
326 // $ANTLR start "T__74"
327 public final void mT__74() throws RecognitionException {
330 int _channel = DEFAULT_TOKEN_CHANNEL;
331 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:55:7: ( '=' )
332 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:55:9: '='
338 state.channel = _channel;
341 // do for sure before leaving
344 // $ANTLR end "T__74"
346 // $ANTLR start "T__75"
347 public final void mT__75() throws RecognitionException {
350 int _channel = DEFAULT_TOKEN_CHANNEL;
351 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:56:7: ( '==>' )
352 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:56:9: '==>'
359 state.channel = _channel;
362 // do for sure before leaving
365 // $ANTLR end "T__75"
367 // $ANTLR start "T__76"
368 public final void mT__76() throws RecognitionException {
371 int _channel = DEFAULT_TOKEN_CHANNEL;
372 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:57:7: ( '>--' )
373 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:57:9: '>--'
380 state.channel = _channel;
383 // do for sure before leaving
386 // $ANTLR end "T__76"
388 // $ANTLR start "T__77"
389 public final void mT__77() throws RecognitionException {
392 int _channel = DEFAULT_TOKEN_CHANNEL;
393 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:58:7: ( '@' )
394 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:58:9: '@'
400 state.channel = _channel;
403 // do for sure before leaving
406 // $ANTLR end "T__77"
408 // $ANTLR start "T__78"
409 public final void mT__78() throws RecognitionException {
412 int _channel = DEFAULT_TOKEN_CHANNEL;
413 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:59:7: ( 'false' )
414 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:59:9: 'false'
421 state.channel = _channel;
424 // do for sure before leaving
427 // $ANTLR end "T__78"
429 // $ANTLR start "T__79"
430 public final void mT__79() throws RecognitionException {
433 int _channel = DEFAULT_TOKEN_CHANNEL;
434 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:60:7: ( 'true' )
435 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:60:9: 'true'
442 state.channel = _channel;
445 // do for sure before leaving
448 // $ANTLR end "T__79"
450 // $ANTLR start "T__80"
451 public final void mT__80() throws RecognitionException {
454 int _channel = DEFAULT_TOKEN_CHANNEL;
455 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:61:7: ( '|' )
456 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:61:9: '|'
462 state.channel = _channel;
465 // do for sure before leaving
468 // $ANTLR end "T__80"
471 public final void mID() throws RecognitionException {
474 int _channel = DEFAULT_TOKEN_CHANNEL;
475 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:108:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
476 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:108:7: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
478 if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
482 MismatchedSetException mse = new MismatchedSetException(null,input);
486 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:108:31: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
490 int LA1_0 = input.LA(1);
491 if ( ((LA1_0 >= '0' && LA1_0 <= '9')||(LA1_0 >= 'A' && LA1_0 <= 'Z')||LA1_0=='_'||(LA1_0 >= 'a' && LA1_0 <= 'z')) ) {
497 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
499 if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
503 MismatchedSetException mse = new MismatchedSetException(null,input);
518 state.channel = _channel;
521 // do for sure before leaving
526 // $ANTLR start "COMMENT"
527 public final void mCOMMENT() throws RecognitionException {
530 int _channel = DEFAULT_TOKEN_CHANNEL;
531 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:112:5: ( '//' (~ ( '\\n' ) )* | '/*' ( options {greedy=false; } : . )* '*/' )
533 int LA4_0 = input.LA(1);
534 if ( (LA4_0=='/') ) {
535 int LA4_1 = input.LA(2);
536 if ( (LA4_1=='/') ) {
539 else if ( (LA4_1=='*') ) {
544 int nvaeMark = input.mark();
547 NoViableAltException nvae =
548 new NoViableAltException("", 4, 1, input);
551 input.rewind(nvaeMark);
558 NoViableAltException nvae =
559 new NoViableAltException("", 4, 0, input);
565 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:112:9: '//' (~ ( '\\n' ) )*
569 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:112:14: (~ ( '\\n' ) )*
573 int LA2_0 = input.LA(1);
574 if ( ((LA2_0 >= '\u0000' && LA2_0 <= '\t')||(LA2_0 >= '\u000B' && LA2_0 <= '\uFFFF')) ) {
580 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
582 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '\uFFFF') ) {
586 MismatchedSetException mse = new MismatchedSetException(null,input);
602 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:113:9: '/*' ( options {greedy=false; } : . )* '*/'
606 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:113:14: ( options {greedy=false; } : . )*
610 int LA3_0 = input.LA(1);
611 if ( (LA3_0=='*') ) {
612 int LA3_1 = input.LA(2);
613 if ( (LA3_1=='/') ) {
616 else if ( ((LA3_1 >= '\u0000' && LA3_1 <= '.')||(LA3_1 >= '0' && LA3_1 <= '\uFFFF')) ) {
621 else if ( ((LA3_0 >= '\u0000' && LA3_0 <= ')')||(LA3_0 >= '+' && LA3_0 <= '\uFFFF')) ) {
627 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:113:42: .
646 state.channel = _channel;
649 // do for sure before leaving
652 // $ANTLR end "COMMENT"
655 public final void mWS() throws RecognitionException {
658 int _channel = DEFAULT_TOKEN_CHANNEL;
659 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:116:5: ( ( ' ' | '\\t' | '\\r' ) )
660 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:116:7: ( ' ' | '\\t' | '\\r' )
662 if ( input.LA(1)=='\t'||input.LA(1)=='\r'||input.LA(1)==' ' ) {
666 MismatchedSetException mse = new MismatchedSetException(null,input);
674 state.channel = _channel;
677 // do for sure before leaving
682 // $ANTLR start "LPAREN"
683 public final void mLPAREN() throws RecognitionException {
686 int _channel = DEFAULT_TOKEN_CHANNEL;
687 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:122:11: ( '(' )
688 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:122:13: '('
695 state.channel = _channel;
698 // do for sure before leaving
701 // $ANTLR end "LPAREN"
703 // $ANTLR start "RPAREN"
704 public final void mRPAREN() throws RecognitionException {
707 int _channel = DEFAULT_TOKEN_CHANNEL;
708 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:123:11: ( ')' )
709 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:123:13: ')'
716 state.channel = _channel;
719 // do for sure before leaving
722 // $ANTLR end "RPAREN"
724 // $ANTLR start "LBRACKET"
725 public final void mLBRACKET() throws RecognitionException {
727 int _type = LBRACKET;
728 int _channel = DEFAULT_TOKEN_CHANNEL;
729 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:124:11: ( '[' )
730 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:124:13: '['
737 state.channel = _channel;
740 // do for sure before leaving
743 // $ANTLR end "LBRACKET"
745 // $ANTLR start "RBRACKET"
746 public final void mRBRACKET() throws RecognitionException {
748 int _type = RBRACKET;
749 int _channel = DEFAULT_TOKEN_CHANNEL;
750 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:125:11: ( ']' )
751 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:125:13: ']'
758 state.channel = _channel;
761 // do for sure before leaving
764 // $ANTLR end "RBRACKET"
766 // $ANTLR start "LCURLY"
767 public final void mLCURLY() throws RecognitionException {
770 int _channel = DEFAULT_TOKEN_CHANNEL;
771 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:126:11: ( '{' )
772 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:126:13: '{'
779 state.channel = _channel;
782 // do for sure before leaving
785 // $ANTLR end "LCURLY"
787 // $ANTLR start "RCURLY"
788 public final void mRCURLY() throws RecognitionException {
791 int _channel = DEFAULT_TOKEN_CHANNEL;
792 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:127:11: ( '}' )
793 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:127:13: '}'
800 state.channel = _channel;
803 // do for sure before leaving
806 // $ANTLR end "RCURLY"
808 // $ANTLR start "INT_RANGE"
809 public final void mINT_RANGE() throws RecognitionException {
811 int _type = INT_RANGE;
812 int _channel = DEFAULT_TOKEN_CHANNEL;
813 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:129:11: ( INT '..' ( INT )? | '..' INT )
815 int LA6_0 = input.LA(1);
816 if ( (LA6_0=='-'||(LA6_0 >= '0' && LA6_0 <= '9')) ) {
819 else if ( (LA6_0=='.') ) {
824 NoViableAltException nvae =
825 new NoViableAltException("", 6, 0, input);
831 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:129:13: INT '..' ( INT )?
837 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:129:22: ( INT )?
839 int LA5_0 = input.LA(1);
840 if ( (LA5_0=='-'||(LA5_0 >= '0' && LA5_0 <= '9')) ) {
845 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:129:22: INT
857 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:130:13: '..' INT
868 state.channel = _channel;
871 // do for sure before leaving
874 // $ANTLR end "INT_RANGE"
876 // $ANTLR start "RANGE"
877 public final void mRANGE() throws RecognitionException {
880 int _channel = DEFAULT_TOKEN_CHANNEL;
881 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:132:11: ( FLOAT '..' ( FLOAT | INT )? | '..' FLOAT | INT '..' FLOAT )
883 alt8 = dfa8.predict(input);
886 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:132:13: FLOAT '..' ( FLOAT | INT )?
892 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:132:24: ( FLOAT | INT )?
894 alt7 = dfa7.predict(input);
897 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:132:25: FLOAT
904 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:132:33: INT
916 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:133:13: '..' FLOAT
925 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:134:13: INT '..' FLOAT
938 state.channel = _channel;
941 // do for sure before leaving
944 // $ANTLR end "RANGE"
946 // $ANTLR start "NEWLINE"
947 public final void mNEWLINE() throws RecognitionException {
950 int _channel = DEFAULT_TOKEN_CHANNEL;
952 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:139:5: ( '\\n' ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )* )
953 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:139:7: '\\n' ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )*
956 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:140:7: ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )*
960 switch ( input.LA(1) ) {
968 int LA11_3 = input.LA(2);
969 if ( (LA11_3=='/') ) {
972 else if ( (LA11_3=='*') ) {
991 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:140:9: ' '
998 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:141:9: '//' (~ ( '\\n' ) )* '\\n'
1002 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:141:14: (~ ( '\\n' ) )*
1006 int LA9_0 = input.LA(1);
1007 if ( ((LA9_0 >= '\u0000' && LA9_0 <= '\t')||(LA9_0 >= '\u000B' && LA9_0 <= '\uFFFF')) ) {
1013 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1015 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '\uFFFF') ) {
1019 MismatchedSetException mse = new MismatchedSetException(null,input);
1036 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:142:9: '/*' ( options {greedy=false; } : . )* '*/'
1040 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:142:14: ( options {greedy=false; } : . )*
1044 int LA10_0 = input.LA(1);
1045 if ( (LA10_0=='*') ) {
1046 int LA10_1 = input.LA(2);
1047 if ( (LA10_1=='/') ) {
1050 else if ( ((LA10_1 >= '\u0000' && LA10_1 <= '.')||(LA10_1 >= '0' && LA10_1 <= '\uFFFF')) ) {
1055 else if ( ((LA10_0 >= '\u0000' && LA10_0 <= ')')||(LA10_0 >= '+' && LA10_0 <= '\uFFFF')) ) {
1061 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:142:42: .
1077 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:143:9: '\\r'
1083 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:144:9: '\\n'
1096 int c = input.LA(1);
1102 while(iStack.size() > 1) {
1103 iStack.removeAt(iStack.size()-1);
1104 state.type = DEDENT;
1111 int stackTop = iStack.get(iStack.size()-1);
1112 if(spaces > stackTop) {
1116 else if(spaces < stackTop) {
1117 while(spaces < iStack.get(iStack.size()-1)) {
1118 iStack.removeAt(iStack.size()-1);
1119 state.type = DEDENT;
1122 state.type = NEWLINE;
1124 // TODO check that spaces == iStack.get(iStack.size()-1)
1131 state.channel = _channel;
1134 // do for sure before leaving
1137 // $ANTLR end "NEWLINE"
1139 // $ANTLR start "INDENT"
1140 public final void mINDENT() throws RecognitionException {
1143 int _channel = DEFAULT_TOKEN_CHANNEL;
1144 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:181:7: ({...}? => 'INDENT' )
1145 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:181:9: {...}? => 'INDENT'
1147 if ( !(( false )) ) {
1148 throw new FailedPredicateException(input, "INDENT", " false ");
1155 state.channel = _channel;
1158 // do for sure before leaving
1161 // $ANTLR end "INDENT"
1163 // $ANTLR start "DEDENT"
1164 public final void mDEDENT() throws RecognitionException {
1167 int _channel = DEFAULT_TOKEN_CHANNEL;
1168 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:182:7: ({...}? => 'DEDENT' )
1169 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:182:9: {...}? => 'DEDENT'
1171 if ( !(( false )) ) {
1172 throw new FailedPredicateException(input, "DEDENT", " false ");
1179 state.channel = _channel;
1182 // do for sure before leaving
1185 // $ANTLR end "DEDENT"
1187 // $ANTLR start "INT"
1188 public final void mINT() throws RecognitionException {
1191 int _channel = DEFAULT_TOKEN_CHANNEL;
1192 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:184:5: ( ( '-' )? ( '0' .. '9' )+ )
1193 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:184:7: ( '-' )? ( '0' .. '9' )+
1195 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:184:7: ( '-' )?
1197 int LA12_0 = input.LA(1);
1198 if ( (LA12_0=='-') ) {
1203 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:184:7: '-'
1211 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:184:12: ( '0' .. '9' )+
1216 int LA13_0 = input.LA(1);
1217 if ( ((LA13_0 >= '0' && LA13_0 <= '9')) ) {
1223 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1225 if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
1229 MismatchedSetException mse = new MismatchedSetException(null,input);
1237 if ( cnt13 >= 1 ) break loop13;
1238 EarlyExitException eee = new EarlyExitException(13, input);
1247 state.channel = _channel;
1250 // do for sure before leaving
1255 // $ANTLR start "FLOAT"
1256 public final void mFLOAT() throws RecognitionException {
1259 int _channel = DEFAULT_TOKEN_CHANNEL;
1260 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:188:5: ( ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT ) )
1261 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:188:7: ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
1263 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:188:7: ( '-' )?
1265 int LA14_0 = input.LA(1);
1266 if ( (LA14_0=='-') ) {
1271 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:188:7: '-'
1279 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
1281 alt19 = dfa19.predict(input);
1284 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:7: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )?
1286 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:7: ( '0' .. '9' )+
1291 int LA15_0 = input.LA(1);
1292 if ( ((LA15_0 >= '0' && LA15_0 <= '9')) ) {
1298 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1300 if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
1304 MismatchedSetException mse = new MismatchedSetException(null,input);
1312 if ( cnt15 >= 1 ) break loop15;
1313 EarlyExitException eee = new EarlyExitException(15, input);
1320 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:23: ( '0' .. '9' )*
1324 int LA16_0 = input.LA(1);
1325 if ( ((LA16_0 >= '0' && LA16_0 <= '9')) ) {
1331 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1333 if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
1337 MismatchedSetException mse = new MismatchedSetException(null,input);
1349 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:35: ( EXPONENT )?
1351 int LA17_0 = input.LA(1);
1352 if ( (LA17_0=='E'||LA17_0=='e') ) {
1357 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:189:35: EXPONENT
1369 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:190:7: ( '0' .. '9' )+ EXPONENT
1371 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:190:7: ( '0' .. '9' )+
1376 int LA18_0 = input.LA(1);
1377 if ( ((LA18_0 >= '0' && LA18_0 <= '9')) ) {
1383 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1385 if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
1389 MismatchedSetException mse = new MismatchedSetException(null,input);
1397 if ( cnt18 >= 1 ) break loop18;
1398 EarlyExitException eee = new EarlyExitException(18, input);
1414 state.channel = _channel;
1417 // do for sure before leaving
1420 // $ANTLR end "FLOAT"
1422 // $ANTLR start "STRING"
1423 public final void mSTRING() throws RecognitionException {
1426 int _channel = DEFAULT_TOKEN_CHANNEL;
1427 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:195:5: ( '\"' ( ESC_SEQ |~ ( '\\\\' | '\"' ) )* '\"' | '\"\"\"' (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )* '\"\"\"' )
1429 int LA22_0 = input.LA(1);
1430 if ( (LA22_0=='\"') ) {
1431 int LA22_1 = input.LA(2);
1432 if ( (LA22_1=='\"') ) {
1433 int LA22_2 = input.LA(3);
1434 if ( (LA22_2=='\"') ) {
1443 else if ( ((LA22_1 >= '\u0000' && LA22_1 <= '!')||(LA22_1 >= '#' && LA22_1 <= '\uFFFF')) ) {
1448 int nvaeMark = input.mark();
1451 NoViableAltException nvae =
1452 new NoViableAltException("", 22, 1, input);
1455 input.rewind(nvaeMark);
1462 NoViableAltException nvae =
1463 new NoViableAltException("", 22, 0, input);
1469 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:195:8: '\"' ( ESC_SEQ |~ ( '\\\\' | '\"' ) )* '\"'
1472 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:195:12: ( ESC_SEQ |~ ( '\\\\' | '\"' ) )*
1476 int LA20_0 = input.LA(1);
1477 if ( (LA20_0=='\\') ) {
1480 else if ( ((LA20_0 >= '\u0000' && LA20_0 <= '!')||(LA20_0 >= '#' && LA20_0 <= '[')||(LA20_0 >= ']' && LA20_0 <= '\uFFFF')) ) {
1486 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:195:14: ESC_SEQ
1493 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:195:24: ~ ( '\\\\' | '\"' )
1495 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
1499 MismatchedSetException mse = new MismatchedSetException(null,input);
1515 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:196:8: '\"\"\"' (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )* '\"\"\"'
1519 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:196:14: (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )*
1523 int LA21_0 = input.LA(1);
1524 if ( (LA21_0=='\"') ) {
1525 int LA21_1 = input.LA(2);
1526 if ( (LA21_1=='\"') ) {
1527 int LA21_3 = input.LA(3);
1528 if ( ((LA21_3 >= '\u0000' && LA21_3 <= '!')||(LA21_3 >= '#' && LA21_3 <= '\uFFFF')) ) {
1533 else if ( ((LA21_1 >= '\u0000' && LA21_1 <= '!')||(LA21_1 >= '#' && LA21_1 <= '\uFFFF')) ) {
1538 else if ( ((LA21_0 >= '\u0000' && LA21_0 <= '!')||(LA21_0 >= '#' && LA21_0 <= '\uFFFF')) ) {
1544 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:196:16: ~ ( '\"' )
1546 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '\uFFFF') ) {
1550 MismatchedSetException mse = new MismatchedSetException(null,input);
1557 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:196:25: '\"' ~ ( '\"' )
1560 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '\uFFFF') ) {
1564 MismatchedSetException mse = new MismatchedSetException(null,input);
1571 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:196:38: '\"\"' ~ ( '\"' )
1575 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '!')||(input.LA(1) >= '#' && input.LA(1) <= '\uFFFF') ) {
1579 MismatchedSetException mse = new MismatchedSetException(null,input);
1598 state.channel = _channel;
1601 // do for sure before leaving
1604 // $ANTLR end "STRING"
1606 // $ANTLR start "URI"
1607 public final void mURI() throws RecognitionException {
1610 int _channel = DEFAULT_TOKEN_CHANNEL;
1611 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:200:5: ( '<http:' (~ ( '>' ) )* '>' )
1612 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:200:8: '<http:' (~ ( '>' ) )* '>'
1616 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:200:17: (~ ( '>' ) )*
1620 int LA23_0 = input.LA(1);
1621 if ( ((LA23_0 >= '\u0000' && LA23_0 <= '=')||(LA23_0 >= '?' && LA23_0 <= '\uFFFF')) ) {
1627 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1629 if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '=')||(input.LA(1) >= '?' && input.LA(1) <= '\uFFFF') ) {
1633 MismatchedSetException mse = new MismatchedSetException(null,input);
1649 state.channel = _channel;
1652 // do for sure before leaving
1657 // $ANTLR start "EXPONENT"
1658 public final void mEXPONENT() throws RecognitionException {
1660 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:205:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
1661 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:205:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
1663 if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
1667 MismatchedSetException mse = new MismatchedSetException(null,input);
1671 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:205:22: ( '+' | '-' )?
1673 int LA24_0 = input.LA(1);
1674 if ( (LA24_0=='+'||LA24_0=='-') ) {
1679 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1681 if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
1685 MismatchedSetException mse = new MismatchedSetException(null,input);
1694 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:205:33: ( '0' .. '9' )+
1699 int LA25_0 = input.LA(1);
1700 if ( ((LA25_0 >= '0' && LA25_0 <= '9')) ) {
1706 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1708 if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
1712 MismatchedSetException mse = new MismatchedSetException(null,input);
1720 if ( cnt25 >= 1 ) break loop25;
1721 EarlyExitException eee = new EarlyExitException(25, input);
1731 // do for sure before leaving
1734 // $ANTLR end "EXPONENT"
1736 // $ANTLR start "HEX_DIGIT"
1737 public final void mHEX_DIGIT() throws RecognitionException {
1739 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:208:11: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
1740 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:
1742 if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
1746 MismatchedSetException mse = new MismatchedSetException(null,input);
1754 // do for sure before leaving
1757 // $ANTLR end "HEX_DIGIT"
1759 // $ANTLR start "ESC_SEQ"
1760 public final void mESC_SEQ() throws RecognitionException {
1762 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:212:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UNICODE_ESC )
1764 int LA26_0 = input.LA(1);
1765 if ( (LA26_0=='\\') ) {
1766 int LA26_1 = input.LA(2);
1767 if ( (LA26_1=='\"'||LA26_1=='\''||LA26_1=='\\'||LA26_1=='b'||LA26_1=='f'||LA26_1=='n'||LA26_1=='r'||LA26_1=='t') ) {
1770 else if ( (LA26_1=='u') ) {
1775 int nvaeMark = input.mark();
1778 NoViableAltException nvae =
1779 new NoViableAltException("", 26, 1, input);
1782 input.rewind(nvaeMark);
1789 NoViableAltException nvae =
1790 new NoViableAltException("", 26, 0, input);
1796 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:212:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
1799 if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
1803 MismatchedSetException mse = new MismatchedSetException(null,input);
1810 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:213:9: UNICODE_ESC
1820 // do for sure before leaving
1823 // $ANTLR end "ESC_SEQ"
1825 // $ANTLR start "UNICODE_ESC"
1826 public final void mUNICODE_ESC() throws RecognitionException {
1828 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:218:5: ( '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
1829 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:218:9: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
1845 // do for sure before leaving
1848 // $ANTLR end "UNICODE_ESC"
1851 public void mTokens() throws RecognitionException {
1852 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:8: ( T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | ID | COMMENT | WS | LPAREN | RPAREN | LBRACKET | RBRACKET | LCURLY | RCURLY | INT_RANGE | RANGE | NEWLINE | INDENT | DEDENT | INT | FLOAT | STRING | URI )
1854 alt27 = dfa27.predict(input);
1857 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:10: T__65
1864 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:16: T__66
1871 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:22: T__67
1878 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:28: T__68
1885 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:34: T__69
1892 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:40: T__70
1899 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:46: T__71
1906 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:52: T__72
1913 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:58: T__73
1920 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:64: T__74
1927 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:70: T__75
1934 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:76: T__76
1941 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:82: T__77
1948 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:88: T__78
1955 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:94: T__79
1962 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:100: T__80
1969 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:106: ID
1976 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:109: COMMENT
1983 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:117: WS
1990 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:120: LPAREN
1997 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:127: RPAREN
2004 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:134: LBRACKET
2011 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:143: RBRACKET
2018 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:152: LCURLY
2025 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:159: RCURLY
2032 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:166: INT_RANGE
2039 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:176: RANGE
2046 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:182: NEWLINE
2053 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:190: INDENT
2060 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:197: DEDENT
2067 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:204: INT
2074 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:208: FLOAT
2081 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:214: STRING
2088 // src/org/simantics/graph/compiler/internal/parsing/Graph.g:1:221: URI
2099 protected DFA8 dfa8 = new DFA8(this);
2100 protected DFA7 dfa7 = new DFA7(this);
2101 protected DFA19 dfa19 = new DFA19(this);
2102 protected DFA27 dfa27 = new DFA27(this);
2103 static final String DFA8_eotS =
2105 static final String DFA8_eofS =
2107 static final String DFA8_minS =
2108 "\1\55\1\60\1\56\1\uffff\1\56\1\uffff\1\55\1\uffff";
2109 static final String DFA8_maxS =
2110 "\2\71\1\145\1\uffff\1\145\1\uffff\1\71\1\uffff";
2111 static final String DFA8_acceptS =
2112 "\3\uffff\1\2\1\uffff\1\1\1\uffff\1\3";
2113 static final String DFA8_specialS =
2115 static final String[] DFA8_transitionS = {
2116 "\1\1\1\3\1\uffff\12\2",
2118 "\1\4\1\uffff\12\2\13\uffff\1\5\37\uffff\1\5",
2120 "\1\6\1\uffff\12\5\13\uffff\1\5\37\uffff\1\5",
2122 "\1\7\1\5\1\uffff\12\7",
2126 static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS);
2127 static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS);
2128 static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS);
2129 static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS);
2130 static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS);
2131 static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS);
2132 static final short[][] DFA8_transition;
2135 int numStates = DFA8_transitionS.length;
2136 DFA8_transition = new short[numStates][];
2137 for (int i=0; i<numStates; i++) {
2138 DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]);
2142 protected class DFA8 extends DFA {
2144 public DFA8(BaseRecognizer recognizer) {
2145 this.recognizer = recognizer;
2146 this.decisionNumber = 8;
2147 this.eot = DFA8_eot;
2148 this.eof = DFA8_eof;
2149 this.min = DFA8_min;
2150 this.max = DFA8_max;
2151 this.accept = DFA8_accept;
2152 this.special = DFA8_special;
2153 this.transition = DFA8_transition;
2156 public String getDescription() {
2157 return "132:1: RANGE : ( FLOAT '..' ( FLOAT | INT )? | '..' FLOAT | INT '..' FLOAT );";
2161 static final String DFA7_eotS =
2162 "\1\3\1\uffff\1\5\3\uffff";
2163 static final String DFA7_eofS =
2165 static final String DFA7_minS =
2166 "\1\55\1\60\1\56\3\uffff";
2167 static final String DFA7_maxS =
2168 "\2\71\1\145\3\uffff";
2169 static final String DFA7_acceptS =
2170 "\3\uffff\1\3\1\1\1\2";
2171 static final String DFA7_specialS =
2173 static final String[] DFA7_transitionS = {
2174 "\1\1\2\uffff\12\2",
2176 "\1\4\1\uffff\12\2\13\uffff\1\4\37\uffff\1\4",
2182 static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS);
2183 static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS);
2184 static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS);
2185 static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS);
2186 static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS);
2187 static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS);
2188 static final short[][] DFA7_transition;
2191 int numStates = DFA7_transitionS.length;
2192 DFA7_transition = new short[numStates][];
2193 for (int i=0; i<numStates; i++) {
2194 DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]);
2198 protected class DFA7 extends DFA {
2200 public DFA7(BaseRecognizer recognizer) {
2201 this.recognizer = recognizer;
2202 this.decisionNumber = 7;
2203 this.eot = DFA7_eot;
2204 this.eof = DFA7_eof;
2205 this.min = DFA7_min;
2206 this.max = DFA7_max;
2207 this.accept = DFA7_accept;
2208 this.special = DFA7_special;
2209 this.transition = DFA7_transition;
2212 public String getDescription() {
2213 return "132:24: ( FLOAT | INT )?";
2217 static final String DFA19_eotS =
2219 static final String DFA19_eofS =
2221 static final String DFA19_minS =
2222 "\1\60\1\56\2\uffff";
2223 static final String DFA19_maxS =
2224 "\1\71\1\145\2\uffff";
2225 static final String DFA19_acceptS =
2227 static final String DFA19_specialS =
2229 static final String[] DFA19_transitionS = {
2231 "\1\2\1\uffff\12\1\13\uffff\1\3\37\uffff\1\3",
2236 static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS);
2237 static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS);
2238 static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS);
2239 static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS);
2240 static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS);
2241 static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS);
2242 static final short[][] DFA19_transition;
2245 int numStates = DFA19_transitionS.length;
2246 DFA19_transition = new short[numStates][];
2247 for (int i=0; i<numStates; i++) {
2248 DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]);
2252 protected class DFA19 extends DFA {
2254 public DFA19(BaseRecognizer recognizer) {
2255 this.recognizer = recognizer;
2256 this.decisionNumber = 19;
2257 this.eot = DFA19_eot;
2258 this.eof = DFA19_eof;
2259 this.min = DFA19_min;
2260 this.max = DFA19_max;
2261 this.accept = DFA19_accept;
2262 this.special = DFA19_special;
2263 this.transition = DFA19_transition;
2266 public String getDescription() {
2267 return "189:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )";
2271 static final String DFA27_eotS =
2272 "\5\uffff\1\36\2\uffff\1\44\2\uffff\2\32\1\uffff\1\32\10\uffff\1\50\1\uffff"+
2273 "\1\32\13\uffff\3\32\1\uffff\1\64\1\uffff\1\32\1\uffff\1\70\3\32\1\70\1"+
2274 "\64\3\uffff\1\64\1\32\2\uffff\1\32\1\103\1\32\1\uffff\1\70\1\uffff\1\64"+
2275 "\1\32\1\106\1\uffff\2\32\1\uffff\1\111\1\112\4\uffff";
2276 static final String DFA27_eofS =
2278 static final String DFA27_minS =
2279 "\1\11\3\uffff\1\55\1\56\1\uffff\1\55\1\75\2\uffff\1\141\1\162\1\uffff"+
2280 "\1\116\10\uffff\1\56\1\uffff\1\105\3\uffff\1\55\7\uffff\1\154\1\165\1"+
2281 "\104\1\uffff\1\56\1\53\1\104\1\60\1\56\1\163\1\145\1\105\1\55\1\56\1\53"+
2282 "\1\uffff\1\60\1\56\1\105\2\uffff\1\145\1\60\1\116\1\60\1\56\1\60\1\56"+
2283 "\1\116\1\60\1\uffff\2\124\1\uffff\2\60\2\0\2\uffff";
2284 static final String DFA27_maxS =
2285 "\1\175\3\uffff\1\71\1\56\1\uffff\1\150\1\75\2\uffff\1\141\1\162\1\uffff"+
2286 "\1\116\10\uffff\1\145\1\uffff\1\105\3\uffff\1\71\7\uffff\1\154\1\165\1"+
2287 "\104\1\uffff\1\145\1\71\1\104\1\71\1\145\1\163\1\145\1\105\1\71\1\145"+
2288 "\1\71\1\uffff\2\71\1\105\2\uffff\1\145\1\172\1\116\1\71\1\145\2\71\1\116"+
2289 "\1\172\1\uffff\2\124\1\uffff\2\172\2\0\2\uffff";
2290 static final String DFA27_acceptS =
2291 "\1\uffff\1\1\1\2\1\3\2\uffff\1\6\2\uffff\1\14\1\15\2\uffff\1\20\1\uffff"+
2292 "\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\uffff\1\34\1\uffff\1\21\1\41"+
2293 "\1\4\1\uffff\1\5\1\7\1\10\1\11\1\42\1\13\1\12\3\uffff\1\37\13\uffff\1"+
2294 "\40\3\uffff\1\32\1\33\11\uffff\1\17\2\uffff\1\16\4\uffff\1\35\1\36";
2295 static final String DFA27_specialS =
2296 "\111\uffff\1\0\1\1\2\uffff}>";
2297 static final String[] DFA27_transitionS = {
2298 "\1\20\1\30\2\uffff\1\20\22\uffff\1\20\1\uffff\1\33\1\uffff\1\1\1\2\2"+
2299 "\uffff\1\21\1\22\2\uffff\1\3\1\4\1\5\1\17\12\27\1\6\1\uffff\1\7\1\10"+
2300 "\1\11\1\uffff\1\12\3\32\1\31\4\32\1\16\21\32\1\23\1\uffff\1\24\1\uffff"+
2301 "\1\32\1\uffff\5\32\1\13\15\32\1\14\6\32\1\25\1\15\1\26",
2305 "\1\34\2\uffff\12\27",
2308 "\1\37\44\uffff\1\40\1\uffff\1\41\23\uffff\1\42",
2324 "\1\51\1\uffff\12\27\13\uffff\1\52\37\uffff\1\52",
2330 "\1\54\2\uffff\12\55",
2342 "\1\61\1\uffff\12\62\13\uffff\1\63\37\uffff\1\63",
2343 "\1\65\1\uffff\1\65\2\uffff\12\66",
2346 "\1\71\1\uffff\12\55\13\uffff\1\71\37\uffff\1\71",
2350 "\1\75\1\71\1\uffff\12\76",
2351 "\1\71\1\uffff\12\62\13\uffff\1\63\37\uffff\1\63",
2352 "\1\77\1\uffff\1\77\2\uffff\12\100",
2355 "\1\71\1\uffff\12\66",
2360 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
2363 "\1\71\1\uffff\12\76\13\uffff\1\71\37\uffff\1\71",
2365 "\1\71\1\uffff\12\100",
2367 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
2372 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
2373 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
2380 static final short[] DFA27_eot = DFA.unpackEncodedString(DFA27_eotS);
2381 static final short[] DFA27_eof = DFA.unpackEncodedString(DFA27_eofS);
2382 static final char[] DFA27_min = DFA.unpackEncodedStringToUnsignedChars(DFA27_minS);
2383 static final char[] DFA27_max = DFA.unpackEncodedStringToUnsignedChars(DFA27_maxS);
2384 static final short[] DFA27_accept = DFA.unpackEncodedString(DFA27_acceptS);
2385 static final short[] DFA27_special = DFA.unpackEncodedString(DFA27_specialS);
2386 static final short[][] DFA27_transition;
2389 int numStates = DFA27_transitionS.length;
2390 DFA27_transition = new short[numStates][];
2391 for (int i=0; i<numStates; i++) {
2392 DFA27_transition[i] = DFA.unpackEncodedString(DFA27_transitionS[i]);
2396 protected class DFA27 extends DFA {
2398 public DFA27(BaseRecognizer recognizer) {
2399 this.recognizer = recognizer;
2400 this.decisionNumber = 27;
2401 this.eot = DFA27_eot;
2402 this.eof = DFA27_eof;
2403 this.min = DFA27_min;
2404 this.max = DFA27_max;
2405 this.accept = DFA27_accept;
2406 this.special = DFA27_special;
2407 this.transition = DFA27_transition;
2410 public String getDescription() {
2411 return "1:1: Tokens : ( T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | ID | COMMENT | WS | LPAREN | RPAREN | LBRACKET | RBRACKET | LCURLY | RCURLY | INT_RANGE | RANGE | NEWLINE | INDENT | DEDENT | INT | FLOAT | STRING | URI );";
2414 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
2415 IntStream input = _input;
2419 int LA27_73 = input.LA(1);
2421 int index27_73 = input.index();
2424 if ( (!((( false )))) ) {s = 26;}
2425 else if ( (( false )) ) {s = 75;}
2427 input.seek(index27_73);
2428 if ( s>=0 ) return s;
2432 int LA27_74 = input.LA(1);
2434 int index27_74 = input.index();
2437 if ( (!((( false )))) ) {s = 26;}
2438 else if ( (( false )) ) {s = 76;}
2440 input.seek(index27_74);
2441 if ( s>=0 ) return s;
2444 NoViableAltException nvae =
2445 new NoViableAltException(getDescription(), 27, _s, input);