Class: OCCI::Lexer

Inherits:
ANTLR3::Lexer
  • Object
show all
Includes:
TokenData
Defined in:
lib/occi/antlr/OCCILexer.rb

Defined Under Namespace

Classes: DFA4

Constant Summary

RULE_NAMES =
["T__9", "T__10", "T__11", "T__12", "T__13", "T__14",
"T__15", "T__16", "T__17", "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", "LOALPHA",
"UPALPHA", "DIGIT", "WS", "ESC"].freeze
RULE_METHODS =
[:t__9!, :t__10!, :t__11!, :t__12!, :t__13!, :t__14!,
:t__15!, :t__16!, :t__17!, :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!, :loalpha!,
:upalpha!, :digit!, :ws!, :esc!].freeze

Instance Method Summary (collapse)

Constructor Details

- (Lexer) initialize(input = nil, options = {})



110
111
112
113
# File 'lib/occi/antlr/OCCILexer.rb', line 110

def initialize(input=nil, options = {})
  super(input, options)

end

Instance Method Details

- (Object) digit!

lexer rule digit! (DIGIT) (in OCCI.g)



1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
# File 'lib/occi/antlr/OCCILexer.rb', line 1053

def digit!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 38 )

  type = DIGIT
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 162:11: ( '0' .. '9' )
  # at line 162:11: ( '0' .. '9' )
  # at line 162:12: '0' .. '9'
  match_range(0x30, 0x39)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 38 )

end

- (Object) esc!

lexer rule esc! (ESC) (in OCCI.g)



1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
# File 'lib/occi/antlr/OCCILexer.rb', line 1133

def esc!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 40 )

  type = ESC
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 164:11: '\\\\' ( '\"' | '\\'' )
  match(0x5c)
  if @input.peek(1) == 0x22 || @input.peek(1) == 0x27
    @input.consume
  else
    mse = MismatchedSet(nil)
    recover mse
    raise mse
  end


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 40 )

end

- (Object) loalpha!

lexer rule loalpha! (LOALPHA) (in OCCI.g)



959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
# File 'lib/occi/antlr/OCCILexer.rb', line 959

def loalpha!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 36 )

  type = LOALPHA
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 160:11: ( 'a' .. 'z' )+
  # at file 160:11: ( 'a' .. 'z' )+
  match_count_1 = 0
  while true
    alt_1 = 2
    look_1_0 = @input.peek(1)

    if (look_1_0.between?(0x61, 0x7a))
      alt_1 = 1

    end
    case alt_1
      when 1
        # at line 160:12: 'a' .. 'z'
        match_range(0x61, 0x7a)

      else
        match_count_1 > 0 and break
        eee = EarlyExit(1)


        raise eee
    end
    match_count_1 += 1
  end


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 36 )

end

- (Object) t__10!

lexer rule t10! (T10) (in OCCI.g)



143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/occi/antlr/OCCILexer.rb', line 143

def t__10!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 2 )

  type = T__10
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 8:9: ':'
  match(0x3a)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 2 )

end

- (Object) t__11!

lexer rule t11! (T11) (in OCCI.g)



167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/occi/antlr/OCCILexer.rb', line 167

def t__11!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 3 )

  type = T__11
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 9:9: ';'
  match(0x3b)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 3 )

end

- (Object) t__12!

lexer rule t12! (T12) (in OCCI.g)



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/occi/antlr/OCCILexer.rb', line 191

def t__12!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 4 )

  type = T__12
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 10:9: 'scheme'
  match("scheme")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 4 )

end

- (Object) t__13!

lexer rule t13! (T13) (in OCCI.g)



215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/occi/antlr/OCCILexer.rb', line 215

def t__13!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 5 )

  type = T__13
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 11:9: '='
  match(0x3d)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 5 )

end

- (Object) t__14!

lexer rule t14! (T14) (in OCCI.g)



239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# File 'lib/occi/antlr/OCCILexer.rb', line 239

def t__14!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 6 )

  type = T__14
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 12:9: '\"'
  match(0x22)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 6 )

end

- (Object) t__15!

lexer rule t15! (T15) (in OCCI.g)



263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/occi/antlr/OCCILexer.rb', line 263

def t__15!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 7 )

  type = T__15
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 13:9: 'class'
  match("class")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 7 )

end

- (Object) t__16!

