1 // $ANTLR 3.3 Nov 30, 2010 12:50:56 src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g 2011-12-19 14:53:14
\r
2 package org.simantics.graph.compiler.internal.parsing;
\r
4 import gnu.trove.list.array.*;
\r
7 import org.antlr.runtime.*;
\r
8 import java.util.Stack;
\r
9 import java.util.List;
\r
10 import java.util.ArrayList;
\r
12 @SuppressWarnings({"unused", "unchecked", "rawtypes"})
\r
13 public class GraphLexer extends Lexer {
\r
14 public static final int EOF=-1;
\r
15 public static final int T__65=65;
\r
16 public static final int T__66=66;
\r
17 public static final int T__67=67;
\r
18 public static final int T__68=68;
\r
19 public static final int T__69=69;
\r
20 public static final int T__70=70;
\r
21 public static final int T__71=71;
\r
22 public static final int T__72=72;
\r
23 public static final int T__73=73;
\r
24 public static final int T__74=74;
\r
25 public static final int T__75=75;
\r
26 public static final int T__76=76;
\r
27 public static final int T__77=77;
\r
28 public static final int T__78=78;
\r
29 public static final int T__79=79;
\r
30 public static final int T__80=80;
\r
31 public static final int INDENT=4;
\r
32 public static final int DEDENT=5;
\r
33 public static final int FILE=6;
\r
34 public static final int RESOURCE=7;
\r
35 public static final int PROPERTY=8;
\r
36 public static final int VARIABLE=9;
\r
37 public static final int EMBEDDED_VALUE=10;
\r
38 public static final int EMBEDDED_TYPE=11;
\r
39 public static final int TEMPLATE_INSTANCE=12;
\r
40 public static final int TEMPLATE_DEFINITION=13;
\r
41 public static final int BLANK=14;
\r
42 public static final int REF=15;
\r
43 public static final int EQUALS=16;
\r
44 public static final int INSTANCE_OF=17;
\r
45 public static final int INHERITS=18;
\r
46 public static final int SUBRELATION_OF=19;
\r
47 public static final int HAS_DOMAIN=20;
\r
48 public static final int HAS_RANGE=21;
\r
49 public static final int DOMAIN_OF=22;
\r
50 public static final int REQUIRES_VALUE_TYPE=23;
\r
51 public static final int TYPE_DEFINITIONS=24;
\r
52 public static final int TYPE_DEFINITION=25;
\r
53 public static final int UNION_TYPE=26;
\r
54 public static final int RECORD_TYPE=27;
\r
55 public static final int TUPLE_TYPE=28;
\r
56 public static final int ARRAY_TYPE=29;
\r
57 public static final int TYPE_REFERENCE=30;
\r
58 public static final int TYPE_ANNOTATION=31;
\r
59 public static final int TYPE_COMPONENT=32;
\r
60 public static final int VALUE_DEFINITIONS=33;
\r
61 public static final int VALUE_DEFINITION=34;
\r
62 public static final int NO_VALUE=35;
\r
63 public static final int VARIANT=36;
\r
64 public static final int ARRAY=37;
\r
65 public static final int TUPLE=38;
\r
66 public static final int TAGGED_VALUE=39;
\r
67 public static final int RECORD=40;
\r
68 public static final int MAP=41;
\r
69 public static final int ASSIGNMENT=42;
\r
70 public static final int TRUE=43;
\r
71 public static final int FALSE=44;
\r
72 public static final int ID=45;
\r
73 public static final int COMMENT=46;
\r
74 public static final int WS=47;
\r
75 public static final int LPAREN=48;
\r
76 public static final int RPAREN=49;
\r
77 public static final int LBRACKET=50;
\r
78 public static final int RBRACKET=51;
\r
79 public static final int LCURLY=52;
\r
80 public static final int RCURLY=53;
\r
81 public static final int INT=54;
\r
82 public static final int INT_RANGE=55;
\r
83 public static final int FLOAT=56;
\r
84 public static final int RANGE=57;
\r
85 public static final int NEWLINE=58;
\r
86 public static final int EXPONENT=59;
\r
87 public static final int ESC_SEQ=60;
\r
88 public static final int STRING=61;
\r
89 public static final int URI=62;
\r
90 public static final int HEX_DIGIT=63;
\r
91 public static final int UNICODE_ESC=64;
\r
95 TIntArrayList iStack = new TIntArrayList();
\r
98 List tokens = new ArrayList();
\r
99 public void emit(Token token) {
\r
100 state.token = token;
\r
103 public Token nextToken() {
\r
104 if(tokens.isEmpty()) {
\r
106 if ( tokens.isEmpty() ) {
\r
107 /* When end-of-file is encountered, we
\r
108 emit balancing number of DEDENT tokens.
\r
110 if(iStack.size() <= 1)
\r
111 return Token.EOF_TOKEN;
\r
113 while(iStack.size() > 1) {
\r
114 iStack.removeAt(iStack.size()-1);
\r
115 state.type = DEDENT;
\r
122 return (Token)tokens.remove(0);
\r
130 public GraphLexer() {;}
\r
131 public GraphLexer(CharStream input) {
\r
132 this(input, new RecognizerSharedState());
\r
134 public GraphLexer(CharStream input, RecognizerSharedState state) {
\r
135 super(input,state);
\r
138 public String getGrammarFileName() { return "src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g"; }
\r
140 // $ANTLR start "T__65"
\r
141 public final void mT__65() throws RecognitionException {
\r
144 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
145 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:46:7: ( '@' )
\r
146 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:46:9: '@'
\r
152 state.type = _type;
\r
153 state.channel = _channel;
\r
158 // $ANTLR end "T__65"
\r
160 // $ANTLR start "T__66"
\r
161 public final void mT__66() throws RecognitionException {
\r
164 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
165 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:47:7: ( '.' )
\r
166 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:47:9: '.'
\r
172 state.type = _type;
\r
173 state.channel = _channel;
\r
178 // $ANTLR end "T__66"
\r
180 // $ANTLR start "T__67"
\r
181 public final void mT__67() throws RecognitionException {
\r
184 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
185 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:48:7: ( '<T' )
\r
186 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:48:9: '<T'
\r
193 state.type = _type;
\r
194 state.channel = _channel;
\r
199 // $ANTLR end "T__67"
\r
201 // $ANTLR start "T__68"
\r
202 public final void mT__68() throws RecognitionException {
\r
205 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
206 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:49:7: ( '<R' )
\r
207 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:49:9: '<R'
\r
214 state.type = _type;
\r
215 state.channel = _channel;
\r
220 // $ANTLR end "T__68"
\r
222 // $ANTLR start "T__69"
\r
223 public final void mT__69() throws RecognitionException {
\r
226 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
227 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:50:7: ( '<--' )
\r
228 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:50:9: '<--'
\r
235 state.type = _type;
\r
236 state.channel = _channel;
\r
241 // $ANTLR end "T__69"
\r
243 // $ANTLR start "T__70"
\r
244 public final void mT__70() throws RecognitionException {
\r
247 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
248 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:51:7: ( '-->' )
\r
249 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:51:9: '-->'
\r
256 state.type = _type;
\r
257 state.channel = _channel;
\r
262 // $ANTLR end "T__70"
\r
264 // $ANTLR start "T__71"
\r
265 public final void mT__71() throws RecognitionException {
\r
268 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
269 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:52:7: ( '==>' )
\r
270 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:52:9: '==>'
\r
277 state.type = _type;
\r
278 state.channel = _channel;
\r
283 // $ANTLR end "T__71"
\r
285 // $ANTLR start "T__72"
\r
286 public final void mT__72() throws RecognitionException {
\r
289 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
290 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:53:7: ( '>--' )
\r
291 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:53:9: '>--'
\r
298 state.type = _type;
\r
299 state.channel = _channel;
\r
304 // $ANTLR end "T__72"
\r
306 // $ANTLR start "T__73"
\r
307 public final void mT__73() throws RecognitionException {
\r
310 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
311 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:54:7: ( ':' )
\r
312 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:54:9: ':'
\r
318 state.type = _type;
\r
319 state.channel = _channel;
\r
324 // $ANTLR end "T__73"
\r
326 // $ANTLR start "T__74"
\r
327 public final void mT__74() throws RecognitionException {
\r
330 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
331 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:55:7: ( '=' )
\r
332 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:55:9: '='
\r
338 state.type = _type;
\r
339 state.channel = _channel;
\r
344 // $ANTLR end "T__74"
\r
346 // $ANTLR start "T__75"
\r
347 public final void mT__75() throws RecognitionException {
\r
350 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
351 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:56:7: ( '%' )
\r
352 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:56:9: '%'
\r
358 state.type = _type;
\r
359 state.channel = _channel;
\r
364 // $ANTLR end "T__75"
\r
366 // $ANTLR start "T__76"
\r
367 public final void mT__76() throws RecognitionException {
\r
370 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
371 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:57:7: ( '$' )
\r
372 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:57:9: '$'
\r
378 state.type = _type;
\r
379 state.channel = _channel;
\r
384 // $ANTLR end "T__76"
\r
386 // $ANTLR start "T__77"
\r
387 public final void mT__77() throws RecognitionException {
\r
390 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
391 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:58:7: ( '|' )
\r
392 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:58:9: '|'
\r
398 state.type = _type;
\r
399 state.channel = _channel;
\r
404 // $ANTLR end "T__77"
\r
406 // $ANTLR start "T__78"
\r
407 public final void mT__78() throws RecognitionException {
\r
410 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
411 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:59:7: ( ',' )
\r
412 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:59:9: ','
\r
418 state.type = _type;
\r
419 state.channel = _channel;
\r
424 // $ANTLR end "T__78"
\r
426 // $ANTLR start "T__79"
\r
427 public final void mT__79() throws RecognitionException {
\r
430 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
431 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:60:7: ( 'true' )
\r
432 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:60:9: 'true'
\r
439 state.type = _type;
\r
440 state.channel = _channel;
\r
445 // $ANTLR end "T__79"
\r
447 // $ANTLR start "T__80"
\r
448 public final void mT__80() throws RecognitionException {
\r
451 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
452 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:61:7: ( 'false' )
\r
453 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:61:9: 'false'
\r
460 state.type = _type;
\r
461 state.channel = _channel;
\r
466 // $ANTLR end "T__80"
\r
468 // $ANTLR start "ID"
\r
469 public final void mID() throws RecognitionException {
\r
472 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
473 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:108:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )
\r
474 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:108:7: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
\r
476 if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
\r
481 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
485 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:108:31: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*
\r
489 int LA1_0 = input.LA(1);
\r
491 if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) {
\r
498 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:
\r
500 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') ) {
\r
505 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
521 state.type = _type;
\r
522 state.channel = _channel;
\r
529 // $ANTLR start "COMMENT"
\r
530 public final void mCOMMENT() throws RecognitionException {
\r
532 int _type = COMMENT;
\r
533 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
534 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:112:5: ( '//' (~ ( '\\n' ) )* | '/*' ( options {greedy=false; } : . )* '*/' )
\r
536 int LA4_0 = input.LA(1);
\r
538 if ( (LA4_0=='/') ) {
\r
539 int LA4_1 = input.LA(2);
\r
541 if ( (LA4_1=='/') ) {
\r
544 else if ( (LA4_1=='*') ) {
\r
548 NoViableAltException nvae =
\r
549 new NoViableAltException("", 4, 1, input);
\r
555 NoViableAltException nvae =
\r
556 new NoViableAltException("", 4, 0, input);
\r
562 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:112:9: '//' (~ ( '\\n' ) )*
\r
566 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:112:14: (~ ( '\\n' ) )*
\r
570 int LA2_0 = input.LA(1);
\r
572 if ( ((LA2_0>='\u0000' && LA2_0<='\t')||(LA2_0>='\u000B' && LA2_0<='\uFFFF')) ) {
\r
579 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:112:14: ~ ( '\\n' )
\r
581 if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\uFFFF') ) {
\r
586 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
604 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:113:9: '/*' ( options {greedy=false; } : . )* '*/'
\r
608 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:113:14: ( options {greedy=false; } : . )*
\r
612 int LA3_0 = input.LA(1);
\r
614 if ( (LA3_0=='*') ) {
\r
615 int LA3_1 = input.LA(2);
\r
617 if ( (LA3_1=='/') ) {
\r
620 else if ( ((LA3_1>='\u0000' && LA3_1<='.')||(LA3_1>='0' && LA3_1<='\uFFFF')) ) {
\r
626 else if ( ((LA3_0>='\u0000' && LA3_0<=')')||(LA3_0>='+' && LA3_0<='\uFFFF')) ) {
\r
633 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:113:42: .
\r
653 state.type = _type;
\r
654 state.channel = _channel;
\r
659 // $ANTLR end "COMMENT"
\r
661 // $ANTLR start "WS"
\r
662 public final void mWS() throws RecognitionException {
\r
665 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
666 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:116:5: ( ( ' ' | '\\t' | '\\r' ) )
\r
667 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:116:7: ( ' ' | '\\t' | '\\r' )
\r
669 if ( input.LA(1)=='\t'||input.LA(1)=='\r'||input.LA(1)==' ' ) {
\r
674 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
682 state.type = _type;
\r
683 state.channel = _channel;
\r
690 // $ANTLR start "LPAREN"
\r
691 public final void mLPAREN() throws RecognitionException {
\r
693 int _type = LPAREN;
\r
694 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
695 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:122:11: ( '(' )
\r
696 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:122:13: '('
\r
703 state.type = _type;
\r
704 state.channel = _channel;
\r
709 // $ANTLR end "LPAREN"
\r
711 // $ANTLR start "RPAREN"
\r
712 public final void mRPAREN() throws RecognitionException {
\r
714 int _type = RPAREN;
\r
715 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
716 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:123:11: ( ')' )
\r
717 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:123:13: ')'
\r
724 state.type = _type;
\r
725 state.channel = _channel;
\r
730 // $ANTLR end "RPAREN"
\r
732 // $ANTLR start "LBRACKET"
\r
733 public final void mLBRACKET() throws RecognitionException {
\r
735 int _type = LBRACKET;
\r
736 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
737 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:124:11: ( '[' )
\r
738 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:124:13: '['
\r
745 state.type = _type;
\r
746 state.channel = _channel;
\r
751 // $ANTLR end "LBRACKET"
\r
753 // $ANTLR start "RBRACKET"
\r
754 public final void mRBRACKET() throws RecognitionException {
\r
756 int _type = RBRACKET;
\r
757 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
758 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:125:11: ( ']' )
\r
759 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:125:13: ']'
\r
766 state.type = _type;
\r
767 state.channel = _channel;
\r
772 // $ANTLR end "RBRACKET"
\r
774 // $ANTLR start "LCURLY"
\r
775 public final void mLCURLY() throws RecognitionException {
\r
777 int _type = LCURLY;
\r
778 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
779 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:126:11: ( '{' )
\r
780 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:126:13: '{'
\r
787 state.type = _type;
\r
788 state.channel = _channel;
\r
793 // $ANTLR end "LCURLY"
\r
795 // $ANTLR start "RCURLY"
\r
796 public final void mRCURLY() throws RecognitionException {
\r
798 int _type = RCURLY;
\r
799 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
800 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:127:11: ( '}' )
\r
801 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:127:13: '}'
\r
808 state.type = _type;
\r
809 state.channel = _channel;
\r
814 // $ANTLR end "RCURLY"
\r
816 // $ANTLR start "INT_RANGE"
\r
817 public final void mINT_RANGE() throws RecognitionException {
\r
819 int _type = INT_RANGE;
\r
820 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
821 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:129:11: ( INT '..' ( INT )? | '..' INT )
\r
823 int LA6_0 = input.LA(1);
\r
825 if ( (LA6_0=='-'||(LA6_0>='0' && LA6_0<='9')) ) {
\r
828 else if ( (LA6_0=='.') ) {
\r
832 NoViableAltException nvae =
\r
833 new NoViableAltException("", 6, 0, input);
\r
839 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:129:13: INT '..' ( INT )?
\r
844 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:129:22: ( INT )?
\r
846 int LA5_0 = input.LA(1);
\r
848 if ( (LA5_0=='-'||(LA5_0>='0' && LA5_0<='9')) ) {
\r
853 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:129:22: INT
\r
866 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:130:13: '..' INT
\r
876 state.type = _type;
\r
877 state.channel = _channel;
\r
882 // $ANTLR end "INT_RANGE"
\r
884 // $ANTLR start "RANGE"
\r
885 public final void mRANGE() throws RecognitionException {
\r
888 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
889 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:132:11: ( FLOAT '..' ( FLOAT | INT )? | '..' FLOAT | INT '..' FLOAT )
\r
891 alt8 = dfa8.predict(input);
\r
894 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:132:13: FLOAT '..' ( FLOAT | INT )?
\r
899 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:132:24: ( FLOAT | INT )?
\r
901 alt7 = dfa7.predict(input);
\r
904 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:132:25: FLOAT
\r
911 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:132:33: INT
\r
924 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:133:13: '..' FLOAT
\r
933 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:134:13: INT '..' FLOAT
\r
944 state.type = _type;
\r
945 state.channel = _channel;
\r
950 // $ANTLR end "RANGE"
\r
952 // $ANTLR start "NEWLINE"
\r
953 public final void mNEWLINE() throws RecognitionException {
\r
955 int _type = NEWLINE;
\r
956 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
958 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:139:5: ( '\\n' ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )* )
\r
959 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:139:7: '\\n' ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )*
\r
962 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:140:7: ( ' ' | '//' (~ ( '\\n' ) )* '\\n' | '/*' ( options {greedy=false; } : . )* '*/' | '\\r' | '\\n' )*
\r
966 switch ( input.LA(1) ) {
\r
974 int LA11_3 = input.LA(2);
\r
976 if ( (LA11_3=='/') ) {
\r
979 else if ( (LA11_3=='*') ) {
\r
1001 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:140:9: ' '
\r
1009 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:141:9: '//' (~ ( '\\n' ) )* '\\n'
\r
1013 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:141:14: (~ ( '\\n' ) )*
\r
1017 int LA9_0 = input.LA(1);
\r
1019 if ( ((LA9_0>='\u0000' && LA9_0<='\t')||(LA9_0>='\u000B' && LA9_0<='\uFFFF')) ) {
\r
1026 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:141:14: ~ ( '\\n' )
\r
1028 if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\uFFFF') ) {
\r
1033 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1052 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:142:9: '/*' ( options {greedy=false; } : . )* '*/'
\r
1056 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:142:14: ( options {greedy=false; } : . )*
\r
1060 int LA10_0 = input.LA(1);
\r
1062 if ( (LA10_0=='*') ) {
\r
1063 int LA10_1 = input.LA(2);
\r
1065 if ( (LA10_1=='/') ) {
\r
1068 else if ( ((LA10_1>='\u0000' && LA10_1<='.')||(LA10_1>='0' && LA10_1<='\uFFFF')) ) {
\r
1074 else if ( ((LA10_0>='\u0000' && LA10_0<=')')||(LA10_0>='+' && LA10_0<='\uFFFF')) ) {
\r
1081 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:142:42: .
\r
1099 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:143:9: '\\r'
\r
1106 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:144:9: '\\n'
\r
1120 int c = input.LA(1);
\r
1123 _channel = HIDDEN;
\r
1125 else if(c == EOF) {
\r
1126 while(iStack.size() > 1) {
\r
1127 iStack.removeAt(iStack.size()-1);
\r
1128 state.type = DEDENT;
\r
1131 _channel = HIDDEN;
\r
1135 int stackTop = iStack.get(iStack.size()-1);
\r
1136 if(spaces > stackTop) {
\r
1137 iStack.add(spaces);
\r
1140 else if(spaces < stackTop) {
\r
1141 while(spaces < iStack.get(iStack.size()-1)) {
\r
1142 iStack.removeAt(iStack.size()-1);
\r
1143 state.type = DEDENT;
\r
1146 state.type = NEWLINE;
\r
1148 // TODO check that spaces == iStack.get(iStack.size()-1)
\r
1155 state.type = _type;
\r
1156 state.channel = _channel;
\r
1161 // $ANTLR end "NEWLINE"
\r
1163 // $ANTLR start "INDENT"
\r
1164 public final void mINDENT() throws RecognitionException {
\r
1166 int _type = INDENT;
\r
1167 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1168 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:181:7: ({...}? => 'INDENT' )
\r
1169 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:181:9: {...}? => 'INDENT'
\r
1171 if ( !(( false )) ) {
\r
1172 throw new FailedPredicateException(input, "INDENT", " false ");
\r
1179 state.type = _type;
\r
1180 state.channel = _channel;
\r
1185 // $ANTLR end "INDENT"
\r
1187 // $ANTLR start "DEDENT"
\r
1188 public final void mDEDENT() throws RecognitionException {
\r
1190 int _type = DEDENT;
\r
1191 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1192 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:182:7: ({...}? => 'DEDENT' )
\r
1193 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:182:9: {...}? => 'DEDENT'
\r
1195 if ( !(( false )) ) {
\r
1196 throw new FailedPredicateException(input, "DEDENT", " false ");
\r
1203 state.type = _type;
\r
1204 state.channel = _channel;
\r
1209 // $ANTLR end "DEDENT"
\r
1211 // $ANTLR start "INT"
\r
1212 public final void mINT() throws RecognitionException {
\r
1215 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1216 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:5: ( ( '-' )? ( '0' .. '9' )+ )
\r
1217 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:7: ( '-' )? ( '0' .. '9' )+
\r
1219 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:7: ( '-' )?
\r
1221 int LA12_0 = input.LA(1);
\r
1223 if ( (LA12_0=='-') ) {
\r
1228 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:7: '-'
\r
1237 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:12: ( '0' .. '9' )+
\r
1242 int LA13_0 = input.LA(1);
\r
1244 if ( ((LA13_0>='0' && LA13_0<='9')) ) {
\r
1251 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:184:12: '0' .. '9'
\r
1253 matchRange('0','9');
\r
1259 if ( cnt13 >= 1 ) break loop13;
\r
1260 EarlyExitException eee =
\r
1261 new EarlyExitException(13, input);
\r
1270 state.type = _type;
\r
1271 state.channel = _channel;
\r
1276 // $ANTLR end "INT"
\r
1278 // $ANTLR start "FLOAT"
\r
1279 public final void mFLOAT() throws RecognitionException {
\r
1281 int _type = FLOAT;
\r
1282 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1283 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:188:5: ( ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT ) )
\r
1284 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:188:7: ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
\r
1286 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:188:7: ( '-' )?
\r
1288 int LA14_0 = input.LA(1);
\r
1290 if ( (LA14_0=='-') ) {
\r
1295 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:188:7: '-'
\r
1304 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
\r
1306 alt19 = dfa19.predict(input);
\r
1309 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:7: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )?
\r
1311 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:7: ( '0' .. '9' )+
\r
1316 int LA15_0 = input.LA(1);
\r
1318 if ( ((LA15_0>='0' && LA15_0<='9')) ) {
\r
1325 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:8: '0' .. '9'
\r
1327 matchRange('0','9');
\r
1333 if ( cnt15 >= 1 ) break loop15;
\r
1334 EarlyExitException eee =
\r
1335 new EarlyExitException(15, input);
\r
1342 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:23: ( '0' .. '9' )*
\r
1346 int LA16_0 = input.LA(1);
\r
1348 if ( ((LA16_0>='0' && LA16_0<='9')) ) {
\r
1355 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:24: '0' .. '9'
\r
1357 matchRange('0','9');
\r
1367 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:35: ( EXPONENT )?
\r
1369 int LA17_0 = input.LA(1);
\r
1371 if ( (LA17_0=='E'||LA17_0=='e') ) {
\r
1376 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:189:35: EXPONENT
\r
1389 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:190:7: ( '0' .. '9' )+ EXPONENT
\r
1391 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:190:7: ( '0' .. '9' )+
\r
1396 int LA18_0 = input.LA(1);
\r
1398 if ( ((LA18_0>='0' && LA18_0<='9')) ) {
\r
1405 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:190:8: '0' .. '9'
\r
1407 matchRange('0','9');
\r
1413 if ( cnt18 >= 1 ) break loop18;
\r
1414 EarlyExitException eee =
\r
1415 new EarlyExitException(18, input);
\r
1431 state.type = _type;
\r
1432 state.channel = _channel;
\r
1437 // $ANTLR end "FLOAT"
\r
1439 // $ANTLR start "STRING"
\r
1440 public final void mSTRING() throws RecognitionException {
\r
1442 int _type = STRING;
\r
1443 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1444 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:195:5: ( '\"' ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )* '\"' | '\"\"\"' (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )* '\"\"\"' )
\r
1446 int LA22_0 = input.LA(1);
\r
1448 if ( (LA22_0=='\"') ) {
\r
1449 int LA22_1 = input.LA(2);
\r
1451 if ( (LA22_1=='\"') ) {
\r
1452 int LA22_2 = input.LA(3);
\r
1454 if ( (LA22_2=='\"') ) {
\r
1460 else if ( ((LA22_1>='\u0000' && LA22_1<='!')||(LA22_1>='#' && LA22_1<='\uFFFF')) ) {
\r
1464 NoViableAltException nvae =
\r
1465 new NoViableAltException("", 22, 1, input);
\r
1471 NoViableAltException nvae =
\r
1472 new NoViableAltException("", 22, 0, input);
\r
1478 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:195:8: '\"' ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )* '\"'
\r
1481 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:195:12: ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )*
\r
1485 int LA20_0 = input.LA(1);
\r
1487 if ( (LA20_0=='\\') ) {
\r
1490 else if ( ((LA20_0>='\u0000' && LA20_0<='!')||(LA20_0>='#' && LA20_0<='[')||(LA20_0>=']' && LA20_0<='\uFFFF')) ) {
\r
1497 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:195:14: ESC_SEQ
\r
1504 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:195:24: ~ ( '\\\\' | '\"' )
\r
1506 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
\r
1511 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1529 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:196:8: '\"\"\"' (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )* '\"\"\"'
\r
1533 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:196:14: (~ ( '\"' ) | '\"' ~ ( '\"' ) | '\"\"' ~ ( '\"' ) )*
\r
1537 int LA21_0 = input.LA(1);
\r
1539 if ( (LA21_0=='\"') ) {
\r
1540 int LA21_1 = input.LA(2);
\r
1542 if ( (LA21_1=='\"') ) {
\r
1543 int LA21_3 = input.LA(3);
\r
1545 if ( ((LA21_3>='\u0000' && LA21_3<='!')||(LA21_3>='#' && LA21_3<='\uFFFF')) ) {
\r
1551 else if ( ((LA21_1>='\u0000' && LA21_1<='!')||(LA21_1>='#' && LA21_1<='\uFFFF')) ) {
\r
1557 else if ( ((LA21_0>='\u0000' && LA21_0<='!')||(LA21_0>='#' && LA21_0<='\uFFFF')) ) {
\r
1564 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:196:16: ~ ( '\"' )
\r
1566 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='\uFFFF') ) {
\r
1571 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1579 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:196:25: '\"' ~ ( '\"' )
\r
1582 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='\uFFFF') ) {
\r
1587 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1595 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:196:38: '\"\"' ~ ( '\"' )
\r
1599 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='\uFFFF') ) {
\r
1604 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1624 state.type = _type;
\r
1625 state.channel = _channel;
\r
1630 // $ANTLR end "STRING"
\r
1632 // $ANTLR start "URI"
\r
1633 public final void mURI() throws RecognitionException {
\r
1636 int _channel = DEFAULT_TOKEN_CHANNEL;
\r
1637 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:200:5: ( '<http:' (~ ( '>' ) )* '>' )
\r
1638 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:200:8: '<http:' (~ ( '>' ) )* '>'
\r
1642 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:200:17: (~ ( '>' ) )*
\r
1646 int LA23_0 = input.LA(1);
\r
1648 if ( ((LA23_0>='\u0000' && LA23_0<='=')||(LA23_0>='?' && LA23_0<='\uFFFF')) ) {
\r
1655 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:200:19: ~ ( '>' )
\r
1657 if ( (input.LA(1)>='\u0000' && input.LA(1)<='=')||(input.LA(1)>='?' && input.LA(1)<='\uFFFF') ) {
\r
1662 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1679 state.type = _type;
\r
1680 state.channel = _channel;
\r
1685 // $ANTLR end "URI"
\r
1687 // $ANTLR start "EXPONENT"
\r
1688 public final void mEXPONENT() throws RecognitionException {
\r
1690 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:204:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
\r
1691 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:204:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
\r
1693 if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
\r
1698 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1702 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:204:22: ( '+' | '-' )?
\r
1704 int LA24_0 = input.LA(1);
\r
1706 if ( (LA24_0=='+'||LA24_0=='-') ) {
\r
1711 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:
\r
1713 if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
\r
1718 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1728 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:204:33: ( '0' .. '9' )+
\r
1733 int LA25_0 = input.LA(1);
\r
1735 if ( ((LA25_0>='0' && LA25_0<='9')) ) {
\r
1742 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:204:34: '0' .. '9'
\r
1744 matchRange('0','9');
\r
1750 if ( cnt25 >= 1 ) break loop25;
\r
1751 EarlyExitException eee =
\r
1752 new EarlyExitException(25, input);
\r
1765 // $ANTLR end "EXPONENT"
\r
1767 // $ANTLR start "HEX_DIGIT"
\r
1768 public final void mHEX_DIGIT() throws RecognitionException {
\r
1770 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:207:11: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
\r
1771 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:207:13: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
\r
1773 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') ) {
\r
1778 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1789 // $ANTLR end "HEX_DIGIT"
\r
1791 // $ANTLR start "ESC_SEQ"
\r
1792 public final void mESC_SEQ() throws RecognitionException {
\r
1794 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:211:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UNICODE_ESC )
\r
1796 int LA26_0 = input.LA(1);
\r
1798 if ( (LA26_0=='\\') ) {
\r
1799 int LA26_1 = input.LA(2);
\r
1801 if ( (LA26_1=='\"'||LA26_1=='\''||LA26_1=='\\'||LA26_1=='b'||LA26_1=='f'||LA26_1=='n'||LA26_1=='r'||LA26_1=='t') ) {
\r
1804 else if ( (LA26_1=='u') ) {
\r
1808 NoViableAltException nvae =
\r
1809 new NoViableAltException("", 26, 1, input);
\r
1815 NoViableAltException nvae =
\r
1816 new NoViableAltException("", 26, 0, input);
\r
1822 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:211:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
\r
1825 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' ) {
\r
1830 MismatchedSetException mse = new MismatchedSetException(null,input);
\r
1838 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:212:9: UNICODE_ESC
\r
1850 // $ANTLR end "ESC_SEQ"
\r
1852 // $ANTLR start "UNICODE_ESC"
\r
1853 public final void mUNICODE_ESC() throws RecognitionException {
\r
1855 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:217:5: ( '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
\r
1856 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:217:9: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
\r
1871 // $ANTLR end "UNICODE_ESC"
\r
1873 public void mTokens() throws RecognitionException {
\r
1874 // 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 )
\r
1876 alt27 = dfa27.predict(input);
\r
1879 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:10: T__65
\r
1886 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:16: T__66
\r
1893 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:22: T__67
\r
1900 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:28: T__68
\r
1907 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:34: T__69
\r
1914 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:40: T__70
\r
1921 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:46: T__71
\r
1928 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:52: T__72
\r
1935 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:58: T__73
\r
1942 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:64: T__74
\r
1949 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:70: T__75
\r
1956 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:76: T__76
\r
1963 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:82: T__77
\r
1970 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:88: T__78
\r
1977 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:94: T__79
\r
1984 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:100: T__80
\r
1991 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:106: ID
\r
1998 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:109: COMMENT
\r
2005 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:117: WS
\r
2012 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:120: LPAREN
\r
2019 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:127: RPAREN
\r
2026 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:134: LBRACKET
\r
2033 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:143: RBRACKET
\r
2040 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:152: LCURLY
\r
2047 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:159: RCURLY
\r
2054 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:166: INT_RANGE
\r
2061 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:176: RANGE
\r
2068 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:182: NEWLINE
\r
2075 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:190: INDENT
\r
2082 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:197: DEDENT
\r
2089 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:204: INT
\r
2096 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:208: FLOAT
\r
2103 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:214: STRING
\r
2110 // src\\org\\simantics\\graph\\compiler\\internal\\parsing\\Graph.g:1:221: URI
\r
2122 protected DFA8 dfa8 = new DFA8(this);
\r
2123 protected DFA7 dfa7 = new DFA7(this);
\r
2124 protected DFA19 dfa19 = new DFA19(this);
\r
2125 protected DFA27 dfa27 = new DFA27(this);
\r
2126 static final String DFA8_eotS =
\r
2128 static final String DFA8_eofS =
\r
2130 static final String DFA8_minS =
\r
2131 "\1\55\1\60\1\56\1\uffff\1\56\1\uffff\1\55\1\uffff";
\r
2132 static final String DFA8_maxS =
\r
2133 "\2\71\1\145\1\uffff\1\145\1\uffff\1\71\1\uffff";
\r
2134 static final String DFA8_acceptS =
\r
2135 "\3\uffff\1\2\1\uffff\1\1\1\uffff\1\3";
\r
2136 static final String DFA8_specialS =
\r
2138 static final String[] DFA8_transitionS = {
\r
2139 "\1\1\1\3\1\uffff\12\2",
\r
2141 "\1\4\1\uffff\12\2\13\uffff\1\5\37\uffff\1\5",
\r
2143 "\1\6\1\uffff\12\5\13\uffff\1\5\37\uffff\1\5",
\r
2145 "\1\7\1\5\1\uffff\12\7",
\r
2149 static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS);
\r
2150 static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS);
\r
2151 static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS);
\r
2152 static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS);
\r
2153 static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS);
\r
2154 static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS);
\r
2155 static final short[][] DFA8_transition;
\r
2158 int numStates = DFA8_transitionS.length;
\r
2159 DFA8_transition = new short[numStates][];
\r
2160 for (int i=0; i<numStates; i++) {
\r
2161 DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]);
\r
2165 class DFA8 extends DFA {
\r
2167 public DFA8(BaseRecognizer recognizer) {
\r
2168 this.recognizer = recognizer;
\r
2169 this.decisionNumber = 8;
\r
2170 this.eot = DFA8_eot;
\r
2171 this.eof = DFA8_eof;
\r
2172 this.min = DFA8_min;
\r
2173 this.max = DFA8_max;
\r
2174 this.accept = DFA8_accept;
\r
2175 this.special = DFA8_special;
\r
2176 this.transition = DFA8_transition;
\r
2178 public String getDescription() {
\r
2179 return "132:1: RANGE : ( FLOAT '..' ( FLOAT | INT )? | '..' FLOAT | INT '..' FLOAT );";
\r
2182 static final String DFA7_eotS =
\r
2183 "\1\3\1\uffff\1\5\3\uffff";
\r
2184 static final String DFA7_eofS =
\r
2186 static final String DFA7_minS =
\r
2187 "\1\55\1\60\1\56\3\uffff";
\r
2188 static final String DFA7_maxS =
\r
2189 "\2\71\1\145\3\uffff";
\r
2190 static final String DFA7_acceptS =
\r
2191 "\3\uffff\1\3\1\1\1\2";
\r
2192 static final String DFA7_specialS =
\r
2194 static final String[] DFA7_transitionS = {
\r
2195 "\1\1\2\uffff\12\2",
\r
2197 "\1\4\1\uffff\12\2\13\uffff\1\4\37\uffff\1\4",
\r
2203 static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS);
\r
2204 static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS);
\r
2205 static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS);
\r
2206 static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS);
\r
2207 static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS);
\r
2208 static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS);
\r
2209 static final short[][] DFA7_transition;
\r
2212 int numStates = DFA7_transitionS.length;
\r
2213 DFA7_transition = new short[numStates][];
\r
2214 for (int i=0; i<numStates; i++) {
\r
2215 DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]);
\r
2219 class DFA7 extends DFA {
\r
2221 public DFA7(BaseRecognizer recognizer) {
\r
2222 this.recognizer = recognizer;
\r
2223 this.decisionNumber = 7;
\r
2224 this.eot = DFA7_eot;
\r
2225 this.eof = DFA7_eof;
\r
2226 this.min = DFA7_min;
\r
2227 this.max = DFA7_max;
\r
2228 this.accept = DFA7_accept;
\r
2229 this.special = DFA7_special;
\r
2230 this.transition = DFA7_transition;
\r
2232 public String getDescription() {
\r
2233 return "132:24: ( FLOAT | INT )?";
\r
2236 static final String DFA19_eotS =
\r
2238 static final String DFA19_eofS =
\r
2240 static final String DFA19_minS =
\r
2241 "\1\60\1\56\2\uffff";
\r
2242 static final String DFA19_maxS =
\r
2243 "\1\71\1\145\2\uffff";
\r
2244 static final String DFA19_acceptS =
\r
2245 "\2\uffff\1\1\1\2";
\r
2246 static final String DFA19_specialS =
\r
2248 static final String[] DFA19_transitionS = {
\r
2250 "\1\2\1\uffff\12\1\13\uffff\1\3\37\uffff\1\3",
\r
2255 static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS);
\r
2256 static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS);
\r
2257 static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS);
\r
2258 static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS);
\r
2259 static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS);
\r
2260 static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS);
\r
2261 static final short[][] DFA19_transition;
\r
2264 int numStates = DFA19_transitionS.length;
\r
2265 DFA19_transition = new short[numStates][];
\r
2266 for (int i=0; i<numStates; i++) {
\r
2267 DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]);
\r
2271 class DFA19 extends DFA {
\r
2273 public DFA19(BaseRecognizer recognizer) {
\r
2274 this.recognizer = recognizer;
\r
2275 this.decisionNumber = 19;
\r
2276 this.eot = DFA19_eot;
\r
2277 this.eof = DFA19_eof;
\r
2278 this.min = DFA19_min;
\r
2279 this.max = DFA19_max;
\r
2280 this.accept = DFA19_accept;
\r
2281 this.special = DFA19_special;
\r
2282 this.transition = DFA19_transition;
\r
2284 public String getDescription() {
\r
2285 return "189:5: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )";
\r
2288 static final String DFA27_eotS =
\r
2289 "\2\uffff\1\35\2\uffff\1\44\6\uffff\3\32\10\uffff\1\50\1\uffff\1"+
\r
2290 "\32\13\uffff\3\32\1\uffff\1\64\1\uffff\1\32\1\uffff\1\70\3\32\1"+
\r
2291 "\70\1\64\3\uffff\1\64\1\32\2\uffff\1\102\2\32\1\uffff\1\70\1\uffff"+
\r
2292 "\1\64\1\32\1\uffff\1\106\2\32\1\uffff\1\111\1\112\4\uffff";
\r
2293 static final String DFA27_eofS =
\r
2295 static final String DFA27_minS =
\r
2296 "\1\11\1\uffff\1\56\2\55\1\75\6\uffff\1\162\1\141\1\116\10\uffff"+
\r
2297 "\1\56\1\uffff\1\105\2\uffff\1\55\10\uffff\1\165\1\154\1\104\1\uffff"+
\r
2298 "\1\56\1\53\1\104\1\60\1\56\1\145\1\163\1\105\1\55\1\56\1\53\1\uffff"+
\r
2299 "\1\60\1\56\1\105\2\uffff\1\60\1\145\1\116\1\60\1\56\1\60\1\56\1"+
\r
2300 "\116\1\uffff\1\60\2\124\1\uffff\2\60\2\0\2\uffff";
\r
2301 static final String DFA27_maxS =
\r
2302 "\1\175\1\uffff\1\56\1\150\1\71\1\75\6\uffff\1\162\1\141\1\116\10"+
\r
2303 "\uffff\1\145\1\uffff\1\105\2\uffff\1\71\10\uffff\1\165\1\154\1\104"+
\r
2304 "\1\uffff\1\145\1\71\1\104\1\71\2\145\1\163\1\105\1\71\1\145\1\71"+
\r
2305 "\1\uffff\2\71\1\105\2\uffff\1\172\1\145\1\116\1\71\1\145\2\71\1"+
\r
2306 "\116\1\uffff\1\172\2\124\1\uffff\2\172\2\0\2\uffff";
\r
2307 static final String DFA27_acceptS =
\r
2308 "\1\uffff\1\1\4\uffff\1\10\1\11\1\13\1\14\1\15\1\16\3\uffff\1\22"+
\r
2309 "\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\uffff\1\34\1\uffff\1\21\1"+
\r
2310 "\41\1\uffff\1\2\1\3\1\4\1\5\1\42\1\6\1\7\1\12\3\uffff\1\37\13\uffff"+
\r
2311 "\1\40\3\uffff\1\32\1\33\10\uffff\1\17\3\uffff\1\20\4\uffff\1\35"+
\r
2313 static final String DFA27_specialS =
\r
2314 "\111\uffff\1\1\1\0\2\uffff}>";
\r
2315 static final String[] DFA27_transitionS = {
\r
2316 "\1\20\1\30\2\uffff\1\20\22\uffff\1\20\1\uffff\1\33\1\uffff"+
\r
2317 "\1\11\1\10\2\uffff\1\21\1\22\2\uffff\1\13\1\4\1\2\1\17\12\27"+
\r
2318 "\1\7\1\uffff\1\3\1\5\1\6\1\uffff\1\1\3\32\1\31\4\32\1\16\21"+
\r
2319 "\32\1\23\1\uffff\1\24\1\uffff\1\32\1\uffff\5\32\1\15\15\32\1"+
\r
2320 "\14\6\32\1\25\1\12\1\26",
\r
2323 "\1\40\44\uffff\1\37\1\uffff\1\36\23\uffff\1\41",
\r
2324 "\1\42\2\uffff\12\27",
\r
2343 "\1\51\1\uffff\12\27\13\uffff\1\52\37\uffff\1\52",
\r
2348 "\1\54\2\uffff\12\55",
\r
2361 "\1\61\1\uffff\12\62\13\uffff\1\63\37\uffff\1\63",
\r
2362 "\1\65\1\uffff\1\65\2\uffff\12\66",
\r
2365 "\1\71\1\uffff\12\55\13\uffff\1\71\37\uffff\1\71",
\r
2369 "\1\75\1\71\1\uffff\12\76",
\r
2370 "\1\71\1\uffff\12\62\13\uffff\1\63\37\uffff\1\63",
\r
2371 "\1\77\1\uffff\1\77\2\uffff\12\100",
\r
2374 "\1\71\1\uffff\12\66",
\r
2378 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
\r
2382 "\1\71\1\uffff\12\76\13\uffff\1\71\37\uffff\1\71",
\r
2384 "\1\71\1\uffff\12\100",
\r
2387 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
\r
2391 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
\r
2392 "\12\32\7\uffff\32\32\4\uffff\1\32\1\uffff\32\32",
\r
2399 static final short[] DFA27_eot = DFA.unpackEncodedString(DFA27_eotS);
\r
2400 static final short[] DFA27_eof = DFA.unpackEncodedString(DFA27_eofS);
\r
2401 static final char[] DFA27_min = DFA.unpackEncodedStringToUnsignedChars(DFA27_minS);
\r
2402 static final char[] DFA27_max = DFA.unpackEncodedStringToUnsignedChars(DFA27_maxS);
\r
2403 static final short[] DFA27_accept = DFA.unpackEncodedString(DFA27_acceptS);
\r
2404 static final short[] DFA27_special = DFA.unpackEncodedString(DFA27_specialS);
\r
2405 static final short[][] DFA27_transition;
\r
2408 int numStates = DFA27_transitionS.length;
\r
2409 DFA27_transition = new short[numStates][];
\r
2410 for (int i=0; i<numStates; i++) {
\r
2411 DFA27_transition[i] = DFA.unpackEncodedString(DFA27_transitionS[i]);
\r
2415 class DFA27 extends DFA {
\r
2417 public DFA27(BaseRecognizer recognizer) {
\r
2418 this.recognizer = recognizer;
\r
2419 this.decisionNumber = 27;
\r
2420 this.eot = DFA27_eot;
\r
2421 this.eof = DFA27_eof;
\r
2422 this.min = DFA27_min;
\r
2423 this.max = DFA27_max;
\r
2424 this.accept = DFA27_accept;
\r
2425 this.special = DFA27_special;
\r
2426 this.transition = DFA27_transition;
\r
2428 public String getDescription() {
\r
2429 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 );";
\r
2431 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
\r
2432 IntStream input = _input;
\r
2436 int LA27_74 = input.LA(1);
\r
2439 int index27_74 = input.index();
\r
2442 if ( (!((( false )))) ) {s = 26;}
\r
2444 else if ( (( false )) ) {s = 76;}
\r
2447 input.seek(index27_74);
\r
2448 if ( s>=0 ) return s;
\r
2451 int LA27_73 = input.LA(1);
\r
2454 int index27_73 = input.index();
\r
2457 if ( (!((( false )))) ) {s = 26;}
\r
2459 else if ( (( false )) ) {s = 75;}
\r
2462 input.seek(index27_73);
\r
2463 if ( s>=0 ) return s;
\r
2466 NoViableAltException nvae =
\r
2467 new NoViableAltException(getDescription(), 27, _s, input);
\r