sfp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3127 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # SfpLang.g
4
+ # --
5
+ # Generated using ANTLR version: 3.2.1-SNAPSHOT Jul 31, 2010 19:34:52
6
+ # Ruby runtime library version: 1.8.11
7
+ # Input grammar file: SfpLang.g
8
+ # Generated at: 2013-04-20 05:22:46
9
+ #
10
+
11
+ # ~~~> start load path setup
12
+ this_directory = File.expand_path( File.dirname( __FILE__ ) )
13
+ $LOAD_PATH.unshift( this_directory ) unless $LOAD_PATH.include?( this_directory )
14
+
15
+ antlr_load_failed = proc do
16
+ load_path = $LOAD_PATH.map { |dir| ' - ' << dir }.join( $/ )
17
+ raise LoadError, <<-END.strip!
18
+
19
+ Failed to load the ANTLR3 runtime library (version 1.8.11):
20
+
21
+ Ensure the library has been installed on your system and is available
22
+ on the load path. If rubygems is available on your system, this can
23
+ be done with the command:
24
+
25
+ gem install antlr3
26
+
27
+ Current load path:
28
+ #{ load_path }
29
+
30
+ END
31
+ end
32
+
33
+ defined?( ANTLR3 ) or begin
34
+
35
+ # 1: try to load the ruby antlr3 runtime library from the system path
36
+ require 'antlr3'
37
+
38
+ rescue LoadError
39
+
40
+ # 2: try to load rubygems if it isn't already loaded
41
+ defined?( Gem ) or begin
42
+ require 'rubygems'
43
+ rescue LoadError
44
+ antlr_load_failed.call
45
+ end
46
+
47
+ # 3: try to activate the antlr3 gem
48
+ begin
49
+ Gem.activate( 'antlr3', '~> 1.8.11' )
50
+ rescue Gem::LoadError
51
+ antlr_load_failed.call
52
+ end
53
+
54
+ require 'antlr3'
55
+
56
+ end
57
+ # <~~~ end load path setup
58
+
59
+
60
+ module SfpLang
61
+ # TokenData defines all of the token type integer values
62
+ # as constants, which will be included in all
63
+ # ANTLR-generated recognizers.
64
+ const_defined?( :TokenData ) or TokenData = ANTLR3::TokenScheme.new
65
+
66
+ module TokenData
67
+
68
+ # define the token constants
69
+ define_tokens( :T__68 => 68, :T__69 => 69, :T__66 => 66, :T__67 => 67,
70
+ :EXPONENT => 14, :T__29 => 29, :T__64 => 64, :T__28 => 28,
71
+ :T__65 => 65, :T__27 => 27, :T__62 => 62, :T__26 => 26,
72
+ :T__63 => 63, :T__25 => 25, :T__24 => 24, :T__23 => 23,
73
+ :T__22 => 22, :T__21 => 21, :T__20 => 20, :OCTAL_ESC => 17,
74
+ :ID => 6, :T__61 => 61, :EOF => -1, :T__60 => 60, :T__55 => 55,
75
+ :T__19 => 19, :T__56 => 56, :T__57 => 57, :T__58 => 58,
76
+ :ESC_SEQ => 13, :BOOLEAN => 9, :T__51 => 51, :T__52 => 52,
77
+ :T__18 => 18, :T__53 => 53, :T__54 => 54, :T__59 => 59,
78
+ :NL => 4, :COMMENT => 11, :T__50 => 50, :T__42 => 42,
79
+ :T__43 => 43, :T__40 => 40, :T__41 => 41, :T__46 => 46,
80
+ :T__47 => 47, :T__44 => 44, :T__45 => 45, :T__48 => 48,
81
+ :T__49 => 49, :NULL => 8, :UNICODE_ESC => 16, :NUMBER => 7,
82
+ :HEX_DIGIT => 15, :MULTILINE_STRING => 10, :T__30 => 30,
83
+ :T__31 => 31, :T__32 => 32, :T__33 => 33, :T__71 => 71,
84
+ :WS => 12, :T__34 => 34, :T__72 => 72, :T__35 => 35,
85
+ :T__36 => 36, :T__70 => 70, :T__37 => 37, :T__38 => 38,
86
+ :T__39 => 39, :T__76 => 76, :T__75 => 75, :T__74 => 74,
87
+ :T__73 => 73, :STRING => 5, :T__77 => 77 )
88
+
89
+ end
90
+
91
+
92
+ class Lexer < ANTLR3::Lexer
93
+ @grammar_home = SfpLang
94
+ include TokenData
95
+
96
+
97
+ begin
98
+ generated_using( "SfpLang.g", "3.2.1-SNAPSHOT Jul 31, 2010 19:34:52", "1.8.11" )
99
+ rescue NoMethodError => error
100
+ # ignore
101
+ end
102
+
103
+ RULE_NAMES = [ "T__18", "T__19", "T__20", "T__21", "T__22", "T__23",
104
+ "T__24", "T__25", "T__26", "T__27", "T__28", "T__29",
105
+ "T__30", "T__31", "T__32", "T__33", "T__34", "T__35",
106
+ "T__36", "T__37", "T__38", "T__39", "T__40", "T__41",
107
+ "T__42", "T__43", "T__44", "T__45", "T__46", "T__47",
108
+ "T__48", "T__49", "T__50", "T__51", "T__52", "T__53",
109
+ "T__54", "T__55", "T__56", "T__57", "T__58", "T__59",
110
+ "T__60", "T__61", "T__62", "T__63", "T__64", "T__65",
111
+ "T__66", "T__67", "T__68", "T__69", "T__70", "T__71",
112
+ "T__72", "T__73", "T__74", "T__75", "T__76", "T__77",
113
+ "NULL", "BOOLEAN", "ID", "NUMBER", "COMMENT", "MULTILINE_STRING",
114
+ "NL", "WS", "STRING", "EXPONENT", "HEX_DIGIT", "ESC_SEQ",
115
+ "OCTAL_ESC", "UNICODE_ESC" ].freeze
116
+ RULE_METHODS = [ :t__18!, :t__19!, :t__20!, :t__21!, :t__22!, :t__23!,
117
+ :t__24!, :t__25!, :t__26!, :t__27!, :t__28!, :t__29!,
118
+ :t__30!, :t__31!, :t__32!, :t__33!, :t__34!, :t__35!,
119
+ :t__36!, :t__37!, :t__38!, :t__39!, :t__40!, :t__41!,
120
+ :t__42!, :t__43!, :t__44!, :t__45!, :t__46!, :t__47!,
121
+ :t__48!, :t__49!, :t__50!, :t__51!, :t__52!, :t__53!,
122
+ :t__54!, :t__55!, :t__56!, :t__57!, :t__58!, :t__59!,
123
+ :t__60!, :t__61!, :t__62!, :t__63!, :t__64!, :t__65!,
124
+ :t__66!, :t__67!, :t__68!, :t__69!, :t__70!, :t__71!,
125
+ :t__72!, :t__73!, :t__74!, :t__75!, :t__76!, :t__77!,
126
+ :null!, :boolean!, :id!, :number!, :comment!, :multiline_string!,
127
+ :nl!, :ws!, :string!, :exponent!, :hex_digit!, :esc_seq!,
128
+ :octal_esc!, :unicode_esc! ].freeze
129
+
130
+
131
+ def initialize( input=nil, options = {} )
132
+ super( input, options )
133
+
134
+ end
135
+
136
+
137
+ # - - - - - - - - - - - lexer rules - - - - - - - - - - - -
138
+ # lexer rule t__18! (T__18)
139
+ # (in SfpLang.g)
140
+ def t__18!
141
+ # -> uncomment the next line to manually enable rule tracing
142
+ # trace_in( __method__, 1 )
143
+
144
+ type = T__18
145
+ channel = ANTLR3::DEFAULT_CHANNEL
146
+
147
+
148
+ # - - - - main rule block - - - -
149
+ # at line 7:9: 'include'
150
+ match( "include" )
151
+
152
+
153
+ @state.type = type
154
+ @state.channel = channel
155
+
156
+ ensure
157
+ # -> uncomment the next line to manually enable rule tracing
158
+ # trace_out( __method__, 1 )
159
+
160
+ end
161
+
162
+ # lexer rule t__19! (T__19)
163
+ # (in SfpLang.g)
164
+ def t__19!
165
+ # -> uncomment the next line to manually enable rule tracing
166
+ # trace_in( __method__, 2 )
167
+
168
+ type = T__19
169
+ channel = ANTLR3::DEFAULT_CHANNEL
170
+
171
+
172
+ # - - - - main rule block - - - -
173
+ # at line 8:9: 'state'
174
+ match( "state" )
175
+
176
+
177
+ @state.type = type
178
+ @state.channel = channel
179
+
180
+ ensure
181
+ # -> uncomment the next line to manually enable rule tracing
182
+ # trace_out( __method__, 2 )
183
+
184
+ end
185
+
186
+ # lexer rule t__20! (T__20)
187
+ # (in SfpLang.g)
188
+ def t__20!
189
+ # -> uncomment the next line to manually enable rule tracing
190
+ # trace_in( __method__, 3 )
191
+
192
+ type = T__20
193
+ channel = ANTLR3::DEFAULT_CHANNEL
194
+
195
+
196
+ # - - - - main rule block - - - -
197
+ # at line 9:9: '{'
198
+ match( 0x7b )
199
+
200
+
201
+ @state.type = type
202
+ @state.channel = channel
203
+
204
+ ensure
205
+ # -> uncomment the next line to manually enable rule tracing
206
+ # trace_out( __method__, 3 )
207
+
208
+ end
209
+
210
+ # lexer rule t__21! (T__21)
211
+ # (in SfpLang.g)
212
+ def t__21!
213
+ # -> uncomment the next line to manually enable rule tracing
214
+ # trace_in( __method__, 4 )
215
+
216
+ type = T__21
217
+ channel = ANTLR3::DEFAULT_CHANNEL
218
+
219
+
220
+ # - - - - main rule block - - - -
221
+ # at line 10:9: '}'
222
+ match( 0x7d )
223
+
224
+
225
+ @state.type = type
226
+ @state.channel = channel
227
+
228
+ ensure
229
+ # -> uncomment the next line to manually enable rule tracing
230
+ # trace_out( __method__, 4 )
231
+
232
+ end
233
+
234
+ # lexer rule t__22! (T__22)
235
+ # (in SfpLang.g)
236
+ def t__22!
237
+ # -> uncomment the next line to manually enable rule tracing
238
+ # trace_in( __method__, 5 )
239
+
240
+ type = T__22
241
+ channel = ANTLR3::DEFAULT_CHANNEL
242
+
243
+
244
+ # - - - - main rule block - - - -
245
+ # at line 11:9: 'composite'
246
+ match( "composite" )
247
+
248
+
249
+ @state.type = type
250
+ @state.channel = channel
251
+
252
+ ensure
253
+ # -> uncomment the next line to manually enable rule tracing
254
+ # trace_out( __method__, 5 )
255
+
256
+ end
257
+
258
+ # lexer rule t__23! (T__23)
259
+ # (in SfpLang.g)
260
+ def t__23!
261
+ # -> uncomment the next line to manually enable rule tracing
262
+ # trace_in( __method__, 6 )
263
+
264
+ type = T__23
265
+ channel = ANTLR3::DEFAULT_CHANNEL
266
+
267
+
268
+ # - - - - main rule block - - - -
269
+ # at line 12:9: 'class'
270
+ match( "class" )
271
+
272
+
273
+ @state.type = type
274
+ @state.channel = channel
275
+
276
+ ensure
277
+ # -> uncomment the next line to manually enable rule tracing
278
+ # trace_out( __method__, 6 )
279
+
280
+ end
281
+
282
+ # lexer rule t__24! (T__24)
283
+ # (in SfpLang.g)
284
+ def t__24!
285
+ # -> uncomment the next line to manually enable rule tracing
286
+ # trace_in( __method__, 7 )
287
+
288
+ type = T__24
289
+ channel = ANTLR3::DEFAULT_CHANNEL
290
+
291
+
292
+ # - - - - main rule block - - - -
293
+ # at line 13:9: 'extends'
294
+ match( "extends" )
295
+
296
+
297
+ @state.type = type
298
+ @state.channel = channel
299
+
300
+ ensure
301
+ # -> uncomment the next line to manually enable rule tracing
302
+ # trace_out( __method__, 7 )
303
+
304
+ end
305
+
306
+ # lexer rule t__25! (T__25)
307
+ # (in SfpLang.g)
308
+ def t__25!
309
+ # -> uncomment the next line to manually enable rule tracing
310
+ # trace_in( __method__, 8 )
311
+
312
+ type = T__25
313
+ channel = ANTLR3::DEFAULT_CHANNEL
314
+
315
+
316
+ # - - - - main rule block - - - -
317
+ # at line 14:9: 'isa'
318
+ match( "isa" )
319
+
320
+
321
+ @state.type = type
322
+ @state.channel = channel
323
+
324
+ ensure
325
+ # -> uncomment the next line to manually enable rule tracing
326
+ # trace_out( __method__, 8 )
327
+
328
+ end
329
+
330
+ # lexer rule t__26! (T__26)
331
+ # (in SfpLang.g)
332
+ def t__26!
333
+ # -> uncomment the next line to manually enable rule tracing
334
+ # trace_in( __method__, 9 )
335
+
336
+ type = T__26
337
+ channel = ANTLR3::DEFAULT_CHANNEL
338
+
339
+
340
+ # - - - - main rule block - - - -
341
+ # at line 15:9: '['
342
+ match( 0x5b )
343
+
344
+
345
+ @state.type = type
346
+ @state.channel = channel
347
+
348
+ ensure
349
+ # -> uncomment the next line to manually enable rule tracing
350
+ # trace_out( __method__, 9 )
351
+
352
+ end
353
+
354
+ # lexer rule t__27! (T__27)
355
+ # (in SfpLang.g)
356
+ def t__27!
357
+ # -> uncomment the next line to manually enable rule tracing
358
+ # trace_in( __method__, 10 )
359
+
360
+ type = T__27
361
+ channel = ANTLR3::DEFAULT_CHANNEL
362
+
363
+
364
+ # - - - - main rule block - - - -
365
+ # at line 16:9: ']'
366
+ match( 0x5d )
367
+
368
+
369
+ @state.type = type
370
+ @state.channel = channel
371
+
372
+ ensure
373
+ # -> uncomment the next line to manually enable rule tracing
374
+ # trace_out( __method__, 10 )
375
+
376
+ end
377
+
378
+ # lexer rule t__28! (T__28)
379
+ # (in SfpLang.g)
380
+ def t__28!
381
+ # -> uncomment the next line to manually enable rule tracing
382
+ # trace_in( __method__, 11 )
383
+
384
+ type = T__28
385
+ channel = ANTLR3::DEFAULT_CHANNEL
386
+
387
+
388
+ # - - - - main rule block - - - -
389
+ # at line 17:9: 'if'
390
+ match( "if" )
391
+
392
+
393
+ @state.type = type
394
+ @state.channel = channel
395
+
396
+ ensure
397
+ # -> uncomment the next line to manually enable rule tracing
398
+ # trace_out( __method__, 11 )
399
+
400
+ end
401
+
402
+ # lexer rule t__29! (T__29)
403
+ # (in SfpLang.g)
404
+ def t__29!
405
+ # -> uncomment the next line to manually enable rule tracing
406
+ # trace_in( __method__, 12 )
407
+
408
+ type = T__29
409
+ channel = ANTLR3::DEFAULT_CHANNEL
410
+
411
+
412
+ # - - - - main rule block - - - -
413
+ # at line 18:9: 'then'
414
+ match( "then" )
415
+
416
+
417
+ @state.type = type
418
+ @state.channel = channel
419
+
420
+ ensure
421
+ # -> uncomment the next line to manually enable rule tracing
422
+ # trace_out( __method__, 12 )
423
+
424
+ end
425
+
426
+ # lexer rule t__30! (T__30)
427
+ # (in SfpLang.g)
428
+ def t__30!
429
+ # -> uncomment the next line to manually enable rule tracing
430
+ # trace_in( __method__, 13 )
431
+
432
+ type = T__30
433
+ channel = ANTLR3::DEFAULT_CHANNEL
434
+
435
+
436
+ # - - - - main rule block - - - -
437
+ # at line 19:9: 'or'
438
+ match( "or" )
439
+
440
+
441
+ @state.type = type
442
+ @state.channel = channel
443
+
444
+ ensure
445
+ # -> uncomment the next line to manually enable rule tracing
446
+ # trace_out( __method__, 13 )
447
+
448
+ end
449
+
450
+ # lexer rule t__31! (T__31)
451
+ # (in SfpLang.g)
452
+ def t__31!
453
+ # -> uncomment the next line to manually enable rule tracing
454
+ # trace_in( __method__, 14 )
455
+
456
+ type = T__31
457
+ channel = ANTLR3::DEFAULT_CHANNEL
458
+
459
+
460
+ # - - - - main rule block - - - -
461
+ # at line 20:9: 'operator'
462
+ match( "operator" )
463
+
464
+
465
+ @state.type = type
466
+ @state.channel = channel
467
+
468
+ ensure
469
+ # -> uncomment the next line to manually enable rule tracing
470
+ # trace_out( __method__, 14 )
471
+
472
+ end
473
+
474
+ # lexer rule t__32! (T__32)
475
+ # (in SfpLang.g)
476
+ def t__32!
477
+ # -> uncomment the next line to manually enable rule tracing
478
+ # trace_in( __method__, 15 )
479
+
480
+ type = T__32
481
+ channel = ANTLR3::DEFAULT_CHANNEL
482
+
483
+
484
+ # - - - - main rule block - - - -
485
+ # at line 21:9: 'cost'
486
+ match( "cost" )
487
+
488
+
489
+ @state.type = type
490
+ @state.channel = channel
491
+
492
+ ensure
493
+ # -> uncomment the next line to manually enable rule tracing
494
+ # trace_out( __method__, 15 )
495
+
496
+ end
497
+
498
+ # lexer rule t__33! (T__33)
499
+ # (in SfpLang.g)
500
+ def t__33!
501
+ # -> uncomment the next line to manually enable rule tracing
502
+ # trace_in( __method__, 16 )
503
+
504
+ type = T__33
505
+ channel = ANTLR3::DEFAULT_CHANNEL
506
+
507
+
508
+ # - - - - main rule block - - - -
509
+ # at line 22:9: 'conditions'
510
+ match( "conditions" )
511
+
512
+
513
+ @state.type = type
514
+ @state.channel = channel
515
+
516
+ ensure
517
+ # -> uncomment the next line to manually enable rule tracing
518
+ # trace_out( __method__, 16 )
519
+
520
+ end
521
+
522
+ # lexer rule t__34! (T__34)
523
+ # (in SfpLang.g)
524
+ def t__34!
525
+ # -> uncomment the next line to manually enable rule tracing
526
+ # trace_in( __method__, 17 )
527
+
528
+ type = T__34
529
+ channel = ANTLR3::DEFAULT_CHANNEL
530
+
531
+
532
+ # - - - - main rule block - - - -
533
+ # at line 23:9: 'effects'
534
+ match( "effects" )
535
+
536
+
537
+ @state.type = type
538
+ @state.channel = channel
539
+
540
+ ensure
541
+ # -> uncomment the next line to manually enable rule tracing
542
+ # trace_out( __method__, 17 )
543
+
544
+ end
545
+
546
+ # lexer rule t__35! (T__35)
547
+ # (in SfpLang.g)
548
+ def t__35!
549
+ # -> uncomment the next line to manually enable rule tracing
550
+ # trace_in( __method__, 18 )
551
+
552
+ type = T__35
553
+ channel = ANTLR3::DEFAULT_CHANNEL
554
+
555
+
556
+ # - - - - main rule block - - - -
557
+ # at line 24:9: 'procedure'
558
+ match( "procedure" )
559
+
560
+
561
+ @state.type = type
562
+ @state.channel = channel
563
+
564
+ ensure
565
+ # -> uncomment the next line to manually enable rule tracing
566
+ # trace_out( __method__, 18 )
567
+
568
+ end
569
+
570
+ # lexer rule t__36! (T__36)
571
+ # (in SfpLang.g)
572
+ def t__36!
573
+ # -> uncomment the next line to manually enable rule tracing
574
+ # trace_in( __method__, 19 )
575
+
576
+ type = T__36
577
+ channel = ANTLR3::DEFAULT_CHANNEL
578
+
579
+
580
+ # - - - - main rule block - - - -
581
+ # at line 25:9: '('
582
+ match( 0x28 )
583
+
584
+
585
+ @state.type = type
586
+ @state.channel = channel
587
+
588
+ ensure
589
+ # -> uncomment the next line to manually enable rule tracing
590
+ # trace_out( __method__, 19 )
591
+
592
+ end
593
+
594
+ # lexer rule t__37! (T__37)
595
+ # (in SfpLang.g)
596
+ def t__37!
597
+ # -> uncomment the next line to manually enable rule tracing
598
+ # trace_in( __method__, 20 )
599
+
600
+ type = T__37
601
+ channel = ANTLR3::DEFAULT_CHANNEL
602
+
603
+
604
+ # - - - - main rule block - - - -
605
+ # at line 26:9: ','
606
+ match( 0x2c )
607
+
608
+
609
+ @state.type = type
610
+ @state.channel = channel
611
+
612
+ ensure
613
+ # -> uncomment the next line to manually enable rule tracing
614
+ # trace_out( __method__, 20 )
615
+
616
+ end
617
+
618
+ # lexer rule t__38! (T__38)
619
+ # (in SfpLang.g)
620
+ def t__38!
621
+ # -> uncomment the next line to manually enable rule tracing
622
+ # trace_in( __method__, 21 )
623
+
624
+ type = T__38
625
+ channel = ANTLR3::DEFAULT_CHANNEL
626
+
627
+
628
+ # - - - - main rule block - - - -
629
+ # at line 27:9: ')'
630
+ match( 0x29 )
631
+
632
+
633
+ @state.type = type
634
+ @state.channel = channel
635
+
636
+ ensure
637
+ # -> uncomment the next line to manually enable rule tracing
638
+ # trace_out( __method__, 21 )
639
+
640
+ end
641
+
642
+ # lexer rule t__39! (T__39)
643
+ # (in SfpLang.g)
644
+ def t__39!
645
+ # -> uncomment the next line to manually enable rule tracing
646
+ # trace_in( __method__, 22 )
647
+
648
+ type = T__39
649
+ channel = ANTLR3::DEFAULT_CHANNEL
650
+
651
+
652
+ # - - - - main rule block - - - -
653
+ # at line 28:9: 'areall'
654
+ match( "areall" )
655
+
656
+
657
+ @state.type = type
658
+ @state.channel = channel
659
+
660
+ ensure
661
+ # -> uncomment the next line to manually enable rule tracing
662
+ # trace_out( __method__, 22 )
663
+
664
+ end
665
+
666
+ # lexer rule t__40! (T__40)
667
+ # (in SfpLang.g)
668
+ def t__40!
669
+ # -> uncomment the next line to manually enable rule tracing
670
+ # trace_in( __method__, 23 )
671
+
672
+ type = T__40
673
+ channel = ANTLR3::DEFAULT_CHANNEL
674
+
675
+
676
+ # - - - - main rule block - - - -
677
+ # at line 29:9: 'isset'
678
+ match( "isset" )
679
+
680
+
681
+ @state.type = type
682
+ @state.channel = channel
683
+
684
+ ensure
685
+ # -> uncomment the next line to manually enable rule tracing
686
+ # trace_out( __method__, 23 )
687
+
688
+ end
689
+
690
+ # lexer rule t__41! (T__41)
691
+ # (in SfpLang.g)
692
+ def t__41!
693
+ # -> uncomment the next line to manually enable rule tracing
694
+ # trace_in( __method__, 24 )
695
+
696
+ type = T__41
697
+ channel = ANTLR3::DEFAULT_CHANNEL
698
+
699
+
700
+ # - - - - main rule block - - - -
701
+ # at line 30:9: 'goal'
702
+ match( "goal" )
703
+
704
+
705
+ @state.type = type
706
+ @state.channel = channel
707
+
708
+ ensure
709
+ # -> uncomment the next line to manually enable rule tracing
710
+ # trace_out( __method__, 24 )
711
+
712
+ end
713
+
714
+ # lexer rule t__42! (T__42)
715
+ # (in SfpLang.g)
716
+ def t__42!
717
+ # -> uncomment the next line to manually enable rule tracing
718
+ # trace_in( __method__, 25 )
719
+
720
+ type = T__42
721
+ channel = ANTLR3::DEFAULT_CHANNEL
722
+
723
+
724
+ # - - - - main rule block - - - -
725
+ # at line 31:9: 'constraint'
726
+ match( "constraint" )
727
+
728
+
729
+ @state.type = type
730
+ @state.channel = channel
731
+
732
+ ensure
733
+ # -> uncomment the next line to manually enable rule tracing
734
+ # trace_out( __method__, 25 )
735
+
736
+ end
737
+
738
+ # lexer rule t__43! (T__43)
739
+ # (in SfpLang.g)
740
+ def t__43!
741
+ # -> uncomment the next line to manually enable rule tracing
742
+ # trace_in( __method__, 26 )
743
+
744
+ type = T__43
745
+ channel = ANTLR3::DEFAULT_CHANNEL
746
+
747
+
748
+ # - - - - main rule block - - - -
749
+ # at line 32:9: 'always'
750
+ match( "always" )
751
+
752
+
753
+ @state.type = type
754
+ @state.channel = channel
755
+
756
+ ensure
757
+ # -> uncomment the next line to manually enable rule tracing
758
+ # trace_out( __method__, 26 )
759
+
760
+ end
761
+
762
+ # lexer rule t__44! (T__44)
763
+ # (in SfpLang.g)
764
+ def t__44!
765
+ # -> uncomment the next line to manually enable rule tracing
766
+ # trace_in( __method__, 27 )
767
+
768
+ type = T__44
769
+ channel = ANTLR3::DEFAULT_CHANNEL
770
+
771
+
772
+ # - - - - main rule block - - - -
773
+ # at line 33:9: 'sometime'
774
+ match( "sometime" )
775
+
776
+
777
+ @state.type = type
778
+ @state.channel = channel
779
+
780
+ ensure
781
+ # -> uncomment the next line to manually enable rule tracing
782
+ # trace_out( __method__, 27 )
783
+
784
+ end
785
+
786
+ # lexer rule t__45! (T__45)
787
+ # (in SfpLang.g)
788
+ def t__45!
789
+ # -> uncomment the next line to manually enable rule tracing
790
+ # trace_in( __method__, 28 )
791
+
792
+ type = T__45
793
+ channel = ANTLR3::DEFAULT_CHANNEL
794
+
795
+
796
+ # - - - - main rule block - - - -
797
+ # at line 34:9: 'within'
798
+ match( "within" )
799
+
800
+
801
+ @state.type = type
802
+ @state.channel = channel
803
+
804
+ ensure
805
+ # -> uncomment the next line to manually enable rule tracing
806
+ # trace_out( __method__, 28 )
807
+
808
+ end
809
+
810
+ # lexer rule t__46! (T__46)
811
+ # (in SfpLang.g)
812
+ def t__46!
813
+ # -> uncomment the next line to manually enable rule tracing
814
+ # trace_in( __method__, 29 )
815
+
816
+ type = T__46
817
+ channel = ANTLR3::DEFAULT_CHANNEL
818
+
819
+
820
+ # - - - - main rule block - - - -
821
+ # at line 35:9: 'after'
822
+ match( "after" )
823
+
824
+
825
+ @state.type = type
826
+ @state.channel = channel
827
+
828
+ ensure
829
+ # -> uncomment the next line to manually enable rule tracing
830
+ # trace_out( __method__, 29 )
831
+
832
+ end
833
+
834
+ # lexer rule t__47! (T__47)
835
+ # (in SfpLang.g)
836
+ def t__47!
837
+ # -> uncomment the next line to manually enable rule tracing
838
+ # trace_in( __method__, 30 )
839
+
840
+ type = T__47
841
+ channel = ANTLR3::DEFAULT_CHANNEL
842
+
843
+
844
+ # - - - - main rule block - - - -
845
+ # at line 36:9: 'before'
846
+ match( "before" )
847
+
848
+
849
+ @state.type = type
850
+ @state.channel = channel
851
+
852
+ ensure
853
+ # -> uncomment the next line to manually enable rule tracing
854
+ # trace_out( __method__, 30 )
855
+
856
+ end
857
+
858
+ # lexer rule t__48! (T__48)
859
+ # (in SfpLang.g)
860
+ def t__48!
861
+ # -> uncomment the next line to manually enable rule tracing
862
+ # trace_in( __method__, 31 )
863
+
864
+ type = T__48
865
+ channel = ANTLR3::DEFAULT_CHANNEL
866
+
867
+
868
+ # - - - - main rule block - - - -
869
+ # at line 37:9: 'foreach'
870
+ match( "foreach" )
871
+
872
+
873
+ @state.type = type
874
+ @state.channel = channel
875
+
876
+ ensure
877
+ # -> uncomment the next line to manually enable rule tracing
878
+ # trace_out( __method__, 31 )
879
+
880
+ end
881
+
882
+ # lexer rule t__49! (T__49)
883
+ # (in SfpLang.g)
884
+ def t__49!
885
+ # -> uncomment the next line to manually enable rule tracing
886
+ # trace_in( __method__, 32 )
887
+
888
+ type = T__49
889
+ channel = ANTLR3::DEFAULT_CHANNEL
890
+
891
+
892
+ # - - - - main rule block - - - -
893
+ # at line 38:9: 'as'
894
+ match( "as" )
895
+
896
+
897
+ @state.type = type
898
+ @state.channel = channel
899
+
900
+ ensure
901
+ # -> uncomment the next line to manually enable rule tracing
902
+ # trace_out( __method__, 32 )
903
+
904
+ end
905
+
906
+ # lexer rule t__50! (T__50)
907
+ # (in SfpLang.g)
908
+ def t__50!
909
+ # -> uncomment the next line to manually enable rule tracing
910
+ # trace_in( __method__, 33 )
911
+
912
+ type = T__50
913
+ channel = ANTLR3::DEFAULT_CHANNEL
914
+
915
+
916
+ # - - - - main rule block - - - -
917
+ # at line 39:9: 'forall'
918
+ match( "forall" )
919
+
920
+
921
+ @state.type = type
922
+ @state.channel = channel
923
+
924
+ ensure
925
+ # -> uncomment the next line to manually enable rule tracing
926
+ # trace_out( __method__, 33 )
927
+
928
+ end
929
+
930
+ # lexer rule t__51! (T__51)
931
+ # (in SfpLang.g)
932
+ def t__51!
933
+ # -> uncomment the next line to manually enable rule tracing
934
+ # trace_in( __method__, 34 )
935
+
936
+ type = T__51
937
+ channel = ANTLR3::DEFAULT_CHANNEL
938
+
939
+
940
+ # - - - - main rule block - - - -
941
+ # at line 40:9: 'exist'
942
+ match( "exist" )
943
+
944
+
945
+ @state.type = type
946
+ @state.channel = channel
947
+
948
+ ensure
949
+ # -> uncomment the next line to manually enable rule tracing
950
+ # trace_out( __method__, 34 )
951
+
952
+ end
953
+
954
+ # lexer rule t__52! (T__52)
955
+ # (in SfpLang.g)
956
+ def t__52!
957
+ # -> uncomment the next line to manually enable rule tracing
958
+ # trace_in( __method__, 35 )
959
+
960
+ type = T__52
961
+ channel = ANTLR3::DEFAULT_CHANNEL
962
+
963
+
964
+ # - - - - main rule block - - - -
965
+ # at line 41:9: 'forsome'
966
+ match( "forsome" )
967
+
968
+
969
+ @state.type = type
970
+ @state.channel = channel
971
+
972
+ ensure
973
+ # -> uncomment the next line to manually enable rule tracing
974
+ # trace_out( __method__, 35 )
975
+
976
+ end
977
+
978
+ # lexer rule t__53! (T__53)
979
+ # (in SfpLang.g)
980
+ def t__53!
981
+ # -> uncomment the next line to manually enable rule tracing
982
+ # trace_in( __method__, 36 )
983
+
984
+ type = T__53
985
+ channel = ANTLR3::DEFAULT_CHANNEL
986
+
987
+
988
+ # - - - - main rule block - - - -
989
+ # at line 42:9: '='
990
+ match( 0x3d )
991
+
992
+
993
+ @state.type = type
994
+ @state.channel = channel
995
+
996
+ ensure
997
+ # -> uncomment the next line to manually enable rule tracing
998
+ # trace_out( __method__, 36 )
999
+
1000
+ end
1001
+
1002
+ # lexer rule t__54! (T__54)
1003
+ # (in SfpLang.g)
1004
+ def t__54!
1005
+ # -> uncomment the next line to manually enable rule tracing
1006
+ # trace_in( __method__, 37 )
1007
+
1008
+ type = T__54
1009
+ channel = ANTLR3::DEFAULT_CHANNEL
1010
+
1011
+
1012
+ # - - - - main rule block - - - -
1013
+ # at line 43:9: ':different'
1014
+ match( ":different" )
1015
+
1016
+
1017
+ @state.type = type
1018
+ @state.channel = channel
1019
+
1020
+ ensure
1021
+ # -> uncomment the next line to manually enable rule tracing
1022
+ # trace_out( __method__, 37 )
1023
+
1024
+ end
1025
+
1026
+ # lexer rule t__55! (T__55)
1027
+ # (in SfpLang.g)
1028
+ def t__55!
1029
+ # -> uncomment the next line to manually enable rule tracing
1030
+ # trace_in( __method__, 38 )
1031
+
1032
+ type = T__55
1033
+ channel = ANTLR3::DEFAULT_CHANNEL
1034
+
1035
+
1036
+ # - - - - main rule block - - - -
1037
+ # at line 44:9: 'not'
1038
+ match( "not" )
1039
+
1040
+
1041
+ @state.type = type
1042
+ @state.channel = channel
1043
+
1044
+ ensure
1045
+ # -> uncomment the next line to manually enable rule tracing
1046
+ # trace_out( __method__, 38 )
1047
+
1048
+ end
1049
+
1050
+ # lexer rule t__56! (T__56)
1051
+ # (in SfpLang.g)
1052
+ def t__56!
1053
+ # -> uncomment the next line to manually enable rule tracing
1054
+ # trace_in( __method__, 39 )
1055
+
1056
+ type = T__56
1057
+ channel = ANTLR3::DEFAULT_CHANNEL
1058
+
1059
+
1060
+ # - - - - main rule block - - - -
1061
+ # at line 45:9: 'is'
1062
+ match( "is" )
1063
+
1064
+
1065
+ @state.type = type
1066
+ @state.channel = channel
1067
+
1068
+ ensure
1069
+ # -> uncomment the next line to manually enable rule tracing
1070
+ # trace_out( __method__, 39 )
1071
+
1072
+ end
1073
+
1074
+ # lexer rule t__57! (T__57)
1075
+ # (in SfpLang.g)
1076
+ def t__57!
1077
+ # -> uncomment the next line to manually enable rule tracing
1078
+ # trace_in( __method__, 40 )
1079
+
1080
+ type = T__57
1081
+ channel = ANTLR3::DEFAULT_CHANNEL
1082
+
1083
+
1084
+ # - - - - main rule block - - - -
1085
+ # at line 46:9: 'in'
1086
+ match( "in" )
1087
+
1088
+
1089
+ @state.type = type
1090
+ @state.channel = channel
1091
+
1092
+ ensure
1093
+ # -> uncomment the next line to manually enable rule tracing
1094
+ # trace_out( __method__, 40 )
1095
+
1096
+ end
1097
+
1098
+ # lexer rule t__58! (T__58)
1099
+ # (in SfpLang.g)
1100
+ def t__58!
1101
+ # -> uncomment the next line to manually enable rule tracing
1102
+ # trace_in( __method__, 41 )
1103
+
1104
+ type = T__58
1105
+ channel = ANTLR3::DEFAULT_CHANNEL
1106
+
1107
+
1108
+ # - - - - main rule block - - - -
1109
+ # at line 47:9: 'isnot'
1110
+ match( "isnot" )
1111
+
1112
+
1113
+ @state.type = type
1114
+ @state.channel = channel
1115
+
1116
+ ensure
1117
+ # -> uncomment the next line to manually enable rule tracing
1118
+ # trace_out( __method__, 41 )
1119
+
1120
+ end
1121
+
1122
+ # lexer rule t__59! (T__59)
1123
+ # (in SfpLang.g)
1124
+ def t__59!
1125
+ # -> uncomment the next line to manually enable rule tracing
1126
+ # trace_in( __method__, 42 )
1127
+
1128
+ type = T__59
1129
+ channel = ANTLR3::DEFAULT_CHANNEL
1130
+
1131
+
1132
+ # - - - - main rule block - - - -
1133
+ # at line 48:9: 'isnt'
1134
+ match( "isnt" )
1135
+
1136
+
1137
+ @state.type = type
1138
+ @state.channel = channel
1139
+
1140
+ ensure
1141
+ # -> uncomment the next line to manually enable rule tracing
1142
+ # trace_out( __method__, 42 )
1143
+
1144
+ end
1145
+
1146
+ # lexer rule t__60! (T__60)
1147
+ # (in SfpLang.g)
1148
+ def t__60!
1149
+ # -> uncomment the next line to manually enable rule tracing
1150
+ # trace_in( __method__, 43 )
1151
+
1152
+ type = T__60
1153
+ channel = ANTLR3::DEFAULT_CHANNEL
1154
+
1155
+
1156
+ # - - - - main rule block - - - -
1157
+ # at line 49:9: 'has'
1158
+ match( "has" )
1159
+
1160
+
1161
+ @state.type = type
1162
+ @state.channel = channel
1163
+
1164
+ ensure
1165
+ # -> uncomment the next line to manually enable rule tracing
1166
+ # trace_out( __method__, 43 )
1167
+
1168
+ end
1169
+
1170
+ # lexer rule t__61! (T__61)
1171
+ # (in SfpLang.g)
1172
+ def t__61!
1173
+ # -> uncomment the next line to manually enable rule tracing
1174
+ # trace_in( __method__, 44 )
1175
+
1176
+ type = T__61
1177
+ channel = ANTLR3::DEFAULT_CHANNEL
1178
+
1179
+
1180
+ # - - - - main rule block - - - -
1181
+ # at line 50:9: 'total('
1182
+ match( "total(" )
1183
+
1184
+
1185
+ @state.type = type
1186
+ @state.channel = channel
1187
+
1188
+ ensure
1189
+ # -> uncomment the next line to manually enable rule tracing
1190
+ # trace_out( __method__, 44 )
1191
+
1192
+ end
1193
+
1194
+ # lexer rule t__62! (T__62)
1195
+ # (in SfpLang.g)
1196
+ def t__62!
1197
+ # -> uncomment the next line to manually enable rule tracing
1198
+ # trace_in( __method__, 45 )
1199
+
1200
+ type = T__62
1201
+ channel = ANTLR3::DEFAULT_CHANNEL
1202
+
1203
+
1204
+ # - - - - main rule block - - - -
1205
+ # at line 51:9: 'new'
1206
+ match( "new" )
1207
+
1208
+
1209
+ @state.type = type
1210
+ @state.channel = channel
1211
+
1212
+ ensure
1213
+ # -> uncomment the next line to manually enable rule tracing
1214
+ # trace_out( __method__, 45 )
1215
+
1216
+ end
1217
+
1218
+ # lexer rule t__63! (T__63)
1219
+ # (in SfpLang.g)
1220
+ def t__63!
1221
+ # -> uncomment the next line to manually enable rule tracing
1222
+ # trace_in( __method__, 46 )
1223
+
1224
+ type = T__63
1225
+ channel = ANTLR3::DEFAULT_CHANNEL
1226
+
1227
+
1228
+ # - - - - main rule block - - - -
1229
+ # at line 52:9: 'delete'
1230
+ match( "delete" )
1231
+
1232
+
1233
+ @state.type = type
1234
+ @state.channel = channel
1235
+
1236
+ ensure
1237
+ # -> uncomment the next line to manually enable rule tracing
1238
+ # trace_out( __method__, 46 )
1239
+
1240
+ end
1241
+
1242
+ # lexer rule t__64! (T__64)
1243
+ # (in SfpLang.g)
1244
+ def t__64!
1245
+ # -> uncomment the next line to manually enable rule tracing
1246
+ # trace_in( __method__, 47 )
1247
+
1248
+ type = T__64
1249
+ channel = ANTLR3::DEFAULT_CHANNEL
1250
+
1251
+
1252
+ # - - - - main rule block - - - -
1253
+ # at line 53:9: 'add('
1254
+ match( "add(" )
1255
+
1256
+
1257
+ @state.type = type
1258
+ @state.channel = channel
1259
+
1260
+ ensure
1261
+ # -> uncomment the next line to manually enable rule tracing
1262
+ # trace_out( __method__, 47 )
1263
+
1264
+ end
1265
+
1266
+ # lexer rule t__65! (T__65)
1267
+ # (in SfpLang.g)
1268
+ def t__65!
1269
+ # -> uncomment the next line to manually enable rule tracing
1270
+ # trace_in( __method__, 48 )
1271
+
1272
+ type = T__65
1273
+ channel = ANTLR3::DEFAULT_CHANNEL
1274
+
1275
+
1276
+ # - - - - main rule block - - - -
1277
+ # at line 54:9: 'remove('
1278
+ match( "remove(" )
1279
+
1280
+
1281
+ @state.type = type
1282
+ @state.channel = channel
1283
+
1284
+ ensure
1285
+ # -> uncomment the next line to manually enable rule tracing
1286
+ # trace_out( __method__, 48 )
1287
+
1288
+ end
1289
+
1290
+ # lexer rule t__66! (T__66)
1291
+ # (in SfpLang.g)
1292
+ def t__66!
1293
+ # -> uncomment the next line to manually enable rule tracing
1294
+ # trace_in( __method__, 49 )
1295
+
1296
+ type = T__66
1297
+ channel = ANTLR3::DEFAULT_CHANNEL
1298
+
1299
+
1300
+ # - - - - main rule block - - - -
1301
+ # at line 55:9: '.'
1302
+ match( 0x2e )
1303
+
1304
+
1305
+ @state.type = type
1306
+ @state.channel = channel
1307
+
1308
+ ensure
1309
+ # -> uncomment the next line to manually enable rule tracing
1310
+ # trace_out( __method__, 49 )
1311
+
1312
+ end
1313
+
1314
+ # lexer rule t__67! (T__67)
1315
+ # (in SfpLang.g)
1316
+ def t__67!
1317
+ # -> uncomment the next line to manually enable rule tracing
1318
+ # trace_in( __method__, 50 )
1319
+
1320
+ type = T__67
1321
+ channel = ANTLR3::DEFAULT_CHANNEL
1322
+
1323
+
1324
+ # - - - - main rule block - - - -
1325
+ # at line 56:9: 'isref'
1326
+ match( "isref" )
1327
+
1328
+
1329
+ @state.type = type
1330
+ @state.channel = channel
1331
+
1332
+ ensure
1333
+ # -> uncomment the next line to manually enable rule tracing
1334
+ # trace_out( __method__, 50 )
1335
+
1336
+ end
1337
+
1338
+ # lexer rule t__68! (T__68)
1339
+ # (in SfpLang.g)
1340
+ def t__68!
1341
+ # -> uncomment the next line to manually enable rule tracing
1342
+ # trace_in( __method__, 51 )
1343
+
1344
+ type = T__68
1345
+ channel = ANTLR3::DEFAULT_CHANNEL
1346
+
1347
+
1348
+ # - - - - main rule block - - - -
1349
+ # at line 57:9: 'either'
1350
+ match( "either" )
1351
+
1352
+
1353
+ @state.type = type
1354
+ @state.channel = channel
1355
+
1356
+ ensure
1357
+ # -> uncomment the next line to manually enable rule tracing
1358
+ # trace_out( __method__, 51 )
1359
+
1360
+ end
1361
+
1362
+ # lexer rule t__69! (T__69)
1363
+ # (in SfpLang.g)
1364
+ def t__69!
1365
+ # -> uncomment the next line to manually enable rule tracing
1366
+ # trace_in( __method__, 52 )
1367
+
1368
+ type = T__69
1369
+ channel = ANTLR3::DEFAULT_CHANNEL
1370
+
1371
+
1372
+ # - - - - main rule block - - - -
1373
+ # at line 58:9: '!='
1374
+ match( "!=" )
1375
+
1376
+
1377
+ @state.type = type
1378
+ @state.channel = channel
1379
+
1380
+ ensure
1381
+ # -> uncomment the next line to manually enable rule tracing
1382
+ # trace_out( __method__, 52 )
1383
+
1384
+ end
1385
+
1386
+ # lexer rule t__70! (T__70)
1387
+ # (in SfpLang.g)
1388
+ def t__70!
1389
+ # -> uncomment the next line to manually enable rule tracing
1390
+ # trace_in( __method__, 53 )
1391
+
1392
+ type = T__70
1393
+ channel = ANTLR3::DEFAULT_CHANNEL
1394
+
1395
+
1396
+ # - - - - main rule block - - - -
1397
+ # at line 59:9: '+='
1398
+ match( "+=" )
1399
+
1400
+
1401
+ @state.type = type
1402
+ @state.channel = channel
1403
+
1404
+ ensure
1405
+ # -> uncomment the next line to manually enable rule tracing
1406
+ # trace_out( __method__, 53 )
1407
+
1408
+ end
1409
+
1410
+ # lexer rule t__71! (T__71)
1411
+ # (in SfpLang.g)
1412
+ def t__71!
1413
+ # -> uncomment the next line to manually enable rule tracing
1414
+ # trace_in( __method__, 54 )
1415
+
1416
+ type = T__71
1417
+ channel = ANTLR3::DEFAULT_CHANNEL
1418
+
1419
+
1420
+ # - - - - main rule block - - - -
1421
+ # at line 60:9: '-='
1422
+ match( "-=" )
1423
+
1424
+
1425
+ @state.type = type
1426
+ @state.channel = channel
1427
+
1428
+ ensure
1429
+ # -> uncomment the next line to manually enable rule tracing
1430
+ # trace_out( __method__, 54 )
1431
+
1432
+ end
1433
+
1434
+ # lexer rule t__72! (T__72)
1435
+ # (in SfpLang.g)
1436
+ def t__72!
1437
+ # -> uncomment the next line to manually enable rule tracing
1438
+ # trace_in( __method__, 55 )
1439
+
1440
+ type = T__72
1441
+ channel = ANTLR3::DEFAULT_CHANNEL
1442
+
1443
+
1444
+ # - - - - main rule block - - - -
1445
+ # at line 61:9: '*='
1446
+ match( "*=" )
1447
+
1448
+
1449
+ @state.type = type
1450
+ @state.channel = channel
1451
+
1452
+ ensure
1453
+ # -> uncomment the next line to manually enable rule tracing
1454
+ # trace_out( __method__, 55 )
1455
+
1456
+ end
1457
+
1458
+ # lexer rule t__73! (T__73)
1459
+ # (in SfpLang.g)
1460
+ def t__73!
1461
+ # -> uncomment the next line to manually enable rule tracing
1462
+ # trace_in( __method__, 56 )
1463
+
1464
+ type = T__73
1465
+ channel = ANTLR3::DEFAULT_CHANNEL
1466
+
1467
+
1468
+ # - - - - main rule block - - - -
1469
+ # at line 62:9: '/='
1470
+ match( "/=" )
1471
+
1472
+
1473
+ @state.type = type
1474
+ @state.channel = channel
1475
+
1476
+ ensure
1477
+ # -> uncomment the next line to manually enable rule tracing
1478
+ # trace_out( __method__, 56 )
1479
+
1480
+ end
1481
+
1482
+ # lexer rule t__74! (T__74)
1483
+ # (in SfpLang.g)
1484
+ def t__74!
1485
+ # -> uncomment the next line to manually enable rule tracing
1486
+ # trace_in( __method__, 57 )
1487
+
1488
+ type = T__74
1489
+ channel = ANTLR3::DEFAULT_CHANNEL
1490
+
1491
+
1492
+ # - - - - main rule block - - - -
1493
+ # at line 63:9: '>'
1494
+ match( 0x3e )
1495
+
1496
+
1497
+ @state.type = type
1498
+ @state.channel = channel
1499
+
1500
+ ensure
1501
+ # -> uncomment the next line to manually enable rule tracing
1502
+ # trace_out( __method__, 57 )
1503
+
1504
+ end
1505
+
1506
+ # lexer rule t__75! (T__75)
1507
+ # (in SfpLang.g)
1508
+ def t__75!
1509
+ # -> uncomment the next line to manually enable rule tracing
1510
+ # trace_in( __method__, 58 )
1511
+
1512
+ type = T__75
1513
+ channel = ANTLR3::DEFAULT_CHANNEL
1514
+
1515
+
1516
+ # - - - - main rule block - - - -
1517
+ # at line 64:9: '>='
1518
+ match( ">=" )
1519
+
1520
+
1521
+ @state.type = type
1522
+ @state.channel = channel
1523
+
1524
+ ensure
1525
+ # -> uncomment the next line to manually enable rule tracing
1526
+ # trace_out( __method__, 58 )
1527
+
1528
+ end
1529
+
1530
+ # lexer rule t__76! (T__76)
1531
+ # (in SfpLang.g)
1532
+ def t__76!
1533
+ # -> uncomment the next line to manually enable rule tracing
1534
+ # trace_in( __method__, 59 )
1535
+
1536
+ type = T__76
1537
+ channel = ANTLR3::DEFAULT_CHANNEL
1538
+
1539
+
1540
+ # - - - - main rule block - - - -
1541
+ # at line 65:9: '<'
1542
+ match( 0x3c )
1543
+
1544
+
1545
+ @state.type = type
1546
+ @state.channel = channel
1547
+
1548
+ ensure
1549
+ # -> uncomment the next line to manually enable rule tracing
1550
+ # trace_out( __method__, 59 )
1551
+
1552
+ end
1553
+
1554
+ # lexer rule t__77! (T__77)
1555
+ # (in SfpLang.g)
1556
+ def t__77!
1557
+ # -> uncomment the next line to manually enable rule tracing
1558
+ # trace_in( __method__, 60 )
1559
+
1560
+ type = T__77
1561
+ channel = ANTLR3::DEFAULT_CHANNEL
1562
+
1563
+
1564
+ # - - - - main rule block - - - -
1565
+ # at line 66:9: '<='
1566
+ match( "<=" )
1567
+
1568
+
1569
+ @state.type = type
1570
+ @state.channel = channel
1571
+
1572
+ ensure
1573
+ # -> uncomment the next line to manually enable rule tracing
1574
+ # trace_out( __method__, 60 )
1575
+
1576
+ end
1577
+
1578
+ # lexer rule null! (NULL)
1579
+ # (in SfpLang.g)
1580
+ def null!
1581
+ # -> uncomment the next line to manually enable rule tracing
1582
+ # trace_in( __method__, 61 )
1583
+
1584
+ type = NULL
1585
+ channel = ANTLR3::DEFAULT_CHANNEL
1586
+
1587
+
1588
+ # - - - - main rule block - - - -
1589
+ # at line 934:2: ( 'null' | 'nil' )
1590
+ alt_1 = 2
1591
+ look_1_0 = @input.peek( 1 )
1592
+
1593
+ if ( look_1_0 == 0x6e )
1594
+ look_1_1 = @input.peek( 2 )
1595
+
1596
+ if ( look_1_1 == 0x75 )
1597
+ alt_1 = 1
1598
+ elsif ( look_1_1 == 0x69 )
1599
+ alt_1 = 2
1600
+ else
1601
+ raise NoViableAlternative( "", 1, 1 )
1602
+ end
1603
+ else
1604
+ raise NoViableAlternative( "", 1, 0 )
1605
+ end
1606
+ case alt_1
1607
+ when 1
1608
+ # at line 934:4: 'null'
1609
+ match( "null" )
1610
+
1611
+ when 2
1612
+ # at line 935:4: 'nil'
1613
+ match( "nil" )
1614
+
1615
+ end
1616
+
1617
+ @state.type = type
1618
+ @state.channel = channel
1619
+
1620
+ ensure
1621
+ # -> uncomment the next line to manually enable rule tracing
1622
+ # trace_out( __method__, 61 )
1623
+
1624
+ end
1625
+
1626
+ # lexer rule boolean! (BOOLEAN)
1627
+ # (in SfpLang.g)
1628
+ def boolean!
1629
+ # -> uncomment the next line to manually enable rule tracing
1630
+ # trace_in( __method__, 62 )
1631
+
1632
+ type = BOOLEAN
1633
+ channel = ANTLR3::DEFAULT_CHANNEL
1634
+
1635
+
1636
+ # - - - - main rule block - - - -
1637
+ # at line 939:2: ( 'true' | 'false' | 'off' | 'on' | 'yes' | 'no' )
1638
+ alt_2 = 6
1639
+ case look_2 = @input.peek( 1 )
1640
+ when 0x74 then alt_2 = 1
1641
+ when 0x66 then alt_2 = 2
1642
+ when 0x6f then look_2_3 = @input.peek( 2 )
1643
+
1644
+ if ( look_2_3 == 0x66 )
1645
+ alt_2 = 3
1646
+ elsif ( look_2_3 == 0x6e )
1647
+ alt_2 = 4
1648
+ else
1649
+ raise NoViableAlternative( "", 2, 3 )
1650
+ end
1651
+ when 0x79 then alt_2 = 5
1652
+ when 0x6e then alt_2 = 6
1653
+ else
1654
+ raise NoViableAlternative( "", 2, 0 )
1655
+ end
1656
+ case alt_2
1657
+ when 1
1658
+ # at line 939:4: 'true'
1659
+ match( "true" )
1660
+
1661
+ when 2
1662
+ # at line 940:4: 'false'
1663
+ match( "false" )
1664
+
1665
+ when 3
1666
+ # at line 941:4: 'off'
1667
+ match( "off" )
1668
+
1669
+ when 4
1670
+ # at line 942:4: 'on'
1671
+ match( "on" )
1672
+
1673
+ when 5
1674
+ # at line 943:4: 'yes'
1675
+ match( "yes" )
1676
+
1677
+ when 6
1678
+ # at line 944:4: 'no'
1679
+ match( "no" )
1680
+
1681
+ end
1682
+
1683
+ @state.type = type
1684
+ @state.channel = channel
1685
+
1686
+ ensure
1687
+ # -> uncomment the next line to manually enable rule tracing
1688
+ # trace_out( __method__, 62 )
1689
+
1690
+ end
1691
+
1692
+ # lexer rule id! (ID)
1693
+ # (in SfpLang.g)
1694
+ def id!
1695
+ # -> uncomment the next line to manually enable rule tracing
1696
+ # trace_in( __method__, 63 )
1697
+
1698
+ type = ID
1699
+ channel = ANTLR3::DEFAULT_CHANNEL
1700
+
1701
+
1702
+ # - - - - main rule block - - - -
1703
+ # at line 947:6: ( 'a' .. 'z' | 'A' .. 'Z' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' )*
1704
+ if @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.peek( 1 ).between?( 0x61, 0x7a )
1705
+ @input.consume
1706
+ else
1707
+ mse = MismatchedSet( nil )
1708
+ recover mse
1709
+ raise mse
1710
+ end
1711
+
1712
+
1713
+ # at line 947:26: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '-' )*
1714
+ while true # decision 3
1715
+ alt_3 = 2
1716
+ look_3_0 = @input.peek( 1 )
1717
+
1718
+ if ( look_3_0 == 0x2d || look_3_0.between?( 0x30, 0x39 ) || look_3_0.between?( 0x41, 0x5a ) || look_3_0 == 0x5f || look_3_0.between?( 0x61, 0x7a ) )
1719
+ alt_3 = 1
1720
+
1721
+ end
1722
+ case alt_3
1723
+ when 1
1724
+ # at line
1725
+ if @input.peek(1) == 0x2d || @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x5a ) || @input.peek(1) == 0x5f || @input.peek( 1 ).between?( 0x61, 0x7a )
1726
+ @input.consume
1727
+ else
1728
+ mse = MismatchedSet( nil )
1729
+ recover mse
1730
+ raise mse
1731
+ end
1732
+
1733
+
1734
+
1735
+ else
1736
+ break # out of loop for decision 3
1737
+ end
1738
+ end # loop for decision 3
1739
+
1740
+
1741
+ @state.type = type
1742
+ @state.channel = channel
1743
+
1744
+ ensure
1745
+ # -> uncomment the next line to manually enable rule tracing
1746
+ # trace_out( __method__, 63 )
1747
+
1748
+ end
1749
+
1750
+ # lexer rule number! (NUMBER)
1751
+ # (in SfpLang.g)
1752
+ def number!
1753
+ # -> uncomment the next line to manually enable rule tracing
1754
+ # trace_in( __method__, 64 )
1755
+
1756
+ type = NUMBER
1757
+ channel = ANTLR3::DEFAULT_CHANNEL
1758
+
1759
+
1760
+ # - - - - main rule block - - - -
1761
+ # at line 951:4: ( '-' )? ( '0' .. '9' )+
1762
+ # at line 951:4: ( '-' )?
1763
+ alt_4 = 2
1764
+ look_4_0 = @input.peek( 1 )
1765
+
1766
+ if ( look_4_0 == 0x2d )
1767
+ alt_4 = 1
1768
+ end
1769
+ case alt_4
1770
+ when 1
1771
+ # at line 951:4: '-'
1772
+ match( 0x2d )
1773
+
1774
+ end
1775
+ # at file 951:8: ( '0' .. '9' )+
1776
+ match_count_5 = 0
1777
+ while true
1778
+ alt_5 = 2
1779
+ look_5_0 = @input.peek( 1 )
1780
+
1781
+ if ( look_5_0.between?( 0x30, 0x39 ) )
1782
+ alt_5 = 1
1783
+
1784
+ end
1785
+ case alt_5
1786
+ when 1
1787
+ # at line 951:9: '0' .. '9'
1788
+ match_range( 0x30, 0x39 )
1789
+
1790
+ else
1791
+ match_count_5 > 0 and break
1792
+ eee = EarlyExit(5)
1793
+
1794
+
1795
+ raise eee
1796
+ end
1797
+ match_count_5 += 1
1798
+ end
1799
+
1800
+
1801
+
1802
+ @state.type = type
1803
+ @state.channel = channel
1804
+
1805
+ ensure
1806
+ # -> uncomment the next line to manually enable rule tracing
1807
+ # trace_out( __method__, 64 )
1808
+
1809
+ end
1810
+
1811
+ # lexer rule comment! (COMMENT)
1812
+ # (in SfpLang.g)
1813
+ def comment!
1814
+ # -> uncomment the next line to manually enable rule tracing
1815
+ # trace_in( __method__, 65 )
1816
+
1817
+ type = COMMENT
1818
+ channel = ANTLR3::DEFAULT_CHANNEL
1819
+
1820
+
1821
+ # - - - - main rule block - - - -
1822
+ # at line 962:2: ( '//' (~ ( '\\n' | '\\r' ) )* | '#' (~ ( '\\n' | '\\r' ) )* | '/*' ( options {greedy=false; } : . )* '*/' )
1823
+ alt_9 = 3
1824
+ look_9_0 = @input.peek( 1 )
1825
+
1826
+ if ( look_9_0 == 0x2f )
1827
+ look_9_1 = @input.peek( 2 )
1828
+
1829
+ if ( look_9_1 == 0x2f )
1830
+ alt_9 = 1
1831
+ elsif ( look_9_1 == 0x2a )
1832
+ alt_9 = 3
1833
+ else
1834
+ raise NoViableAlternative( "", 9, 1 )
1835
+ end
1836
+ elsif ( look_9_0 == 0x23 )
1837
+ alt_9 = 2
1838
+ else
1839
+ raise NoViableAlternative( "", 9, 0 )
1840
+ end
1841
+ case alt_9
1842
+ when 1
1843
+ # at line 962:4: '//' (~ ( '\\n' | '\\r' ) )*
1844
+ match( "//" )
1845
+ # at line 962:9: (~ ( '\\n' | '\\r' ) )*
1846
+ while true # decision 6
1847
+ alt_6 = 2
1848
+ look_6_0 = @input.peek( 1 )
1849
+
1850
+ if ( look_6_0.between?( 0x0, 0x9 ) || look_6_0.between?( 0xb, 0xc ) || look_6_0.between?( 0xe, 0xffff ) )
1851
+ alt_6 = 1
1852
+
1853
+ end
1854
+ case alt_6
1855
+ when 1
1856
+ # at line 962:9: ~ ( '\\n' | '\\r' )
1857
+ if @input.peek( 1 ).between?( 0x0, 0x9 ) || @input.peek( 1 ).between?( 0xb, 0xc ) || @input.peek( 1 ).between?( 0xe, 0xff )
1858
+ @input.consume
1859
+ else
1860
+ mse = MismatchedSet( nil )
1861
+ recover mse
1862
+ raise mse
1863
+ end
1864
+
1865
+
1866
+
1867
+ else
1868
+ break # out of loop for decision 6
1869
+ end
1870
+ end # loop for decision 6
1871
+ # --> action
1872
+ channel=HIDDEN;
1873
+ # <-- action
1874
+
1875
+ when 2
1876
+ # at line 963:4: '#' (~ ( '\\n' | '\\r' ) )*
1877
+ match( 0x23 )
1878
+ # at line 963:8: (~ ( '\\n' | '\\r' ) )*
1879
+ while true # decision 7
1880
+ alt_7 = 2
1881
+ look_7_0 = @input.peek( 1 )
1882
+
1883
+ if ( look_7_0.between?( 0x0, 0x9 ) || look_7_0.between?( 0xb, 0xc ) || look_7_0.between?( 0xe, 0xffff ) )
1884
+ alt_7 = 1
1885
+
1886
+ end
1887
+ case alt_7
1888
+ when 1
1889
+ # at line 963:8: ~ ( '\\n' | '\\r' )
1890
+ if @input.peek( 1 ).between?( 0x0, 0x9 ) || @input.peek( 1 ).between?( 0xb, 0xc ) || @input.peek( 1 ).between?( 0xe, 0xff )
1891
+ @input.consume
1892
+ else
1893
+ mse = MismatchedSet( nil )
1894
+ recover mse
1895
+ raise mse
1896
+ end
1897
+
1898
+
1899
+
1900
+ else
1901
+ break # out of loop for decision 7
1902
+ end
1903
+ end # loop for decision 7
1904
+ # --> action
1905
+ channel=HIDDEN;
1906
+ # <-- action
1907
+
1908
+ when 3
1909
+ # at line 964:4: '/*' ( options {greedy=false; } : . )* '*/'
1910
+ match( "/*" )
1911
+ # at line 964:9: ( options {greedy=false; } : . )*
1912
+ while true # decision 8
1913
+ alt_8 = 2
1914
+ look_8_0 = @input.peek( 1 )
1915
+
1916
+ if ( look_8_0 == 0x2a )
1917
+ look_8_1 = @input.peek( 2 )
1918
+
1919
+ if ( look_8_1 == 0x2f )
1920
+ alt_8 = 2
1921
+ elsif ( look_8_1.between?( 0x0, 0x2e ) || look_8_1.between?( 0x30, 0xffff ) )
1922
+ alt_8 = 1
1923
+
1924
+ end
1925
+ elsif ( look_8_0.between?( 0x0, 0x29 ) || look_8_0.between?( 0x2b, 0xffff ) )
1926
+ alt_8 = 1
1927
+
1928
+ end
1929
+ case alt_8
1930
+ when 1
1931
+ # at line 964:37: .
1932
+ match_any
1933
+
1934
+ else
1935
+ break # out of loop for decision 8
1936
+ end
1937
+ end # loop for decision 8
1938
+ match( "*/" )
1939
+ # --> action
1940
+ channel=HIDDEN;
1941
+ # <-- action
1942
+
1943
+ end
1944
+
1945
+ @state.type = type
1946
+ @state.channel = channel
1947
+
1948
+ ensure
1949
+ # -> uncomment the next line to manually enable rule tracing
1950
+ # trace_out( __method__, 65 )
1951
+
1952
+ end
1953
+
1954
+ # lexer rule multiline_string! (MULTILINE_STRING)
1955
+ # (in SfpLang.g)
1956
+ def multiline_string!
1957
+ # -> uncomment the next line to manually enable rule tracing
1958
+ # trace_in( __method__, 66 )
1959
+
1960
+ type = MULTILINE_STRING
1961
+ channel = ANTLR3::DEFAULT_CHANNEL
1962
+
1963
+
1964
+ # - - - - main rule block - - - -
1965
+ # at line 968:4: 'r\"' ( options {greedy=false; } : . )* '\"'
1966
+ match( "r\"" )
1967
+ # at line 968:9: ( options {greedy=false; } : . )*
1968
+ while true # decision 10
1969
+ alt_10 = 2
1970
+ look_10_0 = @input.peek( 1 )
1971
+
1972
+ if ( look_10_0 == 0x22 )
1973
+ alt_10 = 2
1974
+ elsif ( look_10_0.between?( 0x0, 0x21 ) || look_10_0.between?( 0x23, 0xffff ) )
1975
+ alt_10 = 1
1976
+
1977
+ end
1978
+ case alt_10
1979
+ when 1
1980
+ # at line 968:37: .
1981
+ match_any
1982
+
1983
+ else
1984
+ break # out of loop for decision 10
1985
+ end
1986
+ end # loop for decision 10
1987
+ match( 0x22 )
1988
+
1989
+
1990
+ @state.type = type
1991
+ @state.channel = channel
1992
+
1993
+ ensure
1994
+ # -> uncomment the next line to manually enable rule tracing
1995
+ # trace_out( __method__, 66 )
1996
+
1997
+ end
1998
+
1999
+ # lexer rule nl! (NL)
2000
+ # (in SfpLang.g)
2001
+ def nl!
2002
+ # -> uncomment the next line to manually enable rule tracing
2003
+ # trace_in( __method__, 67 )
2004
+
2005
+ type = NL
2006
+ channel = ANTLR3::DEFAULT_CHANNEL
2007
+
2008
+
2009
+ # - - - - main rule block - - - -
2010
+ # at line 971:6: ( '\\r' )? '\\n'
2011
+ # at line 971:6: ( '\\r' )?
2012
+ alt_11 = 2
2013
+ look_11_0 = @input.peek( 1 )
2014
+
2015
+ if ( look_11_0 == 0xd )
2016
+ alt_11 = 1
2017
+ end
2018
+ case alt_11
2019
+ when 1
2020
+ # at line 971:6: '\\r'
2021
+ match( 0xd )
2022
+
2023
+ end
2024
+ match( 0xa )
2025
+
2026
+
2027
+ @state.type = type
2028
+ @state.channel = channel
2029
+
2030
+ ensure
2031
+ # -> uncomment the next line to manually enable rule tracing
2032
+ # trace_out( __method__, 67 )
2033
+
2034
+ end
2035
+
2036
+ # lexer rule ws! (WS)
2037
+ # (in SfpLang.g)
2038
+ def ws!
2039
+ # -> uncomment the next line to manually enable rule tracing
2040
+ # trace_in( __method__, 68 )
2041
+
2042
+ type = WS
2043
+ channel = ANTLR3::DEFAULT_CHANNEL
2044
+
2045
+
2046
+ # - - - - main rule block - - - -
2047
+ # at line 974:8: ( ' ' | '\\t' )
2048
+ if @input.peek(1) == 0x9 || @input.peek(1) == 0x20
2049
+ @input.consume
2050
+ else
2051
+ mse = MismatchedSet( nil )
2052
+ recover mse
2053
+ raise mse
2054
+ end
2055
+
2056
+
2057
+ # --> action
2058
+ channel=HIDDEN;
2059
+ # <-- action
2060
+
2061
+
2062
+ @state.type = type
2063
+ @state.channel = channel
2064
+
2065
+ ensure
2066
+ # -> uncomment the next line to manually enable rule tracing
2067
+ # trace_out( __method__, 68 )
2068
+
2069
+ end
2070
+
2071
+ # lexer rule string! (STRING)
2072
+ # (in SfpLang.g)
2073
+ def string!
2074
+ # -> uncomment the next line to manually enable rule tracing
2075
+ # trace_in( __method__, 69 )
2076
+
2077
+ type = STRING
2078
+ channel = ANTLR3::DEFAULT_CHANNEL
2079
+
2080
+
2081
+ # - - - - main rule block - - - -
2082
+ # at line 978:5: '\"' ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )* '\"'
2083
+ match( 0x22 )
2084
+ # at line 978:9: ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )*
2085
+ while true # decision 12
2086
+ alt_12 = 3
2087
+ look_12_0 = @input.peek( 1 )
2088
+
2089
+ if ( look_12_0 == 0x5c )
2090
+ alt_12 = 1
2091
+ elsif ( look_12_0.between?( 0x0, 0x21 ) || look_12_0.between?( 0x23, 0x5b ) || look_12_0.between?( 0x5d, 0xffff ) )
2092
+ alt_12 = 2
2093
+
2094
+ end
2095
+ case alt_12
2096
+ when 1
2097
+ # at line 978:11: ESC_SEQ
2098
+ esc_seq!
2099
+
2100
+ when 2
2101
+ # at line 978:21: ~ ( '\\\\' | '\"' )
2102
+ if @input.peek( 1 ).between?( 0x0, 0x21 ) || @input.peek( 1 ).between?( 0x23, 0x5b ) || @input.peek( 1 ).between?( 0x5d, 0xff )
2103
+ @input.consume
2104
+ else
2105
+ mse = MismatchedSet( nil )
2106
+ recover mse
2107
+ raise mse
2108
+ end
2109
+
2110
+
2111
+
2112
+ else
2113
+ break # out of loop for decision 12
2114
+ end
2115
+ end # loop for decision 12
2116
+ match( 0x22 )
2117
+
2118
+
2119
+ @state.type = type
2120
+ @state.channel = channel
2121
+
2122
+ ensure
2123
+ # -> uncomment the next line to manually enable rule tracing
2124
+ # trace_out( __method__, 69 )
2125
+
2126
+ end
2127
+
2128
+ # lexer rule exponent! (EXPONENT)
2129
+ # (in SfpLang.g)
2130
+ def exponent!
2131
+ # -> uncomment the next line to manually enable rule tracing
2132
+ # trace_in( __method__, 70 )
2133
+
2134
+
2135
+ # - - - - main rule block - - - -
2136
+ # at line 982:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
2137
+ if @input.peek(1) == 0x45 || @input.peek(1) == 0x65
2138
+ @input.consume
2139
+ else
2140
+ mse = MismatchedSet( nil )
2141
+ recover mse
2142
+ raise mse
2143
+ end
2144
+
2145
+
2146
+ # at line 982:22: ( '+' | '-' )?
2147
+ alt_13 = 2
2148
+ look_13_0 = @input.peek( 1 )
2149
+
2150
+ if ( look_13_0 == 0x2b || look_13_0 == 0x2d )
2151
+ alt_13 = 1
2152
+ end
2153
+ case alt_13
2154
+ when 1
2155
+ # at line
2156
+ if @input.peek(1) == 0x2b || @input.peek(1) == 0x2d
2157
+ @input.consume
2158
+ else
2159
+ mse = MismatchedSet( nil )
2160
+ recover mse
2161
+ raise mse
2162
+ end
2163
+
2164
+
2165
+
2166
+ end
2167
+ # at file 982:33: ( '0' .. '9' )+
2168
+ match_count_14 = 0
2169
+ while true
2170
+ alt_14 = 2
2171
+ look_14_0 = @input.peek( 1 )
2172
+
2173
+ if ( look_14_0.between?( 0x30, 0x39 ) )
2174
+ alt_14 = 1
2175
+
2176
+ end
2177
+ case alt_14
2178
+ when 1
2179
+ # at line 982:34: '0' .. '9'
2180
+ match_range( 0x30, 0x39 )
2181
+
2182
+ else
2183
+ match_count_14 > 0 and break
2184
+ eee = EarlyExit(14)
2185
+
2186
+
2187
+ raise eee
2188
+ end
2189
+ match_count_14 += 1
2190
+ end
2191
+
2192
+
2193
+ ensure
2194
+ # -> uncomment the next line to manually enable rule tracing
2195
+ # trace_out( __method__, 70 )
2196
+
2197
+ end
2198
+
2199
+ # lexer rule hex_digit! (HEX_DIGIT)
2200
+ # (in SfpLang.g)
2201
+ def hex_digit!
2202
+ # -> uncomment the next line to manually enable rule tracing
2203
+ # trace_in( __method__, 71 )
2204
+
2205
+
2206
+ # - - - - main rule block - - - -
2207
+ # at line 985:13: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
2208
+ if @input.peek( 1 ).between?( 0x30, 0x39 ) || @input.peek( 1 ).between?( 0x41, 0x46 ) || @input.peek( 1 ).between?( 0x61, 0x66 )
2209
+ @input.consume
2210
+ else
2211
+ mse = MismatchedSet( nil )
2212
+ recover mse
2213
+ raise mse
2214
+ end
2215
+
2216
+
2217
+
2218
+ ensure
2219
+ # -> uncomment the next line to manually enable rule tracing
2220
+ # trace_out( __method__, 71 )
2221
+
2222
+ end
2223
+
2224
+ # lexer rule esc_seq! (ESC_SEQ)
2225
+ # (in SfpLang.g)
2226
+ def esc_seq!
2227
+ # -> uncomment the next line to manually enable rule tracing
2228
+ # trace_in( __method__, 72 )
2229
+
2230
+
2231
+ # - - - - main rule block - - - -
2232
+ # at line 989:2: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UNICODE_ESC | OCTAL_ESC )
2233
+ alt_15 = 3
2234
+ look_15_0 = @input.peek( 1 )
2235
+
2236
+ if ( look_15_0 == 0x5c )
2237
+ case look_15 = @input.peek( 2 )
2238
+ when 0x22, 0x27, 0x5c, 0x62, 0x66, 0x6e, 0x72, 0x74 then alt_15 = 1
2239
+ when 0x75 then alt_15 = 2
2240
+ when 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37 then alt_15 = 3
2241
+ else
2242
+ raise NoViableAlternative( "", 15, 1 )
2243
+ end
2244
+ else
2245
+ raise NoViableAlternative( "", 15, 0 )
2246
+ end
2247
+ case alt_15
2248
+ when 1
2249
+ # at line 989:6: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
2250
+ match( 0x5c )
2251
+ if @input.peek(1) == 0x22 || @input.peek(1) == 0x27 || @input.peek(1) == 0x5c || @input.peek(1) == 0x62 || @input.peek(1) == 0x66 || @input.peek(1) == 0x6e || @input.peek(1) == 0x72 || @input.peek(1) == 0x74
2252
+ @input.consume
2253
+ else
2254
+ mse = MismatchedSet( nil )
2255
+ recover mse
2256
+ raise mse
2257
+ end
2258
+
2259
+
2260
+
2261
+ when 2
2262
+ # at line 990:6: UNICODE_ESC
2263
+ unicode_esc!
2264
+
2265
+ when 3
2266
+ # at line 991:6: OCTAL_ESC
2267
+ octal_esc!
2268
+
2269
+ end
2270
+ ensure
2271
+ # -> uncomment the next line to manually enable rule tracing
2272
+ # trace_out( __method__, 72 )
2273
+
2274
+ end
2275
+
2276
+ # lexer rule octal_esc! (OCTAL_ESC)
2277
+ # (in SfpLang.g)
2278
+ def octal_esc!
2279
+ # -> uncomment the next line to manually enable rule tracing
2280
+ # trace_in( __method__, 73 )
2281
+
2282
+
2283
+ # - - - - main rule block - - - -
2284
+ # at line 996:2: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
2285
+ alt_16 = 3
2286
+ look_16_0 = @input.peek( 1 )
2287
+
2288
+ if ( look_16_0 == 0x5c )
2289
+ look_16_1 = @input.peek( 2 )
2290
+
2291
+ if ( look_16_1.between?( 0x30, 0x33 ) )
2292
+ look_16_2 = @input.peek( 3 )
2293
+
2294
+ if ( look_16_2.between?( 0x30, 0x37 ) )
2295
+ look_16_4 = @input.peek( 4 )
2296
+
2297
+ if ( look_16_4.between?( 0x30, 0x37 ) )
2298
+ alt_16 = 1
2299
+ else
2300
+ alt_16 = 2
2301
+ end
2302
+ else
2303
+ alt_16 = 3
2304
+ end
2305
+ elsif ( look_16_1.between?( 0x34, 0x37 ) )
2306
+ look_16_3 = @input.peek( 3 )
2307
+
2308
+ if ( look_16_3.between?( 0x30, 0x37 ) )
2309
+ alt_16 = 2
2310
+ else
2311
+ alt_16 = 3
2312
+ end
2313
+ else
2314
+ raise NoViableAlternative( "", 16, 1 )
2315
+ end
2316
+ else
2317
+ raise NoViableAlternative( "", 16, 0 )
2318
+ end
2319
+ case alt_16
2320
+ when 1
2321
+ # at line 996:6: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
2322
+ match( 0x5c )
2323
+ # at line 996:11: ( '0' .. '3' )
2324
+ # at line 996:12: '0' .. '3'
2325
+ match_range( 0x30, 0x33 )
2326
+
2327
+ # at line 996:22: ( '0' .. '7' )
2328
+ # at line 996:23: '0' .. '7'
2329
+ match_range( 0x30, 0x37 )
2330
+
2331
+ # at line 996:33: ( '0' .. '7' )
2332
+ # at line 996:34: '0' .. '7'
2333
+ match_range( 0x30, 0x37 )
2334
+
2335
+
2336
+ when 2
2337
+ # at line 997:6: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
2338
+ match( 0x5c )
2339
+ # at line 997:11: ( '0' .. '7' )
2340
+ # at line 997:12: '0' .. '7'
2341
+ match_range( 0x30, 0x37 )
2342
+
2343
+ # at line 997:22: ( '0' .. '7' )
2344
+ # at line 997:23: '0' .. '7'
2345
+ match_range( 0x30, 0x37 )
2346
+
2347
+
2348
+ when 3
2349
+ # at line 998:6: '\\\\' ( '0' .. '7' )
2350
+ match( 0x5c )
2351
+ # at line 998:11: ( '0' .. '7' )
2352
+ # at line 998:12: '0' .. '7'
2353
+ match_range( 0x30, 0x37 )
2354
+
2355
+
2356
+ end
2357
+ ensure
2358
+ # -> uncomment the next line to manually enable rule tracing
2359
+ # trace_out( __method__, 73 )
2360
+
2361
+ end
2362
+
2363
+ # lexer rule unicode_esc! (UNICODE_ESC)
2364
+ # (in SfpLang.g)
2365
+ def unicode_esc!
2366
+ # -> uncomment the next line to manually enable rule tracing
2367
+ # trace_in( __method__, 74 )
2368
+
2369
+
2370
+ # - - - - main rule block - - - -
2371
+ # at line 1003:6: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
2372
+ match( 0x5c )
2373
+ match( 0x75 )
2374
+ hex_digit!
2375
+ hex_digit!
2376
+ hex_digit!
2377
+ hex_digit!
2378
+
2379
+ ensure
2380
+ # -> uncomment the next line to manually enable rule tracing
2381
+ # trace_out( __method__, 74 )
2382
+
2383
+ end
2384
+
2385
+ # main rule used to study the input at the current position,
2386
+ # and choose the proper lexer rule to call in order to
2387
+ # fetch the next token
2388
+ #
2389
+ # usually, you don't make direct calls to this method,
2390
+ # but instead use the next_token method, which will
2391
+ # build and emit the actual next token
2392
+ def token!
2393
+ # at line 1:8: ( T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | 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 | NULL | BOOLEAN | ID | NUMBER | COMMENT | MULTILINE_STRING | NL | WS | STRING )
2394
+ alt_17 = 69
2395
+ alt_17 = @dfa17.predict( @input )
2396
+ case alt_17
2397
+ when 1
2398
+ # at line 1:10: T__18
2399
+ t__18!
2400
+
2401
+ when 2
2402
+ # at line 1:16: T__19
2403
+ t__19!
2404
+
2405
+ when 3
2406
+ # at line 1:22: T__20
2407
+ t__20!
2408
+
2409
+ when 4
2410
+ # at line 1:28: T__21
2411
+ t__21!
2412
+
2413
+ when 5
2414
+ # at line 1:34: T__22
2415
+ t__22!
2416
+
2417
+ when 6
2418
+ # at line 1:40: T__23
2419
+ t__23!
2420
+
2421
+ when 7
2422
+ # at line 1:46: T__24
2423
+ t__24!
2424
+
2425
+ when 8
2426
+ # at line 1:52: T__25
2427
+ t__25!
2428
+
2429
+ when 9
2430
+ # at line 1:58: T__26
2431
+ t__26!
2432
+
2433
+ when 10
2434
+ # at line 1:64: T__27
2435
+ t__27!
2436
+
2437
+ when 11
2438
+ # at line 1:70: T__28
2439
+ t__28!
2440
+
2441
+ when 12
2442
+ # at line 1:76: T__29
2443
+ t__29!
2444
+
2445
+ when 13
2446
+ # at line 1:82: T__30
2447
+ t__30!
2448
+
2449
+ when 14
2450
+ # at line 1:88: T__31
2451
+ t__31!
2452
+
2453
+ when 15
2454
+ # at line 1:94: T__32
2455
+ t__32!
2456
+
2457
+ when 16
2458
+ # at line 1:100: T__33
2459
+ t__33!
2460
+
2461
+ when 17
2462
+ # at line 1:106: T__34
2463
+ t__34!
2464
+
2465
+ when 18
2466
+ # at line 1:112: T__35
2467
+ t__35!
2468
+
2469
+ when 19
2470
+ # at line 1:118: T__36
2471
+ t__36!
2472
+
2473
+ when 20
2474
+ # at line 1:124: T__37
2475
+ t__37!
2476
+
2477
+ when 21
2478
+ # at line 1:130: T__38
2479
+ t__38!
2480
+
2481
+ when 22
2482
+ # at line 1:136: T__39
2483
+ t__39!
2484
+
2485
+ when 23
2486
+ # at line 1:142: T__40
2487
+ t__40!
2488
+
2489
+ when 24
2490
+ # at line 1:148: T__41
2491
+ t__41!
2492
+
2493
+ when 25
2494
+ # at line 1:154: T__42
2495
+ t__42!
2496
+
2497
+ when 26
2498
+ # at line 1:160: T__43
2499
+ t__43!
2500
+
2501
+ when 27
2502
+ # at line 1:166: T__44
2503
+ t__44!
2504
+
2505
+ when 28
2506
+ # at line 1:172: T__45
2507
+ t__45!
2508
+
2509
+ when 29
2510
+ # at line 1:178: T__46
2511
+ t__46!
2512
+
2513
+ when 30
2514
+ # at line 1:184: T__47
2515
+ t__47!
2516
+
2517
+ when 31
2518
+ # at line 1:190: T__48
2519
+ t__48!
2520
+
2521
+ when 32
2522
+ # at line 1:196: T__49
2523
+ t__49!
2524
+
2525
+ when 33
2526
+ # at line 1:202: T__50
2527
+ t__50!
2528
+
2529
+ when 34
2530
+ # at line 1:208: T__51
2531
+ t__51!
2532
+
2533
+ when 35
2534
+ # at line 1:214: T__52
2535
+ t__52!
2536
+
2537
+ when 36
2538
+ # at line 1:220: T__53
2539
+ t__53!
2540
+
2541
+ when 37
2542
+ # at line 1:226: T__54
2543
+ t__54!
2544
+
2545
+ when 38
2546
+ # at line 1:232: T__55
2547
+ t__55!
2548
+
2549
+ when 39
2550
+ # at line 1:238: T__56
2551
+ t__56!
2552
+
2553
+ when 40
2554
+ # at line 1:244: T__57
2555
+ t__57!
2556
+
2557
+ when 41
2558
+ # at line 1:250: T__58
2559
+ t__58!
2560
+
2561
+ when 42
2562
+ # at line 1:256: T__59
2563
+ t__59!
2564
+
2565
+ when 43
2566
+ # at line 1:262: T__60
2567
+ t__60!
2568
+
2569
+ when 44
2570
+ # at line 1:268: T__61
2571
+ t__61!
2572
+
2573
+ when 45
2574
+ # at line 1:274: T__62
2575
+ t__62!
2576
+
2577
+ when 46
2578
+ # at line 1:280: T__63
2579
+ t__63!
2580
+
2581
+ when 47
2582
+ # at line 1:286: T__64
2583
+ t__64!
2584
+
2585
+ when 48
2586
+ # at line 1:292: T__65
2587
+ t__65!
2588
+
2589
+ when 49
2590
+ # at line 1:298: T__66
2591
+ t__66!
2592
+
2593
+ when 50
2594
+ # at line 1:304: T__67
2595
+ t__67!
2596
+
2597
+ when 51
2598
+ # at line 1:310: T__68
2599
+ t__68!
2600
+
2601
+ when 52
2602
+ # at line 1:316: T__69
2603
+ t__69!
2604
+
2605
+ when 53
2606
+ # at line 1:322: T__70
2607
+ t__70!
2608
+
2609
+ when 54
2610
+ # at line 1:328: T__71
2611
+ t__71!
2612
+
2613
+ when 55
2614
+ # at line 1:334: T__72
2615
+ t__72!
2616
+
2617
+ when 56
2618
+ # at line 1:340: T__73
2619
+ t__73!
2620
+
2621
+ when 57
2622
+ # at line 1:346: T__74
2623
+ t__74!
2624
+
2625
+ when 58
2626
+ # at line 1:352: T__75
2627
+ t__75!
2628
+
2629
+ when 59
2630
+ # at line 1:358: T__76
2631
+ t__76!
2632
+
2633
+ when 60
2634
+ # at line 1:364: T__77
2635
+ t__77!
2636
+
2637
+ when 61
2638
+ # at line 1:370: NULL
2639
+ null!
2640
+
2641
+ when 62
2642
+ # at line 1:375: BOOLEAN
2643
+ boolean!
2644
+
2645
+ when 63
2646
+ # at line 1:383: ID
2647
+ id!
2648
+
2649
+ when 64
2650
+ # at line 1:386: NUMBER
2651
+ number!
2652
+
2653
+ when 65
2654
+ # at line 1:393: COMMENT
2655
+ comment!
2656
+
2657
+ when 66
2658
+ # at line 1:401: MULTILINE_STRING
2659
+ multiline_string!
2660
+
2661
+ when 67
2662
+ # at line 1:418: NL
2663
+ nl!
2664
+
2665
+ when 68
2666
+ # at line 1:421: WS
2667
+ ws!
2668
+
2669
+ when 69
2670
+ # at line 1:424: STRING
2671
+ string!
2672
+
2673
+ end
2674
+ end
2675
+
2676
+
2677
+ # - - - - - - - - - - DFA definitions - - - - - - - - - - -
2678
+ class DFA17 < ANTLR3::DFA
2679
+ EOT = unpack( 1, -1, 2, 35, 2, -1, 2, 35, 2, -1, 3, 35, 3, -1, 5,
2680
+ 35, 2, -1, 4, 35, 6, -1, 1, 80, 1, 82, 1, 35, 6, -1,
2681
+ 1, 85, 1, 90, 1, 91, 10, 35, 1, 105, 2, 35, 1, 108,
2682
+ 4, 35, 1, 113, 6, 35, 1, 108, 6, 35, 7, -1, 2, 35, 1,
2683
+ -1, 1, 129, 3, 35, 2, -1, 13, 35, 1, -1, 1, 35, 1, 108,
2684
+ 1, -1, 4, 35, 1, -1, 6, 35, 1, 161, 1, 162, 1, 35, 1,
2685
+ 164, 1, 165, 2, 35, 1, 108, 1, 35, 1, -1, 2, 35, 1,
2686
+ 171, 4, 35, 1, 176, 7, 35, 1, 184, 1, 35, 1, 108, 5,
2687
+ 35, 1, -1, 1, 191, 6, 35, 2, -1, 1, 164, 2, -1, 3, 35,
2688
+ 1, 201, 1, 202, 1, -1, 1, 203, 1, 204, 2, 35, 1, -1,
2689
+ 2, 35, 1, 209, 1, 35, 1, 211, 2, 35, 1, -1, 5, 35, 1,
2690
+ 219, 1, -1, 5, 35, 1, 108, 3, 35, 4, -1, 4, 35, 1, -1,
2691
+ 1, 35, 1, -1, 1, 35, 1, 234, 1, -1, 2, 35, 1, 237, 1,
2692
+ 238, 1, -1, 1, 239, 1, 240, 1, 35, 1, 242, 1, 35, 1,
2693
+ 244, 1, 35, 1, 246, 4, 35, 1, 251, 1, 252, 1, -1, 2,
2694
+ 35, 4, -1, 1, 255, 1, -1, 1, 256, 3, -1, 1, 257, 3,
2695
+ 35, 2, -1, 1, 261, 1, 35, 3, -1, 1, 263, 2, 35, 1, -1,
2696
+ 1, 266, 1, -1, 1, 267, 1, 268, 3, -1 )
2697
+ EOF = unpack( 269, -1 )
2698
+ MIN = unpack( 1, 9, 1, 102, 1, 111, 2, -1, 1, 108, 1, 102, 2, -1,
2699
+ 1, 104, 1, 102, 1, 114, 3, -1, 1, 100, 1, 111, 1, 105,
2700
+ 1, 101, 1, 97, 2, -1, 1, 101, 1, 97, 1, 101, 1, 34,
2701
+ 3, -1, 1, 48, 1, -1, 1, 42, 2, 61, 1, 101, 6, -1, 3,
2702
+ 45, 1, 97, 2, 109, 1, 97, 1, 105, 1, 102, 1, 116, 1,
2703
+ 101, 1, 116, 1, 117, 1, 45, 1, 101, 1, 102, 1, 45, 1,
2704
+ 111, 1, 101, 1, 119, 1, 116, 1, 45, 1, 100, 1, 97, 1,
2705
+ 116, 1, 102, 1, 114, 1, 108, 1, 45, 1, 119, 2, 108,
2706
+ 1, 115, 1, 108, 1, 109, 7, -1, 1, 115, 1, 108, 1, -1,
2707
+ 1, 45, 1, 101, 1, 111, 1, 101, 2, -1, 1, 116, 1, 101,
2708
+ 1, 112, 1, 116, 1, 100, 1, 115, 1, 101, 1, 115, 1, 101,
2709
+ 1, 104, 1, 110, 1, 97, 1, 101, 1, -1, 1, 114, 1, 45,
2710
+ 1, -1, 1, 99, 2, 97, 1, 101, 1, -1, 1, 40, 1, 108, 1,
2711
+ 104, 1, 111, 1, 97, 1, 115, 2, 45, 1, 108, 2, 45, 1,
2712
+ 101, 1, 111, 1, 45, 1, 117, 1, -1, 2, 116, 1, 45, 1,
2713
+ 102, 1, 101, 1, 116, 1, 111, 1, 45, 1, 105, 1, 116,
2714
+ 1, 115, 1, 110, 1, 116, 1, 99, 1, 101, 1, 45, 1, 108,
2715
+ 1, 45, 1, 97, 1, 101, 1, 108, 1, 121, 1, 114, 1, -1,
2716
+ 1, 45, 1, 105, 1, 114, 1, 97, 1, 108, 1, 111, 1, 101,
2717
+ 2, -1, 1, 45, 2, -1, 1, 116, 1, 118, 1, 100, 2, 45,
2718
+ 1, -1, 2, 45, 1, 105, 1, 115, 1, -1, 1, 116, 1, 114,
2719
+ 1, 45, 1, 100, 1, 45, 1, 116, 1, 114, 1, -1, 1, 40,
2720
+ 1, 116, 1, 100, 1, 108, 1, 115, 1, 45, 1, -1, 1, 110,
2721
+ 1, 101, 1, 99, 1, 108, 1, 109, 1, 45, 3, 101, 4, -1,
2722
+ 1, 109, 2, 105, 1, 97, 1, -1, 1, 115, 1, -1, 1, 115,
2723
+ 1, 45, 1, -1, 1, 111, 1, 117, 2, 45, 1, -1, 2, 45, 1,
2724
+ 104, 1, 45, 1, 101, 1, 45, 1, 40, 1, 45, 1, 101, 1,
2725
+ 116, 1, 111, 1, 105, 2, 45, 1, -1, 2, 114, 4, -1, 1,
2726
+ 45, 1, -1, 1, 45, 3, -1, 1, 45, 1, 101, 2, 110, 2, -1,
2727
+ 1, 45, 1, 101, 3, -1, 1, 45, 1, 115, 1, 116, 1, -1,
2728
+ 1, 45, 1, -1, 2, 45, 3, -1 )
2729
+ MAX = unpack( 1, 125, 1, 115, 1, 116, 2, -1, 1, 111, 1, 120, 2, -1,
2730
+ 3, 114, 3, -1, 1, 115, 1, 111, 1, 105, 1, 101, 1, 111,
2731
+ 2, -1, 1, 117, 1, 97, 2, 101, 3, -1, 1, 61, 1, -1, 3,
2732
+ 61, 1, 101, 6, -1, 3, 122, 1, 97, 1, 109, 1, 115, 1,
2733
+ 97, 1, 116, 1, 102, 1, 116, 1, 101, 1, 116, 1, 117,
2734
+ 1, 122, 1, 101, 1, 102, 1, 122, 1, 111, 1, 101, 1, 119,
2735
+ 1, 116, 1, 122, 1, 100, 1, 97, 1, 116, 1, 102, 1, 114,
2736
+ 1, 108, 1, 122, 1, 119, 2, 108, 1, 115, 1, 108, 1, 109,
2737
+ 7, -1, 1, 115, 1, 108, 1, -1, 1, 122, 1, 101, 1, 116,
2738
+ 1, 101, 2, -1, 1, 116, 1, 101, 1, 112, 1, 116, 2, 115,
2739
+ 1, 101, 1, 115, 1, 101, 1, 104, 1, 110, 1, 97, 1, 101,
2740
+ 1, -1, 1, 114, 1, 122, 1, -1, 1, 99, 2, 97, 1, 101,
2741
+ 1, -1, 1, 40, 1, 108, 1, 104, 1, 111, 2, 115, 2, 122,
2742
+ 1, 108, 2, 122, 1, 101, 1, 111, 1, 122, 1, 117, 1, -1,
2743
+ 2, 116, 1, 122, 1, 102, 1, 101, 1, 116, 1, 111, 1, 122,
2744
+ 1, 105, 1, 116, 1, 115, 1, 110, 1, 116, 1, 99, 1, 101,
2745
+ 1, 122, 1, 108, 1, 122, 1, 97, 1, 101, 1, 108, 1, 121,
2746
+ 1, 114, 1, -1, 1, 122, 1, 105, 1, 114, 1, 97, 1, 108,
2747
+ 1, 111, 1, 101, 2, -1, 1, 122, 2, -1, 1, 116, 1, 118,
2748
+ 1, 100, 2, 122, 1, -1, 2, 122, 1, 105, 1, 115, 1, -1,
2749
+ 1, 116, 1, 114, 1, 122, 1, 100, 1, 122, 1, 116, 1, 114,
2750
+ 1, -1, 1, 40, 1, 116, 1, 100, 1, 108, 1, 115, 1, 122,
2751
+ 1, -1, 1, 110, 1, 101, 1, 99, 1, 108, 1, 109, 1, 122,
2752
+ 3, 101, 4, -1, 1, 109, 2, 105, 1, 97, 1, -1, 1, 115,
2753
+ 1, -1, 1, 115, 1, 122, 1, -1, 1, 111, 1, 117, 2, 122,
2754
+ 1, -1, 2, 122, 1, 104, 1, 122, 1, 101, 1, 122, 1, 40,
2755
+ 1, 122, 1, 101, 1, 116, 1, 111, 1, 105, 2, 122, 1, -1,
2756
+ 2, 114, 4, -1, 1, 122, 1, -1, 1, 122, 3, -1, 1, 122,
2757
+ 1, 101, 2, 110, 2, -1, 1, 122, 1, 101, 3, -1, 1, 122,
2758
+ 1, 115, 1, 116, 1, -1, 1, 122, 1, -1, 2, 122, 3, -1 )
2759
+ ACCEPT = unpack( 3, -1, 1, 3, 1, 4, 2, -1, 1, 9, 1, 10, 3, -1, 1,
2760
+ 19, 1, 20, 1, 21, 5, -1, 1, 36, 1, 37, 4, -1, 1,
2761
+ 49, 1, 52, 1, 53, 1, -1, 1, 55, 4, -1, 1, 63, 1,
2762
+ 64, 1, 65, 1, 67, 1, 68, 1, 69, 35, -1, 1, 66, 1,
2763
+ 54, 1, 56, 1, 58, 1, 57, 1, 60, 1, 59, 2, -1, 1,
2764
+ 40, 4, -1, 1, 39, 1, 11, 13, -1, 1, 13, 2, -1, 1,
2765
+ 62, 4, -1, 1, 32, 15, -1, 1, 8, 23, -1, 1, 47, 7,
2766
+ -1, 1, 38, 1, 45, 1, -1, 1, 61, 1, 43, 5, -1, 1,
2767
+ 42, 4, -1, 1, 15, 7, -1, 1, 12, 6, -1, 1, 24, 9,
2768
+ -1, 1, 23, 1, 41, 1, 50, 1, 2, 4, -1, 1, 6, 1, -1,
2769
+ 1, 34, 2, -1, 1, 44, 4, -1, 1, 29, 14, -1, 1, 51,
2770
+ 2, -1, 1, 22, 1, 26, 1, 28, 1, 30, 1, -1, 1, 33,
2771
+ 1, -1, 1, 46, 1, 48, 1, 1, 4, -1, 1, 7, 1, 17, 2,
2772
+ -1, 1, 31, 1, 35, 1, 27, 3, -1, 1, 14, 1, -1, 1,
2773
+ 5, 2, -1, 1, 18, 1, 16, 1, 25 )
2774
+ SPECIAL = unpack( 269, -1 )
2775
+ TRANSITION = [
2776
+ unpack( 1, 39, 1, 38, 2, -1, 1, 38, 18, -1, 1, 39, 1, 27, 1, 40,
2777
+ 1, 37, 4, -1, 1, 12, 1, 14, 1, 30, 1, 28, 1, 13, 1, 29,
2778
+ 1, 26, 1, 31, 10, 36, 1, 21, 1, -1, 1, 33, 1, 20, 1, 32,
2779
+ 2, -1, 26, 35, 1, 7, 1, -1, 1, 8, 3, -1, 1, 15, 1, 18, 1,
2780
+ 5, 1, 24, 1, 6, 1, 19, 1, 16, 1, 23, 1, 1, 4, 35, 1, 22,
2781
+ 1, 10, 1, 11, 1, 35, 1, 25, 1, 2, 1, 9, 2, 35, 1, 17, 1,
2782
+ 35, 1, 34, 1, 35, 1, 3, 1, -1, 1, 4 ),
2783
+ unpack( 1, 43, 7, -1, 1, 41, 4, -1, 1, 42 ),
2784
+ unpack( 1, 45, 4, -1, 1, 44 ),
2785
+ unpack( ),
2786
+ unpack( ),
2787
+ unpack( 1, 47, 2, -1, 1, 46 ),
2788
+ unpack( 1, 49, 2, -1, 1, 50, 14, -1, 1, 48 ),
2789
+ unpack( ),
2790
+ unpack( ),
2791
+ unpack( 1, 51, 6, -1, 1, 52, 2, -1, 1, 53 ),
2792
+ unpack( 1, 56, 7, -1, 1, 57, 1, -1, 1, 55, 1, -1, 1, 54 ),
2793
+ unpack( 1, 58 ),
2794
+ unpack( ),
2795
+ unpack( ),
2796
+ unpack( ),
2797
+ unpack( 1, 63, 1, -1, 1, 61, 5, -1, 1, 60, 5, -1, 1, 59, 1, 62 ),
2798
+ unpack( 1, 64 ),
2799
+ unpack( 1, 65 ),
2800
+ unpack( 1, 66 ),
2801
+ unpack( 1, 68, 13, -1, 1, 67 ),
2802
+ unpack( ),
2803
+ unpack( ),
2804
+ unpack( 1, 70, 3, -1, 1, 72, 5, -1, 1, 69, 5, -1, 1, 71 ),
2805
+ unpack( 1, 73 ),
2806
+ unpack( 1, 74 ),
2807
+ unpack( 1, 76, 66, -1, 1, 75 ),
2808
+ unpack( ),
2809
+ unpack( ),
2810
+ unpack( ),
2811
+ unpack( 10, 36, 3, -1, 1, 77 ),
2812
+ unpack( ),
2813
+ unpack( 1, 37, 4, -1, 1, 37, 13, -1, 1, 78 ),
2814
+ unpack( 1, 79 ),
2815
+ unpack( 1, 81 ),
2816
+ unpack( 1, 83 ),
2817
+ unpack( ),
2818
+ unpack( ),
2819
+ unpack( ),
2820
+ unpack( ),
2821
+ unpack( ),
2822
+ unpack( ),
2823
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2824
+ 2, 35, 1, 84, 23, 35 ),
2825
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2826
+ 1, 86, 12, 35, 1, 88, 3, 35, 1, 89, 1, 87, 7, 35 ),
2827
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2828
+ 26, 35 ),
2829
+ unpack( 1, 92 ),
2830
+ unpack( 1, 93 ),
2831
+ unpack( 1, 94, 1, 96, 4, -1, 1, 95 ),
2832
+ unpack( 1, 97 ),
2833
+ unpack( 1, 99, 10, -1, 1, 98 ),
2834
+ unpack( 1, 100 ),
2835
+ unpack( 1, 101 ),
2836
+ unpack( 1, 102 ),
2837
+ unpack( 1, 103 ),
2838
+ unpack( 1, 104 ),
2839
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2840
+ 26, 35 ),
2841
+ unpack( 1, 106 ),
2842
+ unpack( 1, 107 ),
2843
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2844
+ 26, 35 ),
2845
+ unpack( 1, 109 ),
2846
+ unpack( 1, 110 ),
2847
+ unpack( 1, 111 ),
2848
+ unpack( 1, 112 ),
2849
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2850
+ 26, 35 ),
2851
+ unpack( 1, 114 ),
2852
+ unpack( 1, 115 ),
2853
+ unpack( 1, 116 ),
2854
+ unpack( 1, 117 ),
2855
+ unpack( 1, 118 ),
2856
+ unpack( 1, 119 ),
2857
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2858
+ 19, 35, 1, 120, 6, 35 ),
2859
+ unpack( 1, 121 ),
2860
+ unpack( 1, 122 ),
2861
+ unpack( 1, 123 ),
2862
+ unpack( 1, 124 ),
2863
+ unpack( 1, 125 ),
2864
+ unpack( 1, 126 ),
2865
+ unpack( ),
2866
+ unpack( ),
2867
+ unpack( ),
2868
+ unpack( ),
2869
+ unpack( ),
2870
+ unpack( ),
2871
+ unpack( ),
2872
+ unpack( 1, 127 ),
2873
+ unpack( 1, 128 ),
2874
+ unpack( ),
2875
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2876
+ 26, 35 ),
2877
+ unpack( 1, 130 ),
2878
+ unpack( 1, 131, 4, -1, 1, 132 ),
2879
+ unpack( 1, 133 ),
2880
+ unpack( ),
2881
+ unpack( ),
2882
+ unpack( 1, 134 ),
2883
+ unpack( 1, 135 ),
2884
+ unpack( 1, 136 ),
2885
+ unpack( 1, 137 ),
2886
+ unpack( 1, 138, 14, -1, 1, 139 ),
2887
+ unpack( 1, 140 ),
2888
+ unpack( 1, 141 ),
2889
+ unpack( 1, 142 ),
2890
+ unpack( 1, 143 ),
2891
+ unpack( 1, 144 ),
2892
+ unpack( 1, 145 ),
2893
+ unpack( 1, 146 ),
2894
+ unpack( 1, 147 ),
2895
+ unpack( ),
2896
+ unpack( 1, 148 ),
2897
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2898
+ 26, 35 ),
2899
+ unpack( ),
2900
+ unpack( 1, 149 ),
2901
+ unpack( 1, 150 ),
2902
+ unpack( 1, 151 ),
2903
+ unpack( 1, 152 ),
2904
+ unpack( ),
2905
+ unpack( 1, 153 ),
2906
+ unpack( 1, 154 ),
2907
+ unpack( 1, 155 ),
2908
+ unpack( 1, 156 ),
2909
+ unpack( 1, 158, 3, -1, 1, 157, 13, -1, 1, 159 ),
2910
+ unpack( 1, 160 ),
2911
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2912
+ 26, 35 ),
2913
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2914
+ 26, 35 ),
2915
+ unpack( 1, 163 ),
2916
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2917
+ 26, 35 ),
2918
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2919
+ 26, 35 ),
2920
+ unpack( 1, 166 ),
2921
+ unpack( 1, 167 ),
2922
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2923
+ 26, 35 ),
2924
+ unpack( 1, 168 ),
2925
+ unpack( ),
2926
+ unpack( 1, 169 ),
2927
+ unpack( 1, 170 ),
2928
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2929
+ 26, 35 ),
2930
+ unpack( 1, 172 ),
2931
+ unpack( 1, 173 ),
2932
+ unpack( 1, 174 ),
2933
+ unpack( 1, 175 ),
2934
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2935
+ 26, 35 ),
2936
+ unpack( 1, 177 ),
2937
+ unpack( 1, 178 ),
2938
+ unpack( 1, 179 ),
2939
+ unpack( 1, 180 ),
2940
+ unpack( 1, 181 ),
2941
+ unpack( 1, 182 ),
2942
+ unpack( 1, 183 ),
2943
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2944
+ 26, 35 ),
2945
+ unpack( 1, 185 ),
2946
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2947
+ 26, 35 ),
2948
+ unpack( 1, 186 ),
2949
+ unpack( 1, 187 ),
2950
+ unpack( 1, 188 ),
2951
+ unpack( 1, 189 ),
2952
+ unpack( 1, 190 ),
2953
+ unpack( ),
2954
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2955
+ 26, 35 ),
2956
+ unpack( 1, 192 ),
2957
+ unpack( 1, 193 ),
2958
+ unpack( 1, 194 ),
2959
+ unpack( 1, 195 ),
2960
+ unpack( 1, 196 ),
2961
+ unpack( 1, 197 ),
2962
+ unpack( ),
2963
+ unpack( ),
2964
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2965
+ 26, 35 ),
2966
+ unpack( ),
2967
+ unpack( ),
2968
+ unpack( 1, 198 ),
2969
+ unpack( 1, 199 ),
2970
+ unpack( 1, 200 ),
2971
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2972
+ 26, 35 ),
2973
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2974
+ 26, 35 ),
2975
+ unpack( ),
2976
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2977
+ 26, 35 ),
2978
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2979
+ 26, 35 ),
2980
+ unpack( 1, 205 ),
2981
+ unpack( 1, 206 ),
2982
+ unpack( ),
2983
+ unpack( 1, 207 ),
2984
+ unpack( 1, 208 ),
2985
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2986
+ 26, 35 ),
2987
+ unpack( 1, 210 ),
2988
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2989
+ 26, 35 ),
2990
+ unpack( 1, 212 ),
2991
+ unpack( 1, 213 ),
2992
+ unpack( ),
2993
+ unpack( 1, 214 ),
2994
+ unpack( 1, 215 ),
2995
+ unpack( 1, 216 ),
2996
+ unpack( 1, 217 ),
2997
+ unpack( 1, 218 ),
2998
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
2999
+ 26, 35 ),
3000
+ unpack( ),
3001
+ unpack( 1, 220 ),
3002
+ unpack( 1, 221 ),
3003
+ unpack( 1, 222 ),
3004
+ unpack( 1, 223 ),
3005
+ unpack( 1, 224 ),
3006
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3007
+ 26, 35 ),
3008
+ unpack( 1, 225 ),
3009
+ unpack( 1, 226 ),
3010
+ unpack( 1, 227 ),
3011
+ unpack( ),
3012
+ unpack( ),
3013
+ unpack( ),
3014
+ unpack( ),
3015
+ unpack( 1, 228 ),
3016
+ unpack( 1, 229 ),
3017
+ unpack( 1, 230 ),
3018
+ unpack( 1, 231 ),
3019
+ unpack( ),
3020
+ unpack( 1, 232 ),
3021
+ unpack( ),
3022
+ unpack( 1, 233 ),
3023
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3024
+ 26, 35 ),
3025
+ unpack( ),
3026
+ unpack( 1, 235 ),
3027
+ unpack( 1, 236 ),
3028
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3029
+ 26, 35 ),
3030
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3031
+ 26, 35 ),
3032
+ unpack( ),
3033
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3034
+ 26, 35 ),
3035
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3036
+ 26, 35 ),
3037
+ unpack( 1, 241 ),
3038
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3039
+ 26, 35 ),
3040
+ unpack( 1, 243 ),
3041
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3042
+ 26, 35 ),
3043
+ unpack( 1, 245 ),
3044
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3045
+ 26, 35 ),
3046
+ unpack( 1, 247 ),
3047
+ unpack( 1, 248 ),
3048
+ unpack( 1, 249 ),
3049
+ unpack( 1, 250 ),
3050
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3051
+ 26, 35 ),
3052
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3053
+ 26, 35 ),
3054
+ unpack( ),
3055
+ unpack( 1, 253 ),
3056
+ unpack( 1, 254 ),
3057
+ unpack( ),
3058
+ unpack( ),
3059
+ unpack( ),
3060
+ unpack( ),
3061
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3062
+ 26, 35 ),
3063
+ unpack( ),
3064
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3065
+ 26, 35 ),
3066
+ unpack( ),
3067
+ unpack( ),
3068
+ unpack( ),
3069
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3070
+ 26, 35 ),
3071
+ unpack( 1, 258 ),
3072
+ unpack( 1, 259 ),
3073
+ unpack( 1, 260 ),
3074
+ unpack( ),
3075
+ unpack( ),
3076
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3077
+ 26, 35 ),
3078
+ unpack( 1, 262 ),
3079
+ unpack( ),
3080
+ unpack( ),
3081
+ unpack( ),
3082
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3083
+ 26, 35 ),
3084
+ unpack( 1, 264 ),
3085
+ unpack( 1, 265 ),
3086
+ unpack( ),
3087
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3088
+ 26, 35 ),
3089
+ unpack( ),
3090
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3091
+ 26, 35 ),
3092
+ unpack( 1, 35, 2, -1, 10, 35, 7, -1, 26, 35, 4, -1, 1, 35, 1, -1,
3093
+ 26, 35 ),
3094
+ unpack( ),
3095
+ unpack( ),
3096
+ unpack( )
3097
+ ].freeze
3098
+
3099
+ ( 0 ... MIN.length ).zip( MIN, MAX ) do | i, a, z |
3100
+ if a > 0 and z < 0
3101
+ MAX[ i ] %= 0x10000
3102
+ end
3103
+ end
3104
+
3105
+ @decision = 17
3106
+
3107
+
3108
+ def description
3109
+ <<-'__dfa_description__'.strip!
3110
+ 1:1: Tokens : ( T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | 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 | NULL | BOOLEAN | ID | NUMBER | COMMENT | MULTILINE_STRING | NL | WS | STRING );
3111
+ __dfa_description__
3112
+ end
3113
+ end
3114
+
3115
+
3116
+ private
3117
+
3118
+ def initialize_dfas
3119
+ super rescue nil
3120
+ @dfa17 = DFA17.new( self, 17 )
3121
+
3122
+ end
3123
+ end # class Lexer < ANTLR3::Lexer
3124
+
3125
+ at_exit { Lexer.main( ARGV ) } if __FILE__ == $0
3126
+ end
3127
+