lexer rule t16! (T16) (in OCCI.g)



287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# File 'lib/occi/antlr/OCCILexer.rb', line 287

def t__16!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 8 )

  type = T__16
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 14:9: 'title'
  match("title")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 8 )

end

- (Object) t__17!

lexer rule t17! (T17) (in OCCI.g)



311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
# File 'lib/occi/antlr/OCCILexer.rb', line 311

def t__17!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 9 )

  type = T__17
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 15:9: 'rel'
  match("rel")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 9 )

end

- (Object) t__18!

lexer rule t18! (T18) (in OCCI.g)



335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# File 'lib/occi/antlr/OCCILexer.rb', line 335

def t__18!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 10 )

  type = T__18
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 16:9: 'location'
  match("location")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 10 )

end

- (Object) t__19!

lexer rule t19! (T19) (in OCCI.g)



359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/occi/antlr/OCCILexer.rb', line 359

def t__19!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 11 )

  type = T__19
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 17:9: 'attributes'
  match("attributes")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 11 )

end

- (Object) t__20!

lexer rule t20! (T20) (in OCCI.g)



383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
# File 'lib/occi/antlr/OCCILexer.rb', line 383

def t__20!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 12 )

  type = T__20
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 18:9: 'actions'
  match("actions")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 12 )

end

- (Object) t__21!

lexer rule t21! (T21) (in OCCI.g)



407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'lib/occi/antlr/OCCILexer.rb', line 407

def t__21!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 13 )

  type = T__21
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 19:9: 'Link'
  match("Link")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 13 )

end

- (Object) t__22!

lexer rule t22! (T22) (in OCCI.g)



431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'lib/occi/antlr/OCCILexer.rb', line 431

def t__22!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 14 )

  type = T__22
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 20:9: '<'
  match(0x3c)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 14 )

end

- (Object) t__23!

lexer rule t23! (T23) (in OCCI.g)



455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
# File 'lib/occi/antlr/OCCILexer.rb', line 455

def t__23!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 15 )

  type = T__23
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 21:9: '>'
  match(0x3e)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 15 )

end

- (Object) t__24!

lexer rule t24! (T24) (in OCCI.g)



479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
# File 'lib/occi/antlr/OCCILexer.rb', line 479

def t__24!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 16 )

  type = T__24
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 22:9: 'self'
  match("self")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 16 )

end

- (Object) t__25!

lexer rule t25! (T25) (in OCCI.g)



503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
# File 'lib/occi/antlr/OCCILexer.rb', line 503

def t__25!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 17 )

  type = T__25
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 23:9: 'category'
  match("category")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 17 )

end

- (Object) t__26!

lexer rule t26! (T26) (in OCCI.g)



527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
# File 'lib/occi/antlr/OCCILexer.rb', line 527

def t__26!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 18 )

  type = T__26
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 24:9: 'X-OCCI-Attribute'
  match("X-OCCI-Attribute")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 18 )

end

- (Object) t__27!

lexer rule t27! (T27) (in OCCI.g)



551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/occi/antlr/OCCILexer.rb', line 551

def t__27!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 19 )

  type = T__27
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 25:9: 'X-OCCI-Location'
  match("X-OCCI-Location")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 19 )

end

- (Object) t__28!

lexer rule t28! (T28) (in OCCI.g)



575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'lib/occi/antlr/OCCILexer.rb', line 575

def t__28!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 20 )

  type = T__28
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 26:9: '@'
  match(0x40)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 20 )

end

- (Object) t__29!

lexer rule t29! (T29) (in OCCI.g)



599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
# File 'lib/occi/antlr/OCCILexer.rb', line 599

def t__29!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 21 )

  type = T__29
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 27:9: '%'
  match(0x25)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 21 )

end

- (Object) t__30!

lexer rule t30! (T30) (in OCCI.g)



623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'lib/occi/antlr/OCCILexer.rb', line 623

def t__30!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 22 )

  type = T__30
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 28:9: '_'
  match(0x5f)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 22 )

end

- (Object) t__31!

lexer rule t31! (T31) (in OCCI.g)



647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
# File 'lib/occi/antlr/OCCILexer.rb', line 647

def t__31!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 23 )

  type = T__31
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 29:9: '\\\\'
  match(0x5c)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 23 )

end

- (Object) t__32!

lexer rule t32! (T32) (in OCCI.g)



