modl 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/grammar_tests/b.modl +1 -1
- data/grammar_tests/base_tests.json +2964 -1340
- data/grammar_tests/c.modl +1 -1
- data/grammar_tests/error_tests.json +3 -3
- data/grammar_tests/files/a-b.txt +1 -0
- data/grammar_tests/files/c-d.txt +1 -0
- data/lib/modl/parser/MODLLexer.interp +6 -10
- data/lib/modl/parser/MODLLexer.rb +226 -228
- data/lib/modl/parser/MODLLexer.tokens +25 -26
- data/lib/modl/parser/MODLParser.interp +2 -4
- data/lib/modl/parser/MODLParser.rb +356 -370
- data/lib/modl/parser/MODLParser.tokens +25 -26
- data/lib/modl/parser/evaluator.rb +4 -3
- data/lib/modl/parser/file_importer.rb +2 -2
- data/lib/modl/parser/modl_index.rb +1 -1
- data/lib/modl/parser/modl_method.rb +11 -7
- data/lib/modl/parser/parsed.rb +30 -14
- data/lib/modl/parser/ref_processor.rb +47 -11
- data/lib/modl/parser/substitutions.rb +9 -4
- data/lib/modl/parser/sutil.rb +8 -0
- data/lib/modl/parser/version.rb +1 -1
- metadata +4 -2
@@ -29,22 +29,21 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
29
29
|
RSBRAC=12
|
30
30
|
NUMBER=13
|
31
31
|
COMMENT=14
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
RCBRAC=30
|
32
|
+
QUOTED = 15
|
33
|
+
STRING = 16
|
34
|
+
HASH_PREFIX = 17
|
35
|
+
LCBRAC = 18
|
36
|
+
CWS = 19
|
37
|
+
QMARK = 20
|
38
|
+
FSLASH = 21
|
39
|
+
GTHAN = 22
|
40
|
+
LTHAN = 23
|
41
|
+
ASTERISK = 24
|
42
|
+
AMP = 25
|
43
|
+
PIPE = 26
|
44
|
+
EXCLAM = 27
|
45
|
+
CCOMMENT = 28
|
46
|
+
RCBRAC = 29
|
48
47
|
RULE_modl = 0
|
49
48
|
RULE_modl_structure = 1
|
50
49
|
RULE_modl_map = 2
|
@@ -81,17 +80,16 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
81
80
|
]
|
82
81
|
|
83
82
|
@@_LITERAL_NAMES = [
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
nil, nil, nil, nil, nil, nil, nil, nil, "','", nil, nil, nil, nil, nil,
|
84
|
+
nil, nil, nil, nil, "'{'", nil, "'?'", "'/'", "'>'", "'<'", "'*'", "'&'",
|
85
|
+
"'|'", "'!'", nil, "'}'"
|
87
86
|
]
|
88
87
|
|
89
88
|
@@_SYMBOLIC_NAMES = [
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
"RCBRAC"
|
89
|
+
nil, "WS", "NULL", "TRUE", "FALSE", "COLON", "EQUALS", "STRUCT_SEP",
|
90
|
+
"ARR_SEP", "LBRAC", "RBRAC", "LSBRAC", "RSBRAC", "NUMBER", "COMMENT",
|
91
|
+
"QUOTED", "STRING", "HASH_PREFIX", "LCBRAC", "CWS", "QMARK", "FSLASH",
|
92
|
+
"GTHAN", "LTHAN", "ASTERISK", "AMP", "PIPE", "EXCLAM", "CCOMMENT", "RCBRAC"
|
95
93
|
]
|
96
94
|
|
97
95
|
@@VOCABULARY = Antlr4::Runtime::VocabularyImpl.new(@@_LITERAL_NAMES, @@_SYMBOLIC_NAMES)
|
@@ -128,9 +126,9 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
128
126
|
end
|
129
127
|
|
130
128
|
class ModlContext < Antlr4::Runtime::ParserRuleContext
|
131
|
-
|
132
|
-
|
133
|
-
|
129
|
+
def EOF()
|
130
|
+
return token(MODLParser::EOF, 0)
|
131
|
+
end
|
134
132
|
def modl_structure()
|
135
133
|
return rule_contexts("Modl_structureContext")
|
136
134
|
end
|
@@ -150,22 +148,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
150
148
|
return RULE_modl
|
151
149
|
end
|
152
150
|
def enter_rule( listener)
|
153
|
-
|
151
|
+
if (listener.respond_to?(:enterModl))
|
154
152
|
listener.enterModl(self)
|
155
|
-
|
153
|
+
end
|
156
154
|
end
|
157
155
|
def exit_rule( listener)
|
158
|
-
|
156
|
+
if (listener.respond_to?(:exitModl))
|
159
157
|
listener.exitModl(self)
|
160
|
-
|
158
|
+
end
|
161
159
|
end
|
162
160
|
|
163
161
|
def accept(visitor)
|
164
|
-
|
162
|
+
if (visitor.respond_to?(:visitModl))
|
165
163
|
return visitor.visitModl(self)
|
166
|
-
|
164
|
+
else
|
167
165
|
return visitor.visit_children(self)
|
168
|
-
|
166
|
+
end
|
169
167
|
end
|
170
168
|
end
|
171
169
|
|
@@ -186,11 +184,11 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
186
184
|
@_state_number = 49
|
187
185
|
@_err_handler.sync(self)
|
188
186
|
_la = @_input.la(1)
|
189
|
-
|
187
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << LBRAC) | (1 << LSBRAC) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
|
190
188
|
|
191
189
|
@_state_number = 48
|
192
190
|
modl_structure()
|
193
|
-
|
191
|
+
end
|
194
192
|
|
195
193
|
|
196
194
|
when 2
|
@@ -257,22 +255,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
257
255
|
return RULE_modl_structure
|
258
256
|
end
|
259
257
|
def enter_rule( listener)
|
260
|
-
|
258
|
+
if (listener.respond_to?(:enterModl_structure))
|
261
259
|
listener.enterModl_structure(self)
|
262
|
-
|
260
|
+
end
|
263
261
|
end
|
264
262
|
def exit_rule( listener)
|
265
|
-
|
263
|
+
if (listener.respond_to?(:exitModl_structure))
|
266
264
|
listener.exitModl_structure(self)
|
267
|
-
|
265
|
+
end
|
268
266
|
end
|
269
267
|
|
270
268
|
def accept(visitor)
|
271
|
-
|
269
|
+
if (visitor.respond_to?(:visitModl_structure))
|
272
270
|
return visitor.visitModl_structure(self)
|
273
|
-
|
271
|
+
else
|
274
272
|
return visitor.visit_children(self)
|
275
|
-
|
273
|
+
end
|
276
274
|
end
|
277
275
|
end
|
278
276
|
|
@@ -282,33 +280,33 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
282
280
|
begin
|
283
281
|
@_state_number = 70
|
284
282
|
@_err_handler.sync(self)
|
285
|
-
|
286
|
-
|
283
|
+
case (@_input.la(1))
|
284
|
+
when MODLParser::LBRAC
|
287
285
|
enter_outer_alt(_localctx, 1)
|
288
286
|
|
289
287
|
@_state_number = 66
|
290
288
|
modl_map()
|
291
289
|
|
292
|
-
|
290
|
+
when MODLParser::LSBRAC
|
293
291
|
enter_outer_alt(_localctx, 2)
|
294
292
|
|
295
293
|
@_state_number = 67
|
296
294
|
modl_array()
|
297
295
|
|
298
|
-
|
296
|
+
when MODLParser::LCBRAC
|
299
297
|
enter_outer_alt(_localctx, 3)
|
300
298
|
|
301
299
|
@_state_number = 68
|
302
300
|
modl_top_level_conditional()
|
303
301
|
|
304
|
-
|
302
|
+
when MODLParser::QUOTED, MODLParser::STRING
|
305
303
|
enter_outer_alt(_localctx, 4)
|
306
304
|
|
307
305
|
@_state_number = 69
|
308
306
|
modl_pair()
|
309
|
-
|
307
|
+
else
|
310
308
|
raise Antlr4::Runtime::NoViableAltException, self
|
311
|
-
|
309
|
+
end
|
312
310
|
rescue Antlr4::Runtime::RecognitionException => re
|
313
311
|
_localctx.exception = re
|
314
312
|
@_err_handler.report_error(self, re)
|
@@ -345,22 +343,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
345
343
|
return RULE_modl_map
|
346
344
|
end
|
347
345
|
def enter_rule( listener)
|
348
|
-
|
346
|
+
if (listener.respond_to?(:enterModl_map))
|
349
347
|
listener.enterModl_map(self)
|
350
|
-
|
348
|
+
end
|
351
349
|
end
|
352
350
|
def exit_rule( listener)
|
353
|
-
|
351
|
+
if (listener.respond_to?(:exitModl_map))
|
354
352
|
listener.exitModl_map(self)
|
355
|
-
|
353
|
+
end
|
356
354
|
end
|
357
355
|
|
358
356
|
def accept(visitor)
|
359
|
-
|
357
|
+
if (visitor.respond_to?(:visitModl_map))
|
360
358
|
return visitor.visitModl_map(self)
|
361
|
-
|
359
|
+
else
|
362
360
|
return visitor.visit_children(self)
|
363
|
-
|
361
|
+
end
|
364
362
|
end
|
365
363
|
end
|
366
364
|
|
@@ -376,7 +374,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
376
374
|
@_state_number = 81
|
377
375
|
@_err_handler.sync(self)
|
378
376
|
_la = @_input.la(1)
|
379
|
-
|
377
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
|
380
378
|
|
381
379
|
@_state_number = 73
|
382
380
|
modl_map_item()
|
@@ -394,7 +392,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
394
392
|
@_err_handler.sync(self)
|
395
393
|
_la = @_input.la(1)
|
396
394
|
end
|
397
|
-
|
395
|
+
end
|
398
396
|
|
399
397
|
@_state_number = 83
|
400
398
|
match(RBRAC)
|
@@ -440,22 +438,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
440
438
|
return RULE_modl_array
|
441
439
|
end
|
442
440
|
def enter_rule( listener)
|
443
|
-
|
441
|
+
if (listener.respond_to?(:enterModl_array))
|
444
442
|
listener.enterModl_array(self)
|
445
|
-
|
443
|
+
end
|
446
444
|
end
|
447
445
|
def exit_rule( listener)
|
448
|
-
|
446
|
+
if (listener.respond_to?(:exitModl_array))
|
449
447
|
listener.exitModl_array(self)
|
450
|
-
|
448
|
+
end
|
451
449
|
end
|
452
450
|
|
453
451
|
def accept(visitor)
|
454
|
-
|
452
|
+
if (visitor.respond_to?(:visitModl_array))
|
455
453
|
return visitor.visitModl_array(self)
|
456
|
-
|
454
|
+
else
|
457
455
|
return visitor.visit_children(self)
|
458
|
-
|
456
|
+
end
|
459
457
|
end
|
460
458
|
end
|
461
459
|
|
@@ -472,7 +470,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
472
470
|
@_state_number = 110
|
473
471
|
@_err_handler.sync(self)
|
474
472
|
_la = @_input.la(1)
|
475
|
-
|
473
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
|
476
474
|
|
477
475
|
@_state_number = 88
|
478
476
|
@_err_handler.sync(self)
|
@@ -539,7 +537,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
539
537
|
@_err_handler.sync(self)
|
540
538
|
_la = @_input.la(1)
|
541
539
|
end
|
542
|
-
|
540
|
+
end
|
543
541
|
|
544
542
|
@_state_number = 112
|
545
543
|
match(RSBRAC)
|
@@ -573,22 +571,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
573
571
|
return RULE_modl_nb_array
|
574
572
|
end
|
575
573
|
def enter_rule( listener)
|
576
|
-
|
574
|
+
if (listener.respond_to?(:enterModl_nb_array))
|
577
575
|
listener.enterModl_nb_array(self)
|
578
|
-
|
576
|
+
end
|
579
577
|
end
|
580
578
|
def exit_rule( listener)
|
581
|
-
|
579
|
+
if (listener.respond_to?(:exitModl_nb_array))
|
582
580
|
listener.exitModl_nb_array(self)
|
583
|
-
|
581
|
+
end
|
584
582
|
end
|
585
583
|
|
586
584
|
def accept(visitor)
|
587
|
-
|
585
|
+
if (visitor.respond_to?(:visitModl_nb_array))
|
588
586
|
return visitor.visitModl_nb_array(self)
|
589
|
-
|
587
|
+
else
|
590
588
|
return visitor.visit_children(self)
|
591
|
-
|
589
|
+
end
|
592
590
|
end
|
593
591
|
end
|
594
592
|
|
@@ -683,18 +681,6 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
683
681
|
def QUOTED()
|
684
682
|
return token(MODLParser::QUOTED, 0)
|
685
683
|
end
|
686
|
-
def NUMBER()
|
687
|
-
return token(MODLParser::NUMBER, 0)
|
688
|
-
end
|
689
|
-
def NULL()
|
690
|
-
return token(MODLParser::NULL, 0)
|
691
|
-
end
|
692
|
-
def TRUE()
|
693
|
-
return token(MODLParser::TRUE, 0)
|
694
|
-
end
|
695
|
-
def FALSE()
|
696
|
-
return token(MODLParser::FALSE, 0)
|
697
|
-
end
|
698
684
|
def modl_map()
|
699
685
|
return rule_context("Modl_mapContext",0)
|
700
686
|
end
|
@@ -708,22 +694,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
708
694
|
return RULE_modl_pair
|
709
695
|
end
|
710
696
|
def enter_rule( listener)
|
711
|
-
|
697
|
+
if (listener.respond_to?(:enterModl_pair))
|
712
698
|
listener.enterModl_pair(self)
|
713
|
-
|
699
|
+
end
|
714
700
|
end
|
715
701
|
def exit_rule( listener)
|
716
|
-
|
702
|
+
if (listener.respond_to?(:exitModl_pair))
|
717
703
|
listener.exitModl_pair(self)
|
718
|
-
|
704
|
+
end
|
719
705
|
end
|
720
706
|
|
721
707
|
def accept(visitor)
|
722
|
-
|
708
|
+
if (visitor.respond_to?(:visitModl_pair))
|
723
709
|
return visitor.visitModl_pair(self)
|
724
|
-
|
710
|
+
else
|
725
711
|
return visitor.visit_children(self)
|
726
|
-
|
712
|
+
end
|
727
713
|
end
|
728
714
|
end
|
729
715
|
|
@@ -740,16 +726,16 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
740
726
|
|
741
727
|
@_state_number = 133
|
742
728
|
_la = @_input.la(1)
|
743
|
-
|
729
|
+
if (!(_la == QUOTED || _la == STRING))
|
744
730
|
@_err_handler.recover_in_line(self)
|
745
731
|
|
746
|
-
|
732
|
+
else
|
747
733
|
if ( @_input.la(1)==Antlr4::Runtime::Token::EOF )
|
748
734
|
@matchedEOF = true
|
749
735
|
end
|
750
736
|
@_err_handler.report_match(self)
|
751
737
|
consume()
|
752
|
-
|
738
|
+
end
|
753
739
|
@_state_number = 134
|
754
740
|
match(EQUALS)
|
755
741
|
@_state_number = 135
|
@@ -796,22 +782,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
796
782
|
return RULE_modl_value_item
|
797
783
|
end
|
798
784
|
def enter_rule( listener)
|
799
|
-
|
785
|
+
if (listener.respond_to?(:enterModl_value_item))
|
800
786
|
listener.enterModl_value_item(self)
|
801
|
-
|
787
|
+
end
|
802
788
|
end
|
803
789
|
def exit_rule( listener)
|
804
|
-
|
790
|
+
if (listener.respond_to?(:exitModl_value_item))
|
805
791
|
listener.exitModl_value_item(self)
|
806
|
-
|
792
|
+
end
|
807
793
|
end
|
808
794
|
|
809
795
|
def accept(visitor)
|
810
|
-
|
796
|
+
if (visitor.respond_to?(:visitModl_value_item))
|
811
797
|
return visitor.visitModl_value_item(self)
|
812
|
-
|
798
|
+
else
|
813
799
|
return visitor.visit_children(self)
|
814
|
-
|
800
|
+
end
|
815
801
|
end
|
816
802
|
end
|
817
803
|
|
@@ -883,22 +869,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
883
869
|
return RULE_modl_top_level_conditional
|
884
870
|
end
|
885
871
|
def enter_rule( listener)
|
886
|
-
|
872
|
+
if (listener.respond_to?(:enterModl_top_level_conditional))
|
887
873
|
listener.enterModl_top_level_conditional(self)
|
888
|
-
|
874
|
+
end
|
889
875
|
end
|
890
876
|
def exit_rule( listener)
|
891
|
-
|
877
|
+
if (listener.respond_to?(:exitModl_top_level_conditional))
|
892
878
|
listener.exitModl_top_level_conditional(self)
|
893
|
-
|
879
|
+
end
|
894
880
|
end
|
895
881
|
|
896
882
|
def accept(visitor)
|
897
|
-
|
883
|
+
if (visitor.respond_to?(:visitModl_top_level_conditional))
|
898
884
|
return visitor.visitModl_top_level_conditional(self)
|
899
|
-
|
885
|
+
else
|
900
886
|
return visitor.visit_children(self)
|
901
|
-
|
887
|
+
end
|
902
888
|
end
|
903
889
|
end
|
904
890
|
|
@@ -928,11 +914,11 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
928
914
|
@_state_number = 152
|
929
915
|
@_err_handler.sync(self)
|
930
916
|
_la = @_input.la(1)
|
931
|
-
|
917
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << EQUALS) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC) | (1 << GTHAN) | (1 << LTHAN) | (1 << EXCLAM))) != 0))
|
932
918
|
|
933
919
|
@_state_number = 151
|
934
920
|
modl_condition_test()
|
935
|
-
|
921
|
+
end
|
936
922
|
|
937
923
|
@_state_number = 154
|
938
924
|
match(QMARK)
|
@@ -968,22 +954,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
968
954
|
return RULE_modl_top_level_conditional_return
|
969
955
|
end
|
970
956
|
def enter_rule( listener)
|
971
|
-
|
957
|
+
if (listener.respond_to?(:enterModl_top_level_conditional_return))
|
972
958
|
listener.enterModl_top_level_conditional_return(self)
|
973
|
-
|
959
|
+
end
|
974
960
|
end
|
975
961
|
def exit_rule( listener)
|
976
|
-
|
962
|
+
if (listener.respond_to?(:exitModl_top_level_conditional_return))
|
977
963
|
listener.exitModl_top_level_conditional_return(self)
|
978
|
-
|
964
|
+
end
|
979
965
|
end
|
980
966
|
|
981
967
|
def accept(visitor)
|
982
|
-
|
968
|
+
if (visitor.respond_to?(:visitModl_top_level_conditional_return))
|
983
969
|
return visitor.visitModl_top_level_conditional_return(self)
|
984
|
-
|
970
|
+
else
|
985
971
|
return visitor.visit_children(self)
|
986
|
-
|
972
|
+
end
|
987
973
|
end
|
988
974
|
end
|
989
975
|
|
@@ -997,7 +983,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
997
983
|
@_state_number = 166
|
998
984
|
@_err_handler.sync(self)
|
999
985
|
_la = @_input.la(1)
|
1000
|
-
|
986
|
+
while ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << LBRAC) | (1 << LSBRAC) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
|
1001
987
|
|
1002
988
|
|
1003
989
|
@_state_number = 163
|
@@ -1005,7 +991,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1005
991
|
@_state_number = 168
|
1006
992
|
@_err_handler.sync(self)
|
1007
993
|
_la = @_input.la(1)
|
1008
|
-
|
994
|
+
end
|
1009
995
|
rescue Antlr4::Runtime::RecognitionException => re
|
1010
996
|
_localctx.exception = re
|
1011
997
|
@_err_handler.report_error(self, re)
|
@@ -1054,22 +1040,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1054
1040
|
return RULE_modl_map_conditional
|
1055
1041
|
end
|
1056
1042
|
def enter_rule( listener)
|
1057
|
-
|
1043
|
+
if (listener.respond_to?(:enterModl_map_conditional))
|
1058
1044
|
listener.enterModl_map_conditional(self)
|
1059
|
-
|
1045
|
+
end
|
1060
1046
|
end
|
1061
1047
|
def exit_rule( listener)
|
1062
|
-
|
1048
|
+
if (listener.respond_to?(:exitModl_map_conditional))
|
1063
1049
|
listener.exitModl_map_conditional(self)
|
1064
|
-
|
1050
|
+
end
|
1065
1051
|
end
|
1066
1052
|
|
1067
1053
|
def accept(visitor)
|
1068
|
-
|
1054
|
+
if (visitor.respond_to?(:visitModl_map_conditional))
|
1069
1055
|
return visitor.visitModl_map_conditional(self)
|
1070
|
-
|
1056
|
+
else
|
1071
1057
|
return visitor.visit_children(self)
|
1072
|
-
|
1058
|
+
end
|
1073
1059
|
end
|
1074
1060
|
end
|
1075
1061
|
|
@@ -1099,11 +1085,11 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1099
1085
|
@_state_number = 175
|
1100
1086
|
@_err_handler.sync(self)
|
1101
1087
|
_la = @_input.la(1)
|
1102
|
-
|
1088
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << EQUALS) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC) | (1 << GTHAN) | (1 << LTHAN) | (1 << EXCLAM))) != 0))
|
1103
1089
|
|
1104
1090
|
@_state_number = 174
|
1105
1091
|
modl_condition_test()
|
1106
|
-
|
1092
|
+
end
|
1107
1093
|
|
1108
1094
|
@_state_number = 177
|
1109
1095
|
match(QMARK)
|
@@ -1139,22 +1125,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1139
1125
|
return RULE_modl_map_conditional_return
|
1140
1126
|
end
|
1141
1127
|
def enter_rule( listener)
|
1142
|
-
|
1128
|
+
if (listener.respond_to?(:enterModl_map_conditional_return))
|
1143
1129
|
listener.enterModl_map_conditional_return(self)
|
1144
|
-
|
1130
|
+
end
|
1145
1131
|
end
|
1146
1132
|
def exit_rule( listener)
|
1147
|
-
|
1133
|
+
if (listener.respond_to?(:exitModl_map_conditional_return))
|
1148
1134
|
listener.exitModl_map_conditional_return(self)
|
1149
|
-
|
1135
|
+
end
|
1150
1136
|
end
|
1151
1137
|
|
1152
1138
|
def accept(visitor)
|
1153
|
-
|
1139
|
+
if (visitor.respond_to?(:visitModl_map_conditional_return))
|
1154
1140
|
return visitor.visitModl_map_conditional_return(self)
|
1155
|
-
|
1141
|
+
else
|
1156
1142
|
return visitor.visit_children(self)
|
1157
|
-
|
1143
|
+
end
|
1158
1144
|
end
|
1159
1145
|
end
|
1160
1146
|
|
@@ -1176,7 +1162,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1176
1162
|
@_state_number = 189
|
1177
1163
|
@_err_handler.sync(self)
|
1178
1164
|
_la = @_input.la(1)
|
1179
|
-
|
1165
|
+
break if (!((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0)))
|
1180
1166
|
end
|
1181
1167
|
rescue Antlr4::Runtime::RecognitionException => re
|
1182
1168
|
_localctx.exception = re
|
@@ -1202,22 +1188,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1202
1188
|
return RULE_modl_map_item
|
1203
1189
|
end
|
1204
1190
|
def enter_rule( listener)
|
1205
|
-
|
1191
|
+
if (listener.respond_to?(:enterModl_map_item))
|
1206
1192
|
listener.enterModl_map_item(self)
|
1207
|
-
|
1193
|
+
end
|
1208
1194
|
end
|
1209
1195
|
def exit_rule( listener)
|
1210
|
-
|
1196
|
+
if (listener.respond_to?(:exitModl_map_item))
|
1211
1197
|
listener.exitModl_map_item(self)
|
1212
|
-
|
1198
|
+
end
|
1213
1199
|
end
|
1214
1200
|
|
1215
1201
|
def accept(visitor)
|
1216
|
-
|
1202
|
+
if (visitor.respond_to?(:visitModl_map_item))
|
1217
1203
|
return visitor.visitModl_map_item(self)
|
1218
|
-
|
1204
|
+
else
|
1219
1205
|
return visitor.visit_children(self)
|
1220
|
-
|
1206
|
+
end
|
1221
1207
|
end
|
1222
1208
|
end
|
1223
1209
|
|
@@ -1227,21 +1213,21 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1227
1213
|
begin
|
1228
1214
|
@_state_number = 193
|
1229
1215
|
@_err_handler.sync(self)
|
1230
|
-
|
1231
|
-
|
1216
|
+
case (@_input.la(1))
|
1217
|
+
when MODLParser::QUOTED, MODLParser::STRING
|
1232
1218
|
enter_outer_alt(_localctx, 1)
|
1233
1219
|
|
1234
1220
|
@_state_number = 191
|
1235
1221
|
modl_pair()
|
1236
1222
|
|
1237
|
-
|
1223
|
+
when MODLParser::LCBRAC
|
1238
1224
|
enter_outer_alt(_localctx, 2)
|
1239
1225
|
|
1240
1226
|
@_state_number = 192
|
1241
1227
|
modl_map_conditional()
|
1242
|
-
|
1228
|
+
else
|
1243
1229
|
raise Antlr4::Runtime::NoViableAltException, self
|
1244
|
-
|
1230
|
+
end
|
1245
1231
|
rescue Antlr4::Runtime::RecognitionException => re
|
1246
1232
|
_localctx.exception = re
|
1247
1233
|
@_err_handler.report_error(self, re)
|
@@ -1290,22 +1276,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1290
1276
|
return RULE_modl_array_conditional
|
1291
1277
|
end
|
1292
1278
|
def enter_rule( listener)
|
1293
|
-
|
1279
|
+
if (listener.respond_to?(:enterModl_array_conditional))
|
1294
1280
|
listener.enterModl_array_conditional(self)
|
1295
|
-
|
1281
|
+
end
|
1296
1282
|
end
|
1297
1283
|
def exit_rule( listener)
|
1298
|
-
|
1284
|
+
if (listener.respond_to?(:exitModl_array_conditional))
|
1299
1285
|
listener.exitModl_array_conditional(self)
|
1300
|
-
|
1286
|
+
end
|
1301
1287
|
end
|
1302
1288
|
|
1303
1289
|
def accept(visitor)
|
1304
|
-
|
1290
|
+
if (visitor.respond_to?(:visitModl_array_conditional))
|
1305
1291
|
return visitor.visitModl_array_conditional(self)
|
1306
|
-
|
1292
|
+
else
|
1307
1293
|
return visitor.visit_children(self)
|
1308
|
-
|
1294
|
+
end
|
1309
1295
|
end
|
1310
1296
|
end
|
1311
1297
|
|
@@ -1335,11 +1321,11 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1335
1321
|
@_state_number = 201
|
1336
1322
|
@_err_handler.sync(self)
|
1337
1323
|
_la = @_input.la(1)
|
1338
|
-
|
1324
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << EQUALS) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC) | (1 << GTHAN) | (1 << LTHAN) | (1 << EXCLAM))) != 0))
|
1339
1325
|
|
1340
1326
|
@_state_number = 200
|
1341
1327
|
modl_condition_test()
|
1342
|
-
|
1328
|
+
end
|
1343
1329
|
|
1344
1330
|
@_state_number = 203
|
1345
1331
|
match(QMARK)
|
@@ -1375,22 +1361,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1375
1361
|
return RULE_modl_array_conditional_return
|
1376
1362
|
end
|
1377
1363
|
def enter_rule( listener)
|
1378
|
-
|
1364
|
+
if (listener.respond_to?(:enterModl_array_conditional_return))
|
1379
1365
|
listener.enterModl_array_conditional_return(self)
|
1380
|
-
|
1366
|
+
end
|
1381
1367
|
end
|
1382
1368
|
def exit_rule( listener)
|
1383
|
-
|
1369
|
+
if (listener.respond_to?(:exitModl_array_conditional_return))
|
1384
1370
|
listener.exitModl_array_conditional_return(self)
|
1385
|
-
|
1371
|
+
end
|
1386
1372
|
end
|
1387
1373
|
|
1388
1374
|
def accept(visitor)
|
1389
|
-
|
1375
|
+
if (visitor.respond_to?(:visitModl_array_conditional_return))
|
1390
1376
|
return visitor.visitModl_array_conditional_return(self)
|
1391
|
-
|
1377
|
+
else
|
1392
1378
|
return visitor.visit_children(self)
|
1393
|
-
|
1379
|
+
end
|
1394
1380
|
end
|
1395
1381
|
end
|
1396
1382
|
|
@@ -1412,7 +1398,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1412
1398
|
@_state_number = 215
|
1413
1399
|
@_err_handler.sync(self)
|
1414
1400
|
_la = @_input.la(1)
|
1415
|
-
|
1401
|
+
break if (!((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0)))
|
1416
1402
|
end
|
1417
1403
|
rescue Antlr4::Runtime::RecognitionException => re
|
1418
1404
|
_localctx.exception = re
|
@@ -1438,22 +1424,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1438
1424
|
return RULE_modl_array_item
|
1439
1425
|
end
|
1440
1426
|
def enter_rule( listener)
|
1441
|
-
|
1427
|
+
if (listener.respond_to?(:enterModl_array_item))
|
1442
1428
|
listener.enterModl_array_item(self)
|
1443
|
-
|
1429
|
+
end
|
1444
1430
|
end
|
1445
1431
|
def exit_rule( listener)
|
1446
|
-
|
1432
|
+
if (listener.respond_to?(:exitModl_array_item))
|
1447
1433
|
listener.exitModl_array_item(self)
|
1448
|
-
|
1434
|
+
end
|
1449
1435
|
end
|
1450
1436
|
|
1451
1437
|
def accept(visitor)
|
1452
|
-
|
1438
|
+
if (visitor.respond_to?(:visitModl_array_item))
|
1453
1439
|
return visitor.visitModl_array_item(self)
|
1454
|
-
|
1440
|
+
else
|
1455
1441
|
return visitor.visit_children(self)
|
1456
|
-
|
1442
|
+
end
|
1457
1443
|
end
|
1458
1444
|
end
|
1459
1445
|
|
@@ -1463,21 +1449,21 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1463
1449
|
begin
|
1464
1450
|
@_state_number = 219
|
1465
1451
|
@_err_handler.sync(self)
|
1466
|
-
|
1467
|
-
|
1452
|
+
case (@_input.la(1))
|
1453
|
+
when MODLParser::NULL, MODLParser::TRUE, MODLParser::FALSE, MODLParser::LBRAC, MODLParser::LSBRAC, MODLParser::NUMBER, MODLParser::QUOTED, MODLParser::STRING
|
1468
1454
|
enter_outer_alt(_localctx, 1)
|
1469
1455
|
|
1470
1456
|
@_state_number = 217
|
1471
1457
|
modl_array_value_item()
|
1472
1458
|
|
1473
|
-
|
1459
|
+
when MODLParser::LCBRAC
|
1474
1460
|
enter_outer_alt(_localctx, 2)
|
1475
1461
|
|
1476
1462
|
@_state_number = 218
|
1477
1463
|
modl_array_conditional()
|
1478
|
-
|
1464
|
+
else
|
1479
1465
|
raise Antlr4::Runtime::NoViableAltException, self
|
1480
|
-
|
1466
|
+
end
|
1481
1467
|
rescue Antlr4::Runtime::RecognitionException => re
|
1482
1468
|
_localctx.exception = re
|
1483
1469
|
@_err_handler.report_error(self, re)
|
@@ -1526,22 +1512,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1526
1512
|
return RULE_modl_value_conditional
|
1527
1513
|
end
|
1528
1514
|
def enter_rule( listener)
|
1529
|
-
|
1515
|
+
if (listener.respond_to?(:enterModl_value_conditional))
|
1530
1516
|
listener.enterModl_value_conditional(self)
|
1531
|
-
|
1517
|
+
end
|
1532
1518
|
end
|
1533
1519
|
def exit_rule( listener)
|
1534
|
-
|
1520
|
+
if (listener.respond_to?(:exitModl_value_conditional))
|
1535
1521
|
listener.exitModl_value_conditional(self)
|
1536
|
-
|
1522
|
+
end
|
1537
1523
|
end
|
1538
1524
|
|
1539
1525
|
def accept(visitor)
|
1540
|
-
|
1526
|
+
if (visitor.respond_to?(:visitModl_value_conditional))
|
1541
1527
|
return visitor.visitModl_value_conditional(self)
|
1542
|
-
|
1528
|
+
else
|
1543
1529
|
return visitor.visit_children(self)
|
1544
|
-
|
1530
|
+
end
|
1545
1531
|
end
|
1546
1532
|
end
|
1547
1533
|
|
@@ -1562,7 +1548,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1562
1548
|
@_state_number = 239
|
1563
1549
|
@_err_handler.sync(self)
|
1564
1550
|
_la = @_input.la(1)
|
1565
|
-
|
1551
|
+
if ((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << LBRAC) | (1 << LSBRAC) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING) | (1 << LCBRAC))) != 0))
|
1566
1552
|
|
1567
1553
|
@_state_number = 224
|
1568
1554
|
modl_value_conditional_return()
|
@@ -1593,7 +1579,7 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1593
1579
|
match(QMARK)
|
1594
1580
|
@_state_number = 237
|
1595
1581
|
modl_value_conditional_return()
|
1596
|
-
|
1582
|
+
end
|
1597
1583
|
|
1598
1584
|
@_state_number = 241
|
1599
1585
|
match(RCBRAC)
|
@@ -1627,22 +1613,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1627
1613
|
return RULE_modl_value_conditional_return
|
1628
1614
|
end
|
1629
1615
|
def enter_rule( listener)
|
1630
|
-
|
1616
|
+
if (listener.respond_to?(:enterModl_value_conditional_return))
|
1631
1617
|
listener.enterModl_value_conditional_return(self)
|
1632
|
-
|
1618
|
+
end
|
1633
1619
|
end
|
1634
1620
|
def exit_rule( listener)
|
1635
|
-
|
1621
|
+
if (listener.respond_to?(:exitModl_value_conditional_return))
|
1636
1622
|
listener.exitModl_value_conditional_return(self)
|
1637
|
-
|
1623
|
+
end
|
1638
1624
|
end
|
1639
1625
|
|
1640
1626
|
def accept(visitor)
|
1641
|
-
|
1627
|
+
if (visitor.respond_to?(:visitModl_value_conditional_return))
|
1642
1628
|
return visitor.visitModl_value_conditional_return(self)
|
1643
|
-
|
1629
|
+
else
|
1644
1630
|
return visitor.visit_children(self)
|
1645
|
-
|
1631
|
+
end
|
1646
1632
|
end
|
1647
1633
|
end
|
1648
1634
|
|
@@ -1717,22 +1703,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1717
1703
|
return RULE_modl_condition_test
|
1718
1704
|
end
|
1719
1705
|
def enter_rule( listener)
|
1720
|
-
|
1706
|
+
if (listener.respond_to?(:enterModl_condition_test))
|
1721
1707
|
listener.enterModl_condition_test(self)
|
1722
|
-
|
1708
|
+
end
|
1723
1709
|
end
|
1724
1710
|
def exit_rule( listener)
|
1725
|
-
|
1711
|
+
if (listener.respond_to?(:exitModl_condition_test))
|
1726
1712
|
listener.exitModl_condition_test(self)
|
1727
|
-
|
1713
|
+
end
|
1728
1714
|
end
|
1729
1715
|
|
1730
1716
|
def accept(visitor)
|
1731
|
-
|
1717
|
+
if (visitor.respond_to?(:visitModl_condition_test))
|
1732
1718
|
return visitor.visitModl_condition_test(self)
|
1733
|
-
|
1719
|
+
else
|
1734
1720
|
return visitor.visit_children(self)
|
1735
|
-
|
1721
|
+
end
|
1736
1722
|
end
|
1737
1723
|
end
|
1738
1724
|
|
@@ -1844,22 +1830,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1844
1830
|
return RULE_modl_operator
|
1845
1831
|
end
|
1846
1832
|
def enter_rule( listener)
|
1847
|
-
|
1833
|
+
if (listener.respond_to?(:enterModl_operator))
|
1848
1834
|
listener.enterModl_operator(self)
|
1849
|
-
|
1835
|
+
end
|
1850
1836
|
end
|
1851
1837
|
def exit_rule( listener)
|
1852
|
-
|
1838
|
+
if (listener.respond_to?(:exitModl_operator))
|
1853
1839
|
listener.exitModl_operator(self)
|
1854
|
-
|
1840
|
+
end
|
1855
1841
|
end
|
1856
1842
|
|
1857
1843
|
def accept(visitor)
|
1858
|
-
|
1844
|
+
if (visitor.respond_to?(:visitModl_operator))
|
1859
1845
|
return visitor.visitModl_operator(self)
|
1860
|
-
|
1846
|
+
else
|
1861
1847
|
return visitor.visit_children(self)
|
1862
|
-
|
1848
|
+
end
|
1863
1849
|
end
|
1864
1850
|
end
|
1865
1851
|
|
@@ -1949,22 +1935,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
1949
1935
|
return RULE_modl_condition
|
1950
1936
|
end
|
1951
1937
|
def enter_rule( listener)
|
1952
|
-
|
1938
|
+
if (listener.respond_to?(:enterModl_condition))
|
1953
1939
|
listener.enterModl_condition(self)
|
1954
|
-
|
1940
|
+
end
|
1955
1941
|
end
|
1956
1942
|
def exit_rule( listener)
|
1957
|
-
|
1943
|
+
if (listener.respond_to?(:exitModl_condition))
|
1958
1944
|
listener.exitModl_condition(self)
|
1959
|
-
|
1945
|
+
end
|
1960
1946
|
end
|
1961
1947
|
|
1962
1948
|
def accept(visitor)
|
1963
|
-
|
1949
|
+
if (visitor.respond_to?(:visitModl_condition))
|
1964
1950
|
return visitor.visitModl_condition(self)
|
1965
|
-
|
1951
|
+
else
|
1966
1952
|
return visitor.visit_children(self)
|
1967
|
-
|
1953
|
+
end
|
1968
1954
|
end
|
1969
1955
|
end
|
1970
1956
|
|
@@ -2051,22 +2037,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2051
2037
|
return RULE_modl_condition_group
|
2052
2038
|
end
|
2053
2039
|
def enter_rule( listener)
|
2054
|
-
|
2040
|
+
if (listener.respond_to?(:enterModl_condition_group))
|
2055
2041
|
listener.enterModl_condition_group(self)
|
2056
|
-
|
2042
|
+
end
|
2057
2043
|
end
|
2058
2044
|
def exit_rule( listener)
|
2059
|
-
|
2045
|
+
if (listener.respond_to?(:exitModl_condition_group))
|
2060
2046
|
listener.exitModl_condition_group(self)
|
2061
|
-
|
2047
|
+
end
|
2062
2048
|
end
|
2063
2049
|
|
2064
2050
|
def accept(visitor)
|
2065
|
-
|
2051
|
+
if (visitor.respond_to?(:visitModl_condition_group))
|
2066
2052
|
return visitor.visitModl_condition_group(self)
|
2067
|
-
|
2053
|
+
else
|
2068
2054
|
return visitor.visit_children(self)
|
2069
|
-
|
2055
|
+
end
|
2070
2056
|
end
|
2071
2057
|
end
|
2072
2058
|
|
@@ -2140,22 +2126,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2140
2126
|
return RULE_modl_value
|
2141
2127
|
end
|
2142
2128
|
def enter_rule( listener)
|
2143
|
-
|
2129
|
+
if (listener.respond_to?(:enterModl_value))
|
2144
2130
|
listener.enterModl_value(self)
|
2145
|
-
|
2131
|
+
end
|
2146
2132
|
end
|
2147
2133
|
def exit_rule( listener)
|
2148
|
-
|
2134
|
+
if (listener.respond_to?(:exitModl_value))
|
2149
2135
|
listener.exitModl_value(self)
|
2150
|
-
|
2136
|
+
end
|
2151
2137
|
end
|
2152
2138
|
|
2153
2139
|
def accept(visitor)
|
2154
|
-
|
2140
|
+
if (visitor.respond_to?(:visitModl_value))
|
2155
2141
|
return visitor.visitModl_value(self)
|
2156
|
-
|
2142
|
+
else
|
2157
2143
|
return visitor.visit_children(self)
|
2158
|
-
|
2144
|
+
end
|
2159
2145
|
end
|
2160
2146
|
end
|
2161
2147
|
|
@@ -2227,22 +2213,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2227
2213
|
return RULE_modl_array_value_item
|
2228
2214
|
end
|
2229
2215
|
def enter_rule( listener)
|
2230
|
-
|
2216
|
+
if (listener.respond_to?(:enterModl_array_value_item))
|
2231
2217
|
listener.enterModl_array_value_item(self)
|
2232
|
-
|
2218
|
+
end
|
2233
2219
|
end
|
2234
2220
|
def exit_rule( listener)
|
2235
|
-
|
2221
|
+
if (listener.respond_to?(:exitModl_array_value_item))
|
2236
2222
|
listener.exitModl_array_value_item(self)
|
2237
|
-
|
2223
|
+
end
|
2238
2224
|
end
|
2239
2225
|
|
2240
2226
|
def accept(visitor)
|
2241
|
-
|
2227
|
+
if (visitor.respond_to?(:visitModl_array_value_item))
|
2242
2228
|
return visitor.visitModl_array_value_item(self)
|
2243
|
-
|
2229
|
+
else
|
2244
2230
|
return visitor.visit_children(self)
|
2245
|
-
|
2231
|
+
end
|
2246
2232
|
end
|
2247
2233
|
end
|
2248
2234
|
|
@@ -2314,22 +2300,22 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2314
2300
|
return RULE_modl_primitive
|
2315
2301
|
end
|
2316
2302
|
def enter_rule( listener)
|
2317
|
-
|
2303
|
+
if (listener.respond_to?(:enterModl_primitive))
|
2318
2304
|
listener.enterModl_primitive(self)
|
2319
|
-
|
2305
|
+
end
|
2320
2306
|
end
|
2321
2307
|
def exit_rule( listener)
|
2322
|
-
|
2308
|
+
if (listener.respond_to?(:exitModl_primitive))
|
2323
2309
|
listener.exitModl_primitive(self)
|
2324
|
-
|
2310
|
+
end
|
2325
2311
|
end
|
2326
2312
|
|
2327
2313
|
def accept(visitor)
|
2328
|
-
|
2314
|
+
if (visitor.respond_to?(:visitModl_primitive))
|
2329
2315
|
return visitor.visitModl_primitive(self)
|
2330
|
-
|
2316
|
+
else
|
2331
2317
|
return visitor.visit_children(self)
|
2332
|
-
|
2318
|
+
end
|
2333
2319
|
end
|
2334
2320
|
end
|
2335
2321
|
|
@@ -2342,16 +2328,16 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2342
2328
|
|
2343
2329
|
@_state_number = 320
|
2344
2330
|
_la = @_input.la(1)
|
2345
|
-
|
2331
|
+
if (!((((_la) & ~0x3f) == 0 && ((1 << _la) & ((1 << NULL) | (1 << TRUE) | (1 << FALSE) | (1 << NUMBER) | (1 << QUOTED) | (1 << STRING))) != 0)))
|
2346
2332
|
@_err_handler.recover_in_line(self)
|
2347
2333
|
|
2348
|
-
|
2334
|
+
else
|
2349
2335
|
if ( @_input.la(1)==Antlr4::Runtime::Token::EOF )
|
2350
2336
|
@matchedEOF = true
|
2351
2337
|
end
|
2352
2338
|
@_err_handler.report_match(self)
|
2353
2339
|
consume()
|
2354
|
-
|
2340
|
+
end
|
2355
2341
|
rescue Antlr4::Runtime::RecognitionException => re
|
2356
2342
|
_localctx.exception = re
|
2357
2343
|
@_err_handler.report_error(self, re)
|
@@ -2363,128 +2349,128 @@ class MODLParser < Antlr4::Runtime::Parser
|
|
2363
2349
|
end
|
2364
2350
|
|
2365
2351
|
@@_serializedATN = ["\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2369
|
-
|
2370
|
-
|
2371
|
-
|
2372
|
-
|
2373
|
-
|
2374
|
-
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2378
|
-
|
2379
|
-
|
2380
|
-
|
2381
|
-
|
2382
|
-
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2395
|
-
|
2396
|
-
|
2397
|
-
|
2398
|
-
|
2399
|
-
|
2400
|
-
|
2401
|
-
|
2402
|
-
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2409
|
-
|
2410
|
-
|
2411
|
-
|
2412
|
-
|
2413
|
-
|
2414
|
-
|
2415
|
-
|
2416
|
-
|
2417
|
-
|
2418
|
-
|
2419
|
-
|
2420
|
-
|
2421
|
-
|
2422
|
-
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
|
2427
|
-
|
2428
|
-
|
2429
|
-
|
2430
|
-
|
2431
|
-
|
2432
|
-
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2436
|
-
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2449
|
-
|
2450
|
-
|
2451
|
-
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
|
2460
|
-
|
2461
|
-
|
2462
|
-
|
2463
|
-
|
2464
|
-
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2468
|
-
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2487
|
-
|
2352
|
+
"\3\37\u0145\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b",
|
2353
|
+
"\4\t\t\t\4\n\t\n\4\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20",
|
2354
|
+
"\t\20\4\21\t\21\4\22\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4",
|
2355
|
+
"\27\t\27\4\30\t\30\4\31\t\31\3\2\5\2\64\n\2\3\2\3\2\3\2\7\29\n\2\f",
|
2356
|
+
"\2\16\2<\13\2\3\2\5\2?\n\2\5\2A\n\2\3\2\3\2\3\3\3\3\3\3\3\3\5\3I\n",
|
2357
|
+
"\3\3\4\3\4\3\4\3\4\7\4O\n\4\f\4\16\4R\13\4\5\4T\n\4\3\4\3\4\3\5\3\5",
|
2358
|
+
"\3\5\5\5[\n\5\3\5\6\5^\n\5\r\5\16\5_\3\5\3\5\5\5d\n\5\3\5\7\5g\n\5",
|
2359
|
+
"\f\5\16\5j\13\5\7\5l\n\5\f\5\16\5o\13\5\5\5q\n\5\3\5\3\5\3\6\3\6\6",
|
2360
|
+
"\6w\n\6\r\6\16\6x\6\6{\n\6\r\6\16\6|\3\6\7\6\u0080\n\6\f\6\16\6\u0083",
|
2361
|
+
"\13\6\3\6\5\6\u0086\n\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\5\7\u008f\n\7\3",
|
2362
|
+
"\b\3\b\5\b\u0093\n\b\3\t\3\t\3\t\3\t\3\t\3\t\5\t\u009b\n\t\3\t\3\t",
|
2363
|
+
"\7\t\u009f\n\t\f\t\16\t\u00a2\13\t\3\t\3\t\3\n\7\n\u00a7\n\n\f\n\16",
|
2364
|
+
"\n\u00aa\13\n\3\13\3\13\3\13\3\13\3\13\3\13\5\13\u00b2\n\13\3\13\3",
|
2365
|
+
"\13\7\13\u00b6\n\13\f\13\16\13\u00b9\13\13\3\13\3\13\3\f\6\f\u00be",
|
2366
|
+
"\n\f\r\f\16\f\u00bf\3\r\3\r\5\r\u00c4\n\r\3\16\3\16\3\16\3\16\3\16",
|
2367
|
+
"\3\16\5\16\u00cc\n\16\3\16\3\16\7\16\u00d0\n\16\f\16\16\16\u00d3\13",
|
2368
|
+
"\16\3\16\3\16\3\17\6\17\u00d8\n\17\r\17\16\17\u00d9\3\20\3\20\5\20",
|
2369
|
+
"\u00de\n\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\7\21\u00e9",
|
2370
|
+
"\n\21\f\21\16\21\u00ec\13\21\3\21\3\21\3\21\3\21\5\21\u00f2\n\21\3",
|
2371
|
+
"\21\3\21\3\22\3\22\3\22\7\22\u00f9\n\22\f\22\16\22\u00fc\13\22\3\23",
|
2372
|
+
"\5\23\u00ff\n\23\3\23\3\23\5\23\u0103\n\23\3\23\3\23\5\23\u0107\n\23",
|
2373
|
+
"\3\23\3\23\5\23\u010b\n\23\7\23\u010d\n\23\f\23\16\23\u0110\13\23\3",
|
2374
|
+
"\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\3\24\5\24\u011b\n\24\3\25\5",
|
2375
|
+
"\25\u011e\n\25\3\25\5\25\u0121\n\25\3\25\3\25\3\25\7\25\u0126\n\25",
|
2376
|
+
"\f\25\16\25\u0129\13\25\3\26\3\26\3\26\3\26\7\26\u012f\n\26\f\26\16",
|
2377
|
+
"\26\u0132\13\26\3\26\3\26\3\27\3\27\3\27\3\27\3\27\5\27\u013b\n\27",
|
2378
|
+
"\3\30\3\30\3\30\3\30\5\30\u0141\n\30\3\31\3\31\3\31\2\2\32\2\4\6\b",
|
2379
|
+
"\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\2\5\3\2\21\22\3\2\33\34",
|
2380
|
+
"\5\2\4\6\17\17\21\22\2\u0165\2@\3\2\2\2\4H\3\2\2\2\6J\3\2\2\2\bW\3",
|
2381
|
+
"\2\2\2\nz\3\2\2\2\f\u008e\3\2\2\2\16\u0092\3\2\2\2\20\u0094\3\2\2\2",
|
2382
|
+
"\22\u00a8\3\2\2\2\24\u00ab\3\2\2\2\26\u00bd\3\2\2\2\30\u00c3\3\2\2",
|
2383
|
+
"\2\32\u00c5\3\2\2\2\34\u00d7\3\2\2\2\36\u00dd\3\2\2\2 \u00df\3\2\2",
|
2384
|
+
"\2\"\u00f5\3\2\2\2$\u00fe\3\2\2\2&\u011a\3\2\2\2(\u011d\3\2\2\2*\u012a",
|
2385
|
+
"\3\2\2\2,\u013a\3\2\2\2.\u0140\3\2\2\2\60\u0142\3\2\2\2\62\64\5\4\3",
|
2386
|
+
"\2\63\62\3\2\2\2\63\64\3\2\2\2\64A\3\2\2\2\65:\5\4\3\2\66\67\7\t\2",
|
2387
|
+
"\2\679\5\4\3\28\66\3\2\2\29<\3\2\2\2:8\3\2\2\2:;\3\2\2\2;>\3\2\2\2",
|
2388
|
+
"<:\3\2\2\2=?\7\t\2\2>=\3\2\2\2>?\3\2\2\2?A\3\2\2\2@\63\3\2\2\2@\65",
|
2389
|
+
"\3\2\2\2AB\3\2\2\2BC\7\2\2\3C\3\3\2\2\2DI\5\6\4\2EI\5\b\5\2FI\5\20",
|
2390
|
+
"\t\2GI\5\f\7\2HD\3\2\2\2HE\3\2\2\2HF\3\2\2\2HG\3\2\2\2I\5\3\2\2\2J",
|
2391
|
+
"S\7\13\2\2KP\5\30\r\2LM\7\t\2\2MO\5\30\r\2NL\3\2\2\2OR\3\2\2\2PN\3",
|
2392
|
+
"\2\2\2PQ\3\2\2\2QT\3\2\2\2RP\3\2\2\2SK\3\2\2\2ST\3\2\2\2TU\3\2\2\2",
|
2393
|
+
"UV\7\f\2\2V\7\3\2\2\2Wp\7\r\2\2X[\5\36\20\2Y[\5\n\6\2ZX\3\2\2\2ZY\3",
|
2394
|
+
"\2\2\2[m\3\2\2\2\\^\7\t\2\2]\\\3\2\2\2^_\3\2\2\2_]\3\2\2\2_`\3\2\2",
|
2395
|
+
"\2`c\3\2\2\2ad\5\36\20\2bd\5\n\6\2ca\3\2\2\2cb\3\2\2\2dh\3\2\2\2eg",
|
2396
|
+
"\7\t\2\2fe\3\2\2\2gj\3\2\2\2hf\3\2\2\2hi\3\2\2\2il\3\2\2\2jh\3\2\2",
|
2397
|
+
"\2k]\3\2\2\2lo\3\2\2\2mk\3\2\2\2mn\3\2\2\2nq\3\2\2\2om\3\2\2\2pZ\3",
|
2398
|
+
"\2\2\2pq\3\2\2\2qr\3\2\2\2rs\7\16\2\2s\t\3\2\2\2tv\5\36\20\2uw\7\7",
|
2399
|
+
"\2\2vu\3\2\2\2wx\3\2\2\2xv\3\2\2\2xy\3\2\2\2y{\3\2\2\2zt\3\2\2\2{|",
|
2400
|
+
"\3\2\2\2|z\3\2\2\2|}\3\2\2\2}\u0081\3\2\2\2~\u0080\5\36\20\2\177~\3",
|
2401
|
+
"\2\2\2\u0080\u0083\3\2\2\2\u0081\177\3\2\2\2\u0081\u0082\3\2\2\2\u0082",
|
2402
|
+
"\u0085\3\2\2\2\u0083\u0081\3\2\2\2\u0084\u0086\7\7\2\2\u0085\u0084",
|
2403
|
+
"\3\2\2\2\u0085\u0086\3\2\2\2\u0086\13\3\2\2\2\u0087\u0088\t\2\2\2\u0088",
|
2404
|
+
"\u0089\7\b\2\2\u0089\u008f\5\16\b\2\u008a\u008b\7\22\2\2\u008b\u008f",
|
2405
|
+
"\5\6\4\2\u008c\u008d\7\22\2\2\u008d\u008f\5\b\5\2\u008e\u0087\3\2\2",
|
2406
|
+
"\2\u008e\u008a\3\2\2\2\u008e\u008c\3\2\2\2\u008f\r\3\2\2\2\u0090\u0093",
|
2407
|
+
"\5,\27\2\u0091\u0093\5 \21\2\u0092\u0090\3\2\2\2\u0092\u0091\3\2\2",
|
2408
|
+
"\2\u0093\17\3\2\2\2\u0094\u0095\7\24\2\2\u0095\u0096\5$\23\2\u0096",
|
2409
|
+
"\u0097\7\26\2\2\u0097\u00a0\5\22\n\2\u0098\u009a\7\27\2\2\u0099\u009b",
|
2410
|
+
"\5$\23\2\u009a\u0099\3\2\2\2\u009a\u009b\3\2\2\2\u009b\u009c\3\2\2",
|
2411
|
+
"\2\u009c\u009d\7\26\2\2\u009d\u009f\5\22\n\2\u009e\u0098\3\2\2\2\u009f",
|
2412
|
+
"\u00a2\3\2\2\2\u00a0\u009e\3\2\2\2\u00a0\u00a1\3\2\2\2\u00a1\u00a3",
|
2413
|
+
"\3\2\2\2\u00a2\u00a0\3\2\2\2\u00a3\u00a4\7\37\2\2\u00a4\21\3\2\2\2",
|
2414
|
+
"\u00a5\u00a7\5\4\3\2\u00a6\u00a5\3\2\2\2\u00a7\u00aa\3\2\2\2\u00a8",
|
2415
|
+
"\u00a6\3\2\2\2\u00a8\u00a9\3\2\2\2\u00a9\23\3\2\2\2\u00aa\u00a8\3\2",
|
2416
|
+
"\2\2\u00ab\u00ac\7\24\2\2\u00ac\u00ad\5$\23\2\u00ad\u00ae\7\26\2\2",
|
2417
|
+
"\u00ae\u00b7\5\26\f\2\u00af\u00b1\7\27\2\2\u00b0\u00b2\5$\23\2\u00b1",
|
2418
|
+
"\u00b0\3\2\2\2\u00b1\u00b2\3\2\2\2\u00b2\u00b3\3\2\2\2\u00b3\u00b4",
|
2419
|
+
"\7\26\2\2\u00b4\u00b6\5\26\f\2\u00b5\u00af\3\2\2\2\u00b6\u00b9\3\2",
|
2420
|
+
"\2\2\u00b7\u00b5\3\2\2\2\u00b7\u00b8\3\2\2\2\u00b8\u00ba\3\2\2\2\u00b9",
|
2421
|
+
"\u00b7\3\2\2\2\u00ba\u00bb\7\37\2\2\u00bb\25\3\2\2\2\u00bc\u00be\5",
|
2422
|
+
"\30\r\2\u00bd\u00bc\3\2\2\2\u00be\u00bf\3\2\2\2\u00bf\u00bd\3\2\2\2",
|
2423
|
+
"\u00bf\u00c0\3\2\2\2\u00c0\27\3\2\2\2\u00c1\u00c4\5\f\7\2\u00c2\u00c4",
|
2424
|
+
"\5\24\13\2\u00c3\u00c1\3\2\2\2\u00c3\u00c2\3\2\2\2\u00c4\31\3\2\2\2",
|
2425
|
+
"\u00c5\u00c6\7\24\2\2\u00c6\u00c7\5$\23\2\u00c7\u00c8\7\26\2\2\u00c8",
|
2426
|
+
"\u00d1\5\34\17\2\u00c9\u00cb\7\27\2\2\u00ca\u00cc\5$\23\2\u00cb\u00ca",
|
2427
|
+
"\3\2\2\2\u00cb\u00cc\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00ce\7\26\2",
|
2428
|
+
"\2\u00ce\u00d0\5\34\17\2\u00cf\u00c9\3\2\2\2\u00d0\u00d3\3\2\2\2\u00d1",
|
2429
|
+
"\u00cf\3\2\2\2\u00d1\u00d2\3\2\2\2\u00d2\u00d4\3\2\2\2\u00d3\u00d1",
|
2430
|
+
"\3\2\2\2\u00d4\u00d5\7\37\2\2\u00d5\33\3\2\2\2\u00d6\u00d8\5\36\20",
|
2431
|
+
"\2\u00d7\u00d6\3\2\2\2\u00d8\u00d9\3\2\2\2\u00d9\u00d7\3\2\2\2\u00d9",
|
2432
|
+
"\u00da\3\2\2\2\u00da\35\3\2\2\2\u00db\u00de\5.\30\2\u00dc\u00de\5\32",
|
2433
|
+
"\16\2\u00dd\u00db\3\2\2\2\u00dd\u00dc\3\2\2\2\u00de\37\3\2\2\2\u00df",
|
2434
|
+
"\u00e0\7\24\2\2\u00e0\u00e1\5$\23\2\u00e1\u00f1\7\26\2\2\u00e2\u00ea",
|
2435
|
+
"\5\"\22\2\u00e3\u00e4\7\27\2\2\u00e4\u00e5\5$\23\2\u00e5\u00e6\7\26",
|
2436
|
+
"\2\2\u00e6\u00e7\5\"\22\2\u00e7\u00e9\3\2\2\2\u00e8\u00e3\3\2\2\2\u00e9",
|
2437
|
+
"\u00ec\3\2\2\2\u00ea\u00e8\3\2\2\2\u00ea\u00eb\3\2\2\2\u00eb\u00ed",
|
2438
|
+
"\3\2\2\2\u00ec\u00ea\3\2\2\2\u00ed\u00ee\7\27\2\2\u00ee\u00ef\7\26",
|
2439
|
+
"\2\2\u00ef\u00f0\5\"\22\2\u00f0\u00f2\3\2\2\2\u00f1\u00e2\3\2\2\2\u00f1",
|
2440
|
+
"\u00f2\3\2\2\2\u00f2\u00f3\3\2\2\2\u00f3\u00f4\7\37\2\2\u00f4!\3\2",
|
2441
|
+
"\2\2\u00f5\u00fa\5\16\b\2\u00f6\u00f7\7\7\2\2\u00f7\u00f9\5\16\b\2",
|
2442
|
+
"\u00f8\u00f6\3\2\2\2\u00f9\u00fc\3\2\2\2\u00fa\u00f8\3\2\2\2\u00fa",
|
2443
|
+
"\u00fb\3\2\2\2\u00fb#\3\2\2\2\u00fc\u00fa\3\2\2\2\u00fd\u00ff\7\35",
|
2444
|
+
"\2\2\u00fe\u00fd\3\2\2\2\u00fe\u00ff\3\2\2\2\u00ff\u0102\3\2\2\2\u0100",
|
2445
|
+
"\u0103\5(\25\2\u0101\u0103\5*\26\2\u0102\u0100\3\2\2\2\u0102\u0101",
|
2446
|
+
"\3\2\2\2\u0103\u010e\3\2\2\2\u0104\u0106\t\3\2\2\u0105\u0107\7\35\2",
|
2447
|
+
"\2\u0106\u0105\3\2\2\2\u0106\u0107\3\2\2\2\u0107\u010a\3\2\2\2\u0108",
|
2448
|
+
"\u010b\5(\25\2\u0109\u010b\5*\26\2\u010a\u0108\3\2\2\2\u010a\u0109",
|
2449
|
+
"\3\2\2\2\u010b\u010d\3\2\2\2\u010c\u0104\3\2\2\2\u010d\u0110\3\2\2",
|
2450
|
+
"\2\u010e\u010c\3\2\2\2\u010e\u010f\3\2\2\2\u010f%\3\2\2\2\u0110\u010e",
|
2451
|
+
"\3\2\2\2\u0111\u011b\7\b\2\2\u0112\u011b\7\30\2\2\u0113\u0114\7\30",
|
2452
|
+
"\2\2\u0114\u011b\7\b\2\2\u0115\u011b\7\31\2\2\u0116\u0117\7\31\2\2",
|
2453
|
+
"\u0117\u011b\7\b\2\2\u0118\u0119\7\35\2\2\u0119\u011b\7\b\2\2\u011a",
|
2454
|
+
"\u0111\3\2\2\2\u011a\u0112\3\2\2\2\u011a\u0113\3\2\2\2\u011a\u0115",
|
2455
|
+
"\3\2\2\2\u011a\u0116\3\2\2\2\u011a\u0118\3\2\2\2\u011b\'\3\2\2\2\u011c",
|
2456
|
+
"\u011e\7\22\2\2\u011d\u011c\3\2\2\2\u011d\u011e\3\2\2\2\u011e\u0120",
|
2457
|
+
"\3\2\2\2\u011f\u0121\5&\24\2\u0120\u011f\3\2\2\2\u0120\u0121\3\2\2",
|
2458
|
+
"\2\u0121\u0122\3\2\2\2\u0122\u0127\5,\27\2\u0123\u0124\7\27\2\2\u0124",
|
2459
|
+
"\u0126\5,\27\2\u0125\u0123\3\2\2\2\u0126\u0129\3\2\2\2\u0127\u0125",
|
2460
|
+
"\3\2\2\2\u0127\u0128\3\2\2\2\u0128)\3\2\2\2\u0129\u0127\3\2\2\2\u012a",
|
2461
|
+
"\u012b\7\24\2\2\u012b\u0130\5$\23\2\u012c\u012d\t\3\2\2\u012d\u012f",
|
2462
|
+
"\5$\23\2\u012e\u012c\3\2\2\2\u012f\u0132\3\2\2\2\u0130\u012e\3\2\2",
|
2463
|
+
"\2\u0130\u0131\3\2\2\2\u0131\u0133\3\2\2\2\u0132\u0130\3\2\2\2\u0133",
|
2464
|
+
"\u0134\7\37\2\2\u0134+\3\2\2\2\u0135\u013b\5\6\4\2\u0136\u013b\5\b",
|
2465
|
+
"\5\2\u0137\u013b\5\n\6\2\u0138\u013b\5\f\7\2\u0139\u013b\5\60\31\2",
|
2466
|
+
"\u013a\u0135\3\2\2\2\u013a\u0136\3\2\2\2\u013a\u0137\3\2\2\2\u013a",
|
2467
|
+
"\u0138\3\2\2\2\u013a\u0139\3\2\2\2\u013b-\3\2\2\2\u013c\u0141\5\6\4",
|
2468
|
+
"\2\u013d\u0141\5\f\7\2\u013e\u0141\5\b\5\2\u013f\u0141\5\60\31\2\u0140",
|
2469
|
+
"\u013c\3\2\2\2\u0140\u013d\3\2\2\2\u0140\u013e\3\2\2\2\u0140\u013f",
|
2470
|
+
"\3\2\2\2\u0141/\3\2\2\2\u0142\u0143\t\4\2\2\u0143\61\3\2\2\2/\63:>",
|
2471
|
+
"@HPSZ_chmpx|\u0081\u0085\u008e\u0092\u009a\u00a0\u00a8\u00b1\u00b7",
|
2472
|
+
"\u00bf\u00c3\u00cb\u00d1\u00d9\u00dd\u00ea\u00f1\u00fa\u00fe\u0102",
|
2473
|
+
"\u0106\u010a\u010e\u011a\u011d\u0120\u0127\u0130\u013a\u0140"].join("")
|
2488
2474
|
|
2489
2475
|
@@_ATN = Antlr4::Runtime::ATNDeserializer.new().deserialize(@@_serializedATN)
|
2490
2476
|
|