Module: CEML::Instructions

Includes:
Lexer, Treetop::Runtime
Included in:
InstructionsParser, Scripts
Defined in:
lib/ceml/lang/tt/instructions.rb

Defined Under Namespace

Modules: AskStmt0, AskStmt1, AssignStmt0, Condition0, Condition1, InstructionStmt0, InstructionStmt1, Later0, PickStmt0, RecordStmt0, ReleaseStmt0, ReplaceStmt0, SeedStmt0, SeedStmt1, SetStmt0, SyncStmt0, TellStmt0

Instance Method Summary collapse

Methods included from Lexer

#_nt_and, #_nt_comment, #_nt_distance, #_nt_duration, #_nt_eol, #_nt_id, #_nt_linebreak, #_nt_mapped_role, #_nt_nl, #_nt_number, #_nt_qualifier, #_nt_range, #_nt_reserved_word, #_nt_role, #_nt_rolemap, #_nt_rolename, #_nt_roles, #_nt_text, #_nt_ws

Instance Method Details

#_nt_ask_stmtObject



569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
# File 'lib/ceml/lang/tt/instructions.rb', line 569

def _nt_ask_stmt
  start_index = index
  if node_cache[:ask_stmt].has_key?(index)
    cached = node_cache[:ask_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('ask', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 3))
    @index += 3
  else
    terminal_parse_failure('ask')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        i5, s5 = index, []
        r6 = _nt_ws
        s5 << r6
        if r6
          if has_terminal?('re', false, index)
            r7 = instantiate_node(SyntaxNode,input, index...(index + 2))
            @index += 2
          else
            terminal_parse_failure('re')
            r7 = nil
          end
          s5 << r7
          if r7
            r8 = _nt_ws
            s5 << r8
            if r8
              r9 = _nt_id
              s5 << r9
            end
          end
        end
        if s5.last
          r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
          r5.extend(AskStmt0)
        else
          @index = i5
          r5 = nil
        end
        if r5
          r4 = r5
        else
          r4 = instantiate_node(SyntaxNode,input, index...index)
        end
        s0 << r4
        if r4
          if has_terminal?(':', false, index)
            r10 = instantiate_node(SyntaxNode,input, index...(index + 1))
            @index += 1
          else
            terminal_parse_failure(':')
            r10 = nil
          end
          s0 << r10
          if r10
            r12 = _nt_ws
            if r12
              r11 = r12
            else
              r11 = instantiate_node(SyntaxNode,input, index...index)
            end
            s0 << r11
            if r11
              r13 = _nt_text
              s0 << r13
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(AskStmt1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:ask_stmt][start_index] = r0

  r0
end

#_nt_assign_stmtObject



473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
# File 'lib/ceml/lang/tt/instructions.rb', line 473

def _nt_assign_stmt
  start_index = index
  if node_cache[:assign_stmt].has_key?(index)
    cached = node_cache[:assign_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('assign', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 6))
    @index += 6
  else
    terminal_parse_failure('assign')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        if has_terminal?(':', false, index)
          r4 = instantiate_node(SyntaxNode,input, index...(index + 1))
          @index += 1
        else
          terminal_parse_failure(':')
          r4 = nil
        end
        s0 << r4
        if r4
          r6 = _nt_ws
          if r6
            r5 = r6
          else
            r5 = instantiate_node(SyntaxNode,input, index...index)
          end
          s0 << r5
          if r5
            r7 = _nt_text
            s0 << r7
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(AssignStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:assign_stmt][start_index] = r0

  r0
end

#_nt_basic_statementObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/ceml/lang/tt/instructions.rb', line 14