671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
# File 'lib/occi/antlr/OCCILexer.rb', line 671

def t__32!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 24 )

  type = T__32
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 30:9: '+'
  match(0x2b)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 24 )

end

- (Object) t__33!

lexer rule t33! (T33) (in OCCI.g)



695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
# File 'lib/occi/antlr/OCCILexer.rb', line 695

def t__33!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 25 )

  type = T__33
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 31:9: '.'
  match(0x2e)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 25 )

end

- (Object) t__34!

lexer rule t34! (T34) (in OCCI.g)



719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
# File 'lib/occi/antlr/OCCILexer.rb', line 719

def t__34!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 26 )

  type = T__34
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 32:9: '~'
  match(0x7e)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 26 )

end

- (Object) t__35!

lexer rule t35! (T35) (in OCCI.g)



743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
# File 'lib/occi/antlr/OCCILexer.rb', line 743

def t__35!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 27 )

  type = T__35
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 33:9: '#'
  match(0x23)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 27 )

end

- (Object) t__36!

lexer rule t36! (T36) (in OCCI.g)



767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'lib/occi/antlr/OCCILexer.rb', line 767

def t__36!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 28 )

  type = T__36
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 34:9: '?'
  match(0x3f)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 28 )

end

- (Object) t__37!

lexer rule t37! (T37) (in OCCI.g)



791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
# File 'lib/occi/antlr/OCCILexer.rb', line 791

def t__37!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 29 )

  type = T__37
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 35:9: '&'
  match(0x26)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 29 )

end

- (Object) t__38!

lexer rule t38! (T38) (in OCCI.g)



815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
# File 'lib/occi/antlr/OCCILexer.rb', line 815

def t__38!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 30 )

  type = T__38
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 36:9: '/'
  match(0x2f)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 30 )

end

- (Object) t__39!

lexer rule t39! (T39) (in OCCI.g)



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/occi/antlr/OCCILexer.rb', line 839

def t__39!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 31 )

  type = T__39
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 37:9: '-'
  match(0x2d)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 31 )

end

- (Object) t__40!

lexer rule t40! (T40) (in OCCI.g)



863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
# File 'lib/occi/antlr/OCCILexer.rb', line 863

def t__40!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 32 )

  type = T__40
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 38:9: 'action'
  match("action")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 32 )

end

- (Object) t__41!

lexer rule t41! (T41) (in OCCI.g)



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
# File 'lib/occi/antlr/OCCILexer.rb', line 887

def t__41!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 33 )

  type = T__41
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 39:9: 'kind'
  match("kind")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 33 )

end

- (Object) t__42!

lexer rule t42! (T42) (in OCCI.g)



911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/occi/antlr/OCCILexer.rb', line 911

def t__42!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 34 )

  type = T__42
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 40:9: 'mixin'
  match("mixin")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 34 )

end

- (Object) t__43!

lexer rule t43! (T43) (in OCCI.g)



935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
# File 'lib/occi/antlr/OCCILexer.rb', line 935

def t__43!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 35 )

  type = T__43
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 41:9: '\\''
  match(0x27)


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 35 )

end

- (Object) t__9!

  • - - - - - - - - - - lexer rules - - - - - - - - - - - - lexer rule t9! (T9) (in OCCI.g)


119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/occi/antlr/OCCILexer.rb', line 119

def t__9!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 1 )

  type = T__9
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 7:8: 'Category'
  match("Category")


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 1 )

end

- (Object) token!

main rule used to study the input at the current position, and choose the proper lexer rule to call in order to fetch the next token

usually, you don't make direct calls to this method, but instead use the next_token method, which will build and emit the actual next token



1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
# File 'lib/occi/antlr/OCCILexer.rb', line 1169

def token!
  # at line 1:8: ( T__9 | T__10 | T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | 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 | LOALPHA | UPALPHA | DIGIT | WS | ESC )
  alt_4 = 40
  alt_4 = @dfa4.predict(@input)
  case alt_4
    when 1
      # at line 1:10: T__9
      t__9!

    when 2
      # at line 1:15: T__10
      t__10!

    when 3
      # at line 1:21: T__11
      t__11!

    when 4
      # at line 1:27: T__12
      t__12!

    when 5
      # at line 1:33: T__13
      t__13!

    when 6
      # at line 1:39: T__14
      t__14!

    when 7
      # at line 1:45: T__15
      t__15!

    when 8
      # at line 1:51: T__16
      t__16!

    when 9
      # at line 1:57: T__17
      t__17!

    when 10
      # at line 1:63: T__18
      t__18!

    when 11
      # at line 1:69: T__19
      t__19!

    when 12
      # at line 1:75: T__20
      t__20!

    when 13
      # at line 1:81: T__21
      t__21!

    when 14
      # at line 1:87: T__22
      t__22!

    when 15
      # at line 1:93: T__23
      t__23!

    when 16
      # at line 1:99: T__24
      t__24!

    when 17
      # at line 1:105: T__25
      t__25!

    when 18
      # at line 1:111: T__26
      t__26!

    when 19
      # at line 1:117: T__27
      t__27!

    when 20
      # at line 1:123: T__28
      t__28!

    when 21
      # at line 1:129: T__29
      t__29!

    when 22
      # at line 1:135: T__30
      t__30!

    when 23
      # at line 1:141: T__31
      t__31!

    when 24
      # at line 1:147: T__32
      t__32!

    when 25
      # at line 1:153: T__33
      t__33!

    when 26
      # at line 1:159: T__34
      t__34!

    when 27
      # at line 1:165: T__35
      t__35!

    when 28
      # at line 1:171: T__36
      t__36!

    when 29
      # at line 1:177: T__37
      t__37!

    when 30
      # at line 1:183: T__38
      t__38!

    when 31
      # at line 1:189: T__39
      t__39!

    when 32
      # at line 1:195: T__40
      t__40!

    when 33
      # at line 1:201: T__41
      t__41!

    when 34
      # at line 1:207: T__42
      t__42!

    when 35
      # at line 1:213: T__43
      t__43!

    when 36
      # at line 1:219: LOALPHA
      loalpha!

    when 37
      # at line 1:227: UPALPHA
      upalpha!

    when 38
      # at line 1:235: DIGIT
      digit!

    when 39
      # at line 1:241: WS
      ws!

    when 40
      # at line 1:244: ESC
      esc!

  end
end

- (Object) upalpha!

lexer rule upalpha! (UPALPHA) (in OCCI.g)



1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
# File 'lib/occi/antlr/OCCILexer.rb', line 1006

def upalpha!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 37 )

  type = UPALPHA
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 161:11: ( 'A' .. 'Z' )+
  # at file 161:11: ( 'A' .. 'Z' )+
  match_count_2 = 0
  while true
    alt_2 = 2
    look_2_0 = @input.peek(1)

    if (look_2_0.between?(0x41, 0x5a))
      alt_2 = 1

    end
    case alt_2
      when 1
        # at line 161:12: 'A' .. 'Z'
        match_range(0x41, 0x5a)

      else
        match_count_2 > 0 and break
        eee = EarlyExit(2)


        raise eee
    end
    match_count_2 += 1
  end


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 37 )

end

- (Object) ws!

lexer rule ws! (WS) (in OCCI.g)



1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
# File 'lib/occi/antlr/OCCILexer.rb', line 1079

def ws!
  # -> uncomment the next line to manually enable rule tracing
  # trace_in( __method__, 39 )

  type = WS
  channel = ANTLR3::DEFAULT_CHANNEL


  # - - - - main rule block - - - -
  # at line 163:11: ( '\\t' | ' ' | '\\r' | '\\n' | '\\u000C' )+
  # at file 163:11: ( '\\t' | ' ' | '\\r' | '\\n' | '\\u000C' )+
  match_count_3 = 0
  while true
    alt_3 = 2
    look_3_0 = @input.peek(1)

    if (look_3_0.between?(0x9, 0xa) || look_3_0.between?(0xc, 0xd) || look_3_0 == 0x20)
      alt_3 = 1

    end
    case alt_3
      when 1
        # at line
        if @input.peek(1).between?(0x9, 0xa) || @input.peek(1).between?(0xc, 0xd) || @input.peek(1) == 0x20
          @input.consume
        else
          mse = MismatchedSet(nil)
          recover mse
          raise mse
        end


      else
        match_count_3 > 0 and break
        eee = EarlyExit(3)


        raise eee
    end
    match_count_3 += 1
  end


  @state.type = type
  @state.channel = channel

ensure
  # -> uncomment the next line to manually enable rule tracing
  # trace_out( __method__, 39 )

end