def _nt_basic_statement
  start_index = index
  if node_cache[:basic_statement].has_key?(index)
    cached = node_cache[:basic_statement][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0 = index
  r1 = _nt_ask_stmt
  if r1
    r0 = r1
  else
    r2 = _nt_tell_stmt
    if r2
      r0 = r2
    else
      r3 = _nt_assign_stmt
      if r3
        r0 = r3
      else
        r4 = _nt_record_stmt
        if r4
          r0 = r4
        else
          r5 = _nt_set_stmt
          if r5
            r0 = r5
          else
            r6 = _nt_pick_stmt
            if r6
              r0 = r6
            else
              r7 = _nt_seed_stmt
              if r7
                r0 = r7
              else
                r8 = _nt_sync_stmt
                if r8
                  r0 = r8
                else
                  r9 = _nt_replace_stmt
                  if r9
                    r0 = r9
                  else
                    r10 = _nt_release_stmt
                    if r10
                      r0 = r10
                    else
                      @index = i0
                      r0 = nil
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end

  node_cache[:basic_statement][start_index] = r0

  r0
end

#_nt_conditionObject



1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
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
# File 'lib/ceml/lang/tt/instructions.rb', line 1060

def _nt_condition
  start_index = index
  if node_cache[:condition].has_key?(index)
    cached = node_cache[:condition][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  r1 = _nt_ws
  s0 << r1
  if r1
    i2 = index
    if has_terminal?('if', false, index)
      r3 = instantiate_node(SyntaxNode,input, index...(index + 2))
      @index += 2
    else
      terminal_parse_failure('if')
      r3 = nil
    end
    if r3
      r2 = r3
    else
      if has_terminal?('unless', false, index)
        r4 = instantiate_node(SyntaxNode,input, index...(index + 6))
        @index += 6
      else
        terminal_parse_failure('unless')
        r4 = nil
      end
      if r4
        r2 = r4
      else
        @index = i2
        r2 = nil
      end
    end
    s0 << r2
    if r2
      r5 = _nt_ws
      s0 << r5
      if r5
        r6 = _nt_id
        s0 << r6
      end
    end
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(Condition0)
    r0.extend(Condition1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:condition][start_index] = r0

  r0
end

#_nt_instruction_stmtObject



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/ceml/lang/tt/instructions.rb', line 108

def _nt_instruction_stmt
  start_index = index
  if node_cache[:instruction_stmt].has_key?(index)
    cached = node_cache[:instruction_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  r2 = _nt_later
  if r2
    r1 = r2
  else
    r1 = instantiate_node(SyntaxNode,input, index...index)
  end
  s0 << r1
  if r1
    r3 = _nt_basic_statement
    s0 << r3
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(InstructionStmt0)
    r0.extend(InstructionStmt1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:instruction_stmt][start_index] = r0

  r0
end

#_nt_laterObject



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'lib/ceml/lang/tt/instructions.rb', line 159

def _nt_later
  start_index = index
  if node_cache[:later].has_key?(index)
    cached = node_cache[:later][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  r1 = _nt_duration
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      if has_terminal?('later', false, index)
        r3 = instantiate_node(SyntaxNode,input, index...(index + 5))
        @index += 5
      else
        terminal_parse_failure('later')
        r3 = nil
      end
      s0 << r3
      if r3
        if has_terminal?(',', false, index)
          r5 = instantiate_node(SyntaxNode,input, index...(index + 1))
          @index += 1
        else
          terminal_parse_failure(',')
          r5 = nil
        end
        if r5
          r4 = r5
        else
          r4 = instantiate_node(SyntaxNode,input, index...index)
        end
        s0 << r4
        if r4
          r6 = _nt_ws
          s0 << r6
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(Later0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:later][start_index] = r0

  r0
end

#_nt_pick_stmtObject



785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
# File 'lib/ceml/lang/tt/instructions.rb', line 785

def _nt_pick_stmt
  start_index = index
  if node_cache[:pick_stmt].has_key?(index)
    cached = node_cache[:pick_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('pick', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 4))
    @index += 4
  else
    terminal_parse_failure('pick')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r4 = _nt_ws
        s0 << r4
        if r4
          r5 = _nt_id
          s0 << r5
          if r5
            if has_terminal?(':', false, index)
              r6 = instantiate_node(SyntaxNode,input, index...(index + 1))
              @index += 1
            else
              terminal_parse_failure(':')
              r6 = nil
            end
            s0 << r6
            if r6
              r8 = _nt_ws
              if r8
                r7 = r8
              else
                r7 = instantiate_node(SyntaxNode,input, index...index)
              end
              s0 << r7
              if r7
                r9 = _nt_text
                s0 << r9
              end
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(PickStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:pick_stmt][start_index] = r0

  r0
end

#_nt_record_stmtObject



332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/ceml/lang/tt/instructions.rb', line 332

def _nt_record_stmt
  start_index = index
  if node_cache[:record_stmt].has_key?(index)
    cached = node_cache[:record_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('record', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 6))
    @index += 6
  else
    terminal_parse_failure('record')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r4 = _nt_ws
        s0 << r4
        if r4
          r5 = _nt_id
          s0 << r5
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(RecordStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:record_stmt][start_index] = r0

  r0
end

#_nt_release_stmtObject



922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
# File 'lib/ceml/lang/tt/instructions.rb', line 922

def _nt_release_stmt
  start_index = index
  if node_cache[:release_stmt].has_key?(index)
    cached = node_cache[:release_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('release', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 7))
    @index += 7
  else
    terminal_parse_failure('release')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r5 = _nt_condition
        if r5
          r4 = r5
        else
          r4 = instantiate_node(SyntaxNode,input, index...index)
        end
        s0 << r4
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(ReleaseStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:release_stmt][start_index] = r0

  r0
end

#_nt_replace_stmtObject



986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
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
# File 'lib/ceml/lang/tt/instructions.rb', line 986

def _nt_replace_stmt
  start_index = index
  if node_cache[:replace_stmt].has_key?(index)
    cached = node_cache[:replace_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('replace', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 7))
    @index += 7
  else
    terminal_parse_failure('replace')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r5 = _nt_condition
        if r5
          r4 = r5
        else
          r4 = instantiate_node(SyntaxNode,input, index...index)
        end
        s0 << r4
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(ReplaceStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:replace_stmt][start_index] = r0

  r0
end

#_nt_seed_stmtObject



250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'lib/ceml/lang/tt/instructions.rb', line 250

def _nt_seed_stmt
  start_index = index
  if node_cache[:seed_stmt].has_key?(index)
    cached = node_cache[:seed_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('seed', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 4))
    @index += 4
  else
    terminal_parse_failure('seed')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r4 = _nt_ws
        s0 << r4
        if r4
          if has_terminal?('with', false, index)
            r5 = instantiate_node(SyntaxNode,input, index...(index + 4))
            @index += 4
          else
            terminal_parse_failure('with')
            r5 = nil
          end
          s0 << r5
          if r5
            r6 = _nt_ws
            s0 << r6
            if r6
              r7 = _nt_rolemap
              s0 << r7
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(SeedStmt0)
    r0.extend(SeedStmt1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:seed_stmt][start_index] = r0

  r0
end

#_nt_set_stmtObject



691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
# File 'lib/ceml/lang/tt/instructions.rb', line 691

def _nt_set_stmt
  start_index = index
  if node_cache[:set_stmt].has_key?(index)
    cached = node_cache[:set_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('set', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 3))
    @index += 3
  else
    terminal_parse_failure('set')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        r4 = _nt_ws
        s0 << r4
        if r4
          r5 = _nt_id
          s0 << r5
          if r5
            if has_terminal?(':', false, index)
              r6 = instantiate_node(SyntaxNode,input, index...(index + 1))
              @index += 1
            else
              terminal_parse_failure(':')
              r6 = nil
            end
            s0 << r6
            if r6
              r8 = _nt_ws
              if r8
                r7 = r8
              else
                r7 = instantiate_node(SyntaxNode,input, index...index)
              end
              s0 << r7
              if r7
                r9 = _nt_text
                s0 << r9
              end
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(SetStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:set_stmt][start_index] = r0

  r0
end

#_nt_sync_stmtObject



867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
# File 'lib/ceml/lang/tt/instructions.rb', line 867

def _nt_sync_stmt
  start_index = index
  if node_cache[:sync_stmt].has_key?(index)
    cached = node_cache[:sync_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('sync', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 4))
    @index += 4
  else
    terminal_parse_failure('sync')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(SyncStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:sync_stmt][start_index] = r0

  r0
end

#_nt_tell_stmtObject



395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# File 'lib/ceml/lang/tt/instructions.rb', line 395

def _nt_tell_stmt
  start_index = index
  if node_cache[:tell_stmt].has_key?(index)
    cached = node_cache[:tell_stmt][index]
    if cached
      cached = SyntaxNode.new(input, index...(index + 1)) if cached == true
      @index = cached.interval.end
    end
    return cached
  end

  i0, s0 = index, []
  if has_terminal?('tell', false, index)
    r1 = instantiate_node(SyntaxNode,input, index...(index + 4))
    @index += 4
  else
    terminal_parse_failure('tell')
    r1 = nil
  end
  s0 << r1
  if r1
    r2 = _nt_ws
    s0 << r2
    if r2
      r3 = _nt_id
      s0 << r3
      if r3
        if has_terminal?(':', false, index)
          r4 = instantiate_node(SyntaxNode,input, index...(index + 1))
          @index += 1
        else
          terminal_parse_failure(':')
          r4 = nil
        end
        s0 << r4
        if r4
          r6 = _nt_ws
          if r6
            r5 = r6
          else
            r5 = instantiate_node(SyntaxNode,input, index...index)
          end
          s0 << r5
          if r5
            r7 = _nt_text
            s0 << r7
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BasicInstruction,input, i0...index, s0)
    r0.extend(TellStmt0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:tell_stmt][start_index] = r0

  r0
end

#rootObject



8
9
10
# File 'lib/ceml/lang/tt/instructions.rb', line 8

def root
  @root ||= :basic_statement
end