Module: Delorean

Includes:
Treetop::Runtime
Included in:
DeloreanParser
Defined in:
lib/delorean/base.rb,
lib/delorean/ruby.rb,
lib/delorean/cache.rb,
lib/delorean/const.rb,
lib/delorean/debug.rb,
lib/delorean/error.rb,
lib/delorean/model.rb,
lib/delorean/nodes.rb,
lib/delorean/engine.rb,
lib/delorean/version.rb,
lib/delorean/delorean.rb,
lib/delorean/functions.rb,
lib/delorean/cache/adapters.rb,
lib/delorean/ruby/whitelists.rb,
lib/delorean/abstract_container.rb,
lib/delorean/cache/adapters/base.rb,
lib/delorean/ruby/whitelists/base.rb,
lib/delorean/ruby/whitelists/empty.rb,
lib/delorean/cache/adapters/no_cache.rb,
lib/delorean/ruby/whitelists/default.rb,
lib/delorean/ruby/whitelists/matchers.rb,
lib/delorean/cache/adapters/ruby_cache.rb,
lib/delorean/ruby/whitelists/matchers/method.rb,
lib/delorean/ruby/whitelists/whitelist_error.rb,
lib/delorean/ruby/whitelists/matchers/arguments.rb

Defined Under Namespace

Modules: BaseModule, BinaryOp0, BlockArgs0, BlockArgs1, BlockFormulas0, Cache, ClassName0, ClassNameImport0, ClassNameImport1, ClassNameImportNested0, ClassNameImportNested1, Decimal0, DotExp0, DotExp1, DotExp2, DotExp3, DotExp4, DotExp5, DotExp6, DotExp7, Dotted0, Elsif0, Expression0, Expression1, Expression2, Expression3, Expression4, FnArgs0, FnArgs1, Formula0, Formula1, Formula2, Formula3, Formula4, Formula5, Formula6, Formula7, Formula8, Functions, GetattrExp0, HashArgs0, HashArgs1, HashArgs2, HashArgs3, HashArgs4, HashArgs5, HashExpr0, HashExpr1, HashExpr2, Identifier0, Identifier1, Integer0, KwArgs0, KwArgs1, KwArgs2, KwArgs3, KwArgs4, KwArgs5, KwArgs6, Line0, Line1, ListExpr0, ListExpr1, ListExpr2, Model, Ruby, SetExpr0, SetExpr1, SetExpr2, String0, String1, String2, UnpackArgs0, UnpackArgs1, Value0, Value1, Value2, Value3 Classes: AbstractContainer, BadCallError, BaseNode, BinOp, BlockExpression, BlockFormula, BlockParameter, BlockParameterDefault, Call, ClassText, DString, Debug, Dotted, Engine, ErrorOp, ExpGetAttr, Expr, FnArgs, Formula, GetAttr, GetattrExp, HashArgs, HashComprehension, HashExpr, IString, Identifier, IfElse, IfElsifElse, Import, ImportError, IndexOp, InvalidGetAttribute, InvalidIndex, KwArgs, Line, ListComprehension, ListExpr, Literal, NodeAsValue, NodeAsValueNested, NodeCall, Parameter, ParameterDefault, ParseError, RecursionError, RedefinedError, SNode, SafeNavigationCall, SafeNavigationGetAttr, Self, SetComprehension, SetExpr, SubNode, SubNodeNested, Sup, UnOp, UndefinedError, UndefinedFunctionError, UndefinedNodeError, UndefinedParamError, UnpackArgs

Constant Summary collapse

NODE_CACHE_ARG =
"_cache#{POST}".to_sym
MOD =
'DELOREAN__'
POST =
'__D'
VERSION =
'2.5.0'

Instance Method Summary collapse

Instance Method Details

#_nt_binary_opObject


3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
# File 'lib/delorean/delorean.rb', line 3329

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

  i0 = index
  if (match_len = has_terminal?('==', false, index))
    r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'==\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    if (match_len = has_terminal?('!=', false, index))
      r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
      @index += match_len
    else
      terminal_parse_failure('\'!=\'')
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      if (match_len = has_terminal?('>=', false, index))
        r3 = instantiate_node(SyntaxNode,input, index...(index + match_len))
        @index += match_len
      else
        terminal_parse_failure('\'>=\'')
        r3 = nil
      end
      if r3
        r3 = SyntaxNode.new(input, (index-1)...index) if r3 == true
        r0 = r3
      else
        if (match_len = has_terminal?('<=', false, index))
          r4 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'<=\'')
          r4 = nil
        end
        if r4
          r4 = SyntaxNode.new(input, (index-1)...index) if r4 == true
          r0 = r4
        else
          if (match_len = has_terminal?('&&', false, index))
            r5 = instantiate_node(SyntaxNode,input, index...(index + match_len))
            @index += match_len
          else
            terminal_parse_failure('\'&&\'')
            r5 = nil
          end
          if r5
            r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
            r0 = r5
          else
            if (match_len = has_terminal?('||', false, index))
              r6 = instantiate_node(SyntaxNode,input, index...(index + match_len))
              @index += match_len
            else
              terminal_parse_failure('\'||\'')
              r6 = nil
            end
            if r6
              r6 = SyntaxNode.new(input, (index-1)...index) if r6 == true
              r0 = r6
            else
              if (match_len = has_terminal?('**', false, index))
                r7 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                @index += match_len
              else
                terminal_parse_failure('\'**\'')
                r7 = nil
              end
              if r7
                r7 = SyntaxNode.new(input, (index-1)...index) if r7 == true
                r0 = r7
              else
                if (match_len = has_terminal?('>', false, index))
                  r8 = true
                  @index += match_len
                else
                  terminal_parse_failure('\'>\'')
                  r8 = nil
                end
                if r8
                  r8 = SyntaxNode.new(input, (index-1)...index) if r8 == true
                  r0 = r8
                else
                  if (match_len = has_terminal?('<', false, index))
                    r9 = true
                    @index += match_len
                  else
                    terminal_parse_failure('\'<\'')
                    r9 = nil
                  end
                  if r9
                    r9 = SyntaxNode.new(input, (index-1)...index) if r9 == true
                    r0 = r9
                  else
                    if (match_len = has_terminal?('+', false, index))
                      r10 = true
                      @index += match_len
                    else
                      terminal_parse_failure('\'+\'')
                      r10 = nil
                    end
                    if r10
                      r10 = SyntaxNode.new(input, (index-1)...index) if r10 == true
                      r0 = r10
                    else
                      if (match_len = has_terminal?('-', false, index))
                        r11 = true
                        @index += match_len
                      else
                        terminal_parse_failure('\'-\'')
                        r11 = nil
                      end
                      if r11
                        r11 = SyntaxNode.new(input, (index-1)...index) if r11 == true
                        r0 = r11
                      else
                        if (match_len = has_terminal?('*', false, index))
                          r12 = true
                          @index += match_len
                        else
                          terminal_parse_failure('\'*\'')
                          r12 = nil
                        end
                        if r12
                          r12 = SyntaxNode.new(input, (index-1)...index) if r12 == true
                          r0 = r12
                        else
                          if (match_len = has_terminal?('/', false, index))
                            r13 = true
                            @index += match_len
                          else
                            terminal_parse_failure('\'/\'')
                            r13 = nil
                          end
                          if r13
                            r13 = SyntaxNode.new(input, (index-1)...index) if r13 == true
                            r0 = r13
                          else
                            if (match_len = has_terminal?('%', false, index))
                              r14 = true
                              @index += match_len
                            else
                              terminal_parse_failure('\'%\'')
                              r14 = nil
                            end
                            if r14
                              r14 = SyntaxNode.new(input, (index-1)...index) if r14 == true
                              r0 = r14
                            else
                              if (match_len = has_terminal?('&', false, index))
                                r15 = true
                                @index += match_len
                              else
                                terminal_parse_failure('\'&\'')
                                r15 = nil
                              end
                              if r15
                                r15 = SyntaxNode.new(input, (index-1)...index) if r15 == true
                                r0 = r15
                              else
                                if (match_len = has_terminal?('^', false, index))
                                  r16 = true
                                  @index += match_len
                                else
                                  terminal_parse_failure('\'^\'')
                                  r16 = nil
                                end
                                if r16
                                  r16 = SyntaxNode.new(input, (index-1)...index) if r16 == true
                                  r0 = r16
                                else
                                  if (match_len = has_terminal?('|', false, index))
                                    r17 = true
                                    @index += match_len
                                  else
                                    terminal_parse_failure('\'|\'')
                                    r17 = nil
                                  end
                                  if r17
                                    r17 = SyntaxNode.new(input, (index-1)...index) if r17 == true
                                    r0 = r17
                                  else
                                    i18, s18 = index, []
                                    if (match_len = has_terminal?('in', false, index))
                                      r19 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                                      @index += match_len
                                    else
                                      terminal_parse_failure('\'in\'')
                                      r19 = nil
                                    end
                                    s18 << r19
                                    if r19
                                      r20 = _nt_sp
                                      s18 << r20
                                    end
                                    if s18.last
                                      r18 = instantiate_node(SyntaxNode,input, i18...index, s18)
                                      r18.extend(BinaryOp0)
                                    else
                                      @index = i18
                                      r18 = nil
                                    end
                                    if r18
                                      r18 = SyntaxNode.new(input, (index-1)...index) if r18 == true
                                      r0 = r18
                                    else
                                      @index = i0
                                      r0 = nil
                                    end
                                  end
                                end
                              end
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end

  node_cache[:binary_op][start_index] = r0

  r0
end

#_nt_block_argsObject


1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
# File 'lib/delorean/delorean.rb', line 1389

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

  i0 = index
  i1, s1 = index, []
  r2 = _nt_sp4
  s1 << r2
  if r2
    r3 = _nt_sp4
    s1 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r4
      if r4
        r6 = _nt_identifier
        s1 << r6
        if r6
          r8 = _nt_sp
          if r8
            r7 = r8
          else
            r7 = instantiate_node(SyntaxNode,input, index...index)
          end
          s1 << r7
          if r7
            if (match_len = has_terminal?('=?', false, index))
              r9 = instantiate_node(SyntaxNode,input, index...(index + match_len))
              @index += match_len
            else
              terminal_parse_failure('\'=?\'')
              r9 = nil
            end
            s1 << r9
            if r9
              r11 = _nt_sp1
              if r11
                r10 = r11
              else
                r10 = instantiate_node(SyntaxNode,input, index...index)
              end
              s1 << r10
              if r10
                r12 = _nt_expression
                s1 << r12
              end
            end
          end
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(BlockParameterDefault,input, i1...index, s1)
    r1.extend(BlockArgs0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i13, s13 = index, []
    r14 = _nt_sp4
    s13 << r14
    if r14
      r15 = _nt_sp4
      s13 << r15
      if r15
        r17 = _nt_sp
        if r17
          r16 = r17
        else
          r16 = instantiate_node(SyntaxNode,input, index...index)
        end
        s13 << r16
        if r16
          r18 = _nt_identifier
          s13 << r18
          if r18
            r20 = _nt_sp
            if r20
              r19 = r20
            else
              r19 = instantiate_node(SyntaxNode,input, index...index)
            end
            s13 << r19
            if r19
              if (match_len = has_terminal?('=?', false, index))
                r21 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                @index += match_len
              else
                terminal_parse_failure('\'=?\'')
                r21 = nil
              end
              s13 << r21
            end
          end
        end
      end
    end
    if s13.last
      r13 = instantiate_node(BlockParameter,input, i13...index, s13)
      r13.extend(BlockArgs1)
    else
      @index = i13
      r13 = nil
    end
    if r13
      r13 = SyntaxNode.new(input, (index-1)...index) if r13 == true
      r0 = r13
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:block_args][start_index] = r0

  r0
end

#_nt_block_formulasObject


1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
# File 'lib/delorean/delorean.rb', line 1542

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

  i0, s0 = index, []
  r1 = _nt_sp4
  s0 << r1
  if r1
    r2 = _nt_sp4
    s0 << r2
    if r2
      r4 = _nt_sp
      if r4
        r3 = r4
      else
        r3 = instantiate_node(SyntaxNode,input, index...index)
      end
      s0 << r3
      if r3
        r5 = _nt_identifier
        s0 << r5
        if r5
          r7 = _nt_sp
          if r7
            r6 = r7
          else
            r6 = instantiate_node(SyntaxNode,input, index...index)
          end
          s0 << r6
          if r6
            if (match_len = has_terminal?('=', false, index))
              r8 = true
              @index += match_len
            else
              terminal_parse_failure('\'=\'')
              r8 = nil
            end
            s0 << r8
            if r8
              r10 = _nt_sp
              if r10
                r9 = r10
              else
                r9 = instantiate_node(SyntaxNode,input, index...index)
              end
              s0 << r9
              if r9
                r11 = _nt_expression
                s0 << r11
              end
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(BlockFormula,input, i0...index, s0)
    r0.extend(BlockFormulas0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:block_formulas][start_index] = r0

  r0
end

#_nt_booleanObject


4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
# File 'lib/delorean/delorean.rb', line 4976

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

  i0 = index
  if (match_len = has_terminal?('true', false, index))
    r1 = instantiate_node(Literal,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'true\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    if (match_len = has_terminal?('false', false, index))
      r2 = instantiate_node(Literal,input, index...(index + match_len))
      @index += match_len
    else
      terminal_parse_failure('\'false\'')
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:boolean][start_index] = r0

  r0
end

#_nt_class_nameObject


523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
# File 'lib/delorean/delorean.rb', line 523

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

  i0, s0 = index, []
  if has_terminal?(@regexps[gr = '\A[A-Z]'] ||= Regexp.new(gr), :regexp, index)
    r1 = true
    @index += 1
  else
    terminal_parse_failure('[A-Z]')
    r1 = nil
  end
  s0 << r1
  if r1
    s2, i2 = [], index
    loop do
      if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
        r3 = true
        @index += 1
      else
        terminal_parse_failure('[a-zA-Z0-9_]')
        r3 = nil
      end
      if r3
        s2 << r3
      else
        break
      end
    end
    r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
    s0 << r2
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(ClassName0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:class_name][start_index] = r0

  r0
end

#_nt_class_name_importObject


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
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# File 'lib/delorean/delorean.rb', line 581

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

  i0, s0 = index, []
  if has_terminal?(@regexps[gr = '\A[A-Z]'] ||= Regexp.new(gr), :regexp, index)
    r1 = true
    @index += 1
  else
    terminal_parse_failure('[A-Z]')
    r1 = nil
  end
  s0 << r1
  if r1
    s2, i2 = [], index
    loop do
      if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
        r3 = true
        @index += 1
      else
        terminal_parse_failure('[a-zA-Z0-9_]')
        r3 = nil
      end
      if r3
        s2 << r3
      else
        break
      end
    end
    r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
    s0 << r2
    if r2
      s4, i4 = [], index
      loop do
        i5, s5 = index, []
        if (match_len = has_terminal?('::', false, index))
          r6 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'::\'')
          r6 = nil
        end
        s5 << r6
        if r6
          if has_terminal?(@regexps[gr = '\A[A-Z]'] ||= Regexp.new(gr), :regexp, index)
            r7 = true
            @index += 1
          else
            terminal_parse_failure('[A-Z]')
            r7 = nil
          end
          s5 << r7
          if r7
            s8, i8 = [], index
            loop do
              if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
                r9 = true
                @index += 1
              else
                terminal_parse_failure('[a-zA-Z0-9_]')
                r9 = nil
              end
              if r9
                s8 << r9
              else
                break
              end
            end
            r8 = instantiate_node(SyntaxNode,input, i8...index, s8)
            s5 << r8
          end
        end
        if s5.last
          r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
          r5.extend(ClassNameImport0)
        else
          @index = i5
          r5 = nil
        end
        if r5
          s4 << r5
        else
          break
        end
      end
      r4 = instantiate_node(SyntaxNode,input, i4...index, s4)
      s0 << r4
    end
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(ClassNameImport1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:class_name_import][start_index] = r0

  r0
end

#_nt_class_name_import_nestedObject


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
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/delorean/delorean.rb', line 696

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

  i0, s0 = index, []
  if has_terminal?(@regexps[gr = '\A[A-Z]'] ||= Regexp.new(gr), :regexp, index)
    r1 = true
    @index += 1
  else
    terminal_parse_failure('[A-Z]')
    r1 = nil
  end
  s0 << r1
  if r1
    s2, i2 = [], index
    loop do
      if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
        r3 = true
        @index += 1
      else
        terminal_parse_failure('[a-zA-Z0-9_]')
        r3 = nil
      end
      if r3
        s2 << r3
      else
        break
      end
    end
    r2 = instantiate_node(SyntaxNode,input, i2...index, s2)
    s0 << r2
    if r2
      s4, i4 = [], index
      loop do
        i5, s5 = index, []
        if (match_len = has_terminal?('::', false, index))
          r6 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'::\'')
          r6 = nil
        end
        s5 << r6
        if r6
          if has_terminal?(@regexps[gr = '\A[A-Z]'] ||= Regexp.new(gr), :regexp, index)
            r7 = true
            @index += 1
          else
            terminal_parse_failure('[A-Z]')
            r7 = nil
          end
          s5 << r7
          if r7
            s8, i8 = [], index
            loop do
              if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
                r9 = true
                @index += 1
              else
                terminal_parse_failure('[a-zA-Z0-9_]')
                r9 = nil
              end
              if r9
                s8 << r9
              else
                break
              end
            end
            r8 = instantiate_node(SyntaxNode,input, i8...index, s8)
            s5 << r8
          end
        end
        if s5.last
          r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
          r5.extend(ClassNameImportNested0)
        else
          @index = i5
          r5 = nil
        end
        if r5
          s4 << r5
        else
          break
        end
      end
      if s4.size < 2
        @index = i4
        r4 = nil
      else
        r4 = instantiate_node(SyntaxNode,input, i4...index, s4)
      end
      s0 << r4
    end
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(ClassNameImportNested1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:class_name_import_nested][start_index] = r0

  r0
end

#_nt_decimalObject


4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
# File 'lib/delorean/delorean.rb', line 4699

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

  i0, s0 = index, []
  r1 = _nt_integer
  s0 << r1
  if r1
    if (match_len = has_terminal?('.', false, index))
      r2 = true
      @index += match_len
    else
      terminal_parse_failure('\'.\'')
      r2 = nil
    end
    s0 << r2
    if r2
      s3, i3 = [], index
      loop do
        if has_terminal?(@regexps[gr = '\A[0-9]'] ||= Regexp.new(gr), :regexp, index)
          r4 = true
          @index += 1
        else
          terminal_parse_failure('[0-9]')
          r4 = nil
        end
        if r4
          s3 << r4
        else
          break
        end
      end
      if s3.empty?
        @index = i3
        r3 = nil
      else
        r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
      end
      s0 << r3
    end
  end
  if s0.last
    r0 = instantiate_node(Literal,input, i0...index, s0)
    r0.extend(Decimal0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:decimal][start_index] = r0

  r0
end

#_nt_dot_expObject


1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
# File 'lib/delorean/delorean.rb', line 1799

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

  i0 = index
  i1, s1 = index, []
  if (match_len = has_terminal?('[', false, index))
    r2 = true
    @index += match_len
  else
    terminal_parse_failure('\'[\'')
    r2 = nil
  end
  s1 << r2
  if r2
    r4 = _nt_sp
    if r4
      r3 = r4
    else
      r3 = instantiate_node(SyntaxNode,input, index...index)
    end
    s1 << r3
    if r3
      r5 = _nt_fn_args
      s1 << r5
      if r5
        r7 = _nt_sp
        if r7
          r6 = r7
        else
          r6 = instantiate_node(SyntaxNode,input, index...index)
        end
        s1 << r6
        if r6
          if (match_len = has_terminal?(']', false, index))
            r8 = true
            @index += match_len
          else
            terminal_parse_failure('\']\'')
            r8 = nil
          end
          s1 << r8
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(IndexOp,input, i1...index, s1)
    r1.extend(DotExp0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i9, s9 = index, []
    if (match_len = has_terminal?('(', false, index))
      r10 = true
      @index += match_len
    else
      terminal_parse_failure('\'(\'')
      r10 = nil
    end
    s9 << r10
    if r10
      r12 = _nt_sp
      if r12
        r11 = r12
      else
        r11 = instantiate_node(SyntaxNode,input, index...index)
      end
      s9 << r11
      if r11
        r14 = _nt_kw_args
        if r14
          r13 = r14
        else
          r13 = instantiate_node(SyntaxNode,input, index...index)
        end
        s9 << r13
        if r13
          r16 = _nt_sp
          if r16
            r15 = r16
          else
            r15 = instantiate_node(SyntaxNode,input, index...index)
          end
          s9 << r15
          if r15
            if (match_len = has_terminal?(')', false, index))
              r17 = true
              @index += match_len
            else
              terminal_parse_failure('\')\'')
              r17 = nil
            end
            s9 << r17
          end
        end
      end
    end
    if s9.last
      r9 = instantiate_node(NodeCall,input, i9...index, s9)
      r9.extend(DotExp1)
    else
      @index = i9
      r9 = nil
    end
    if r9
      r9 = SyntaxNode.new(input, (index-1)...index) if r9 == true
      r0 = r9
    else
      i18, s18 = index, []
      if (match_len = has_terminal?('.', false, index))
        r19 = true
        @index += match_len
      else
        terminal_parse_failure('\'.\'')
        r19 = nil
      end
      s18 << r19
      if r19
        r21 = _nt_sp
        if r21
          r20 = r21
        else
          r20 = instantiate_node(SyntaxNode,input, index...index)
        end
        s18 << r20
        if r20
          r22 = _nt_identifier
          s18 << r22
          if r22
            if (match_len = has_terminal?('(', false, index))
              r23 = true
              @index += match_len
            else
              terminal_parse_failure('\'(\'')
              r23 = nil
            end
            s18 << r23
            if r23
              r25 = _nt_sp
              if r25
                r24 = r25
              else
                r24 = instantiate_node(SyntaxNode,input, index...index)
              end
              s18 << r24
              if r24
                r27 = _nt_fn_args
                if r27
                  r26 = r27
                else
                  r26 = instantiate_node(SyntaxNode,input, index...index)
                end
                s18 << r26
                if r26
                  r29 = _nt_sp
                  if r29
                    r28 = r29
                  else
                    r28 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s18 << r28
                  if r28
                    if (match_len = has_terminal?(')', false, index))
                      r30 = true
                      @index += match_len
                    else
                      terminal_parse_failure('\')\'')
                      r30 = nil
                    end
                    s18 << r30
                    if r30
                      s31, i31 = [], index
                      loop do
                        r32 = _nt_block_args
                        if r32
                          s31 << r32
                        else
                          break
                        end
                      end
                      r31 = instantiate_node(SyntaxNode,input, i31...index, s31)
                      s18 << r31
                      if r31
                        s33, i33 = [], index
                        loop do
                          r34 = _nt_block_formulas
                          if r34
                            s33 << r34
                          else
                            break
                          end
                        end
                        if s33.empty?
                          @index = i33
                          r33 = nil
                        else
                          r33 = instantiate_node(SyntaxNode,input, i33...index, s33)
                        end
                        s18 << r33
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
      if s18.last
        r18 = instantiate_node(BlockExpression,input, i18...index, s18)
        r18.extend(DotExp2)
      else
        @index = i18
        r18 = nil
      end
      if r18
        r18 = SyntaxNode.new(input, (index-1)...index) if r18 == true
        r0 = r18
      else
        i35, s35 = index, []
        if (match_len = has_terminal?('.', false, index))
          r36 = true
          @index += match_len
        else
          terminal_parse_failure('\'.\'')
          r36 = nil
        end
        s35 << r36
        if r36
          r38 = _nt_sp
          if r38
            r37 = r38
          else
            r37 = instantiate_node(SyntaxNode,input, index...index)
          end
          s35 << r37
          if r37
            r39 = _nt_identifier
            s35 << r39
            if r39
              if (match_len = has_terminal?('(', false, index))
                r40 = true
                @index += match_len
              else
                terminal_parse_failure('\'(\'')
                r40 = nil
              end
              s35 << r40
              if r40
                r42 = _nt_sp
                if r42
                  r41 = r42
                else
                  r41 = instantiate_node(SyntaxNode,input, index...index)
                end
                s35 << r41
                if r41
                  r44 = _nt_fn_args
                  if r44
                    r43 = r44
                  else
                    r43 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s35 << r43
                  if r43
                    r46 = _nt_sp
                    if r46
                      r45 = r46
                    else
                      r45 = instantiate_node(SyntaxNode,input, index...index)
                    end
                    s35 << r45
                    if r45
                      if (match_len = has_terminal?(')', false, index))
                        r47 = true
                        @index += match_len
                      else
                        terminal_parse_failure('\')\'')
                        r47 = nil
                      end
                      s35 << r47
                    end
                  end
                end
              end
            end
          end
        end
        if s35.last
          r35 = instantiate_node(Call,input, i35...index, s35)
          r35.extend(DotExp3)
        else
          @index = i35
          r35 = nil
        end
        if r35
          r35 = SyntaxNode.new(input, (index-1)...index) if r35 == true
          r0 = r35
        else
          i48, s48 = index, []
          if (match_len = has_terminal?('&.', false, index))
            r49 = instantiate_node(SyntaxNode,input, index...(index + match_len))
            @index += match_len
          else
            terminal_parse_failure('\'&.\'')
            r49 = nil
          end
          s48 << r49
          if r49
            r51 = _nt_sp
            if r51
              r50 = r51
            else
              r50 = instantiate_node(SyntaxNode,input, index...index)
            end
            s48 << r50
            if r50
              r52 = _nt_identifier
              s48 << r52
              if r52
                if (match_len = has_terminal?('(', false, index))
                  r53 = true
                  @index += match_len
                else
                  terminal_parse_failure('\'(\'')
                  r53 = nil
                end
                s48 << r53
                if r53
                  r55 = _nt_sp
                  if r55
                    r54 = r55
                  else
                    r54 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s48 << r54
                  if r54
                    r57 = _nt_fn_args
                    if r57
                      r56 = r57
                    else
                      r56 = instantiate_node(SyntaxNode,input, index...index)
                    end
                    s48 << r56
                    if r56
                      r59 = _nt_sp
                      if r59
                        r58 = r59
                      else
                        r58 = instantiate_node(SyntaxNode,input, index...index)
                      end
                      s48 << r58
                      if r58
                        if (match_len = has_terminal?(')', false, index))
                          r60 = true
                          @index += match_len
                        else
                          terminal_parse_failure('\')\'')
                          r60 = nil
                        end
                        s48 << r60
                      end
                    end
                  end
                end
              end
            end
          end
          if s48.last
            r48 = instantiate_node(SafeNavigationCall,input, i48...index, s48)
            r48.extend(DotExp4)
          else
            @index = i48
            r48 = nil
          end
          if r48
            r48 = SyntaxNode.new(input, (index-1)...index) if r48 == true
            r0 = r48
          else
            i61, s61 = index, []
            if (match_len = has_terminal?('.', false, index))
              r62 = true
              @index += match_len
            else
              terminal_parse_failure('\'.\'')
              r62 = nil
            end
            s61 << r62
            if r62
              r64 = _nt_sp
              if r64
                r63 = r64
              else
                r63 = instantiate_node(SyntaxNode,input, index...index)
              end
              s61 << r63
              if r63
                r65 = _nt_identifier
                s61 << r65
                if r65
                  s66, i66 = [], index
                  loop do
                    r67 = _nt_block_args
                    if r67
                      s66 << r67
                    else
                      break
                    end
                  end
                  r66 = instantiate_node(SyntaxNode,input, i66...index, s66)
                  s61 << r66
                  if r66
                    s68, i68 = [], index
                    loop do
                      r69 = _nt_block_formulas
                      if r69
                        s68 << r69
                      else
                        break
                      end
                    end
                    if s68.empty?
                      @index = i68
                      r68 = nil
                    else
                      r68 = instantiate_node(SyntaxNode,input, i68...index, s68)
                    end
                    s61 << r68
                  end
                end
              end
            end
            if s61.last
              r61 = instantiate_node(BlockExpression,input, i61...index, s61)
              r61.extend(DotExp5)
            else
              @index = i61
              r61 = nil
            end
            if r61
              r61 = SyntaxNode.new(input, (index-1)...index) if r61 == true
              r0 = r61
            else
              i70, s70 = index, []
              if (match_len = has_terminal?('.', false, index))
                r71 = true
                @index += match_len
              else
                terminal_parse_failure('\'.\'')
                r71 = nil
              end
              s70 << r71
              if r71
                r73 = _nt_sp
                if r73
                  r72 = r73
                else
                  r72 = instantiate_node(SyntaxNode,input, index...index)
                end
                s70 << r72
                if r72
                  i74 = index
                  r75 = _nt_identifier
                  if r75
                    r75 = SyntaxNode.new(input, (index-1)...index) if r75 == true
                    r74 = r75
                  else
                    r76 = _nt_integer
                    if r76
                      r76 = SyntaxNode.new(input, (index-1)...index) if r76 == true
                      r74 = r76
                    else
                      @index = i74
                      r74 = nil
                    end
                  end
                  s70 << r74
                end
              end
              if s70.last
                r70 = instantiate_node(GetAttr,input, i70...index, s70)
                r70.extend(DotExp6)
              else
                @index = i70
                r70 = nil
              end
              if r70
                r70 = SyntaxNode.new(input, (index-1)...index) if r70 == true
                r0 = r70
              else
                i77, s77 = index, []
                if (match_len = has_terminal?('&.', false, index))
                  r78 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                  @index += match_len
                else
                  terminal_parse_failure('\'&.\'')
                  r78 = nil
                end
                s77 << r78
                if r78
                  r80 = _nt_sp
                  if r80
                    r79 = r80
                  else
                    r79 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s77 << r79
                  if r79
                    i81 = index
                    r82 = _nt_identifier
                    if r82
                      r82 = SyntaxNode.new(input, (index-1)...index) if r82 == true
                      r81 = r82
                    else
                      r83 = _nt_integer
                      if r83
                        r83 = SyntaxNode.new(input, (index-1)...index) if r83 == true
                        r81 = r83
                      else
                        @index = i81
                        r81 = nil
                      end
                    end
                    s77 << r81
                  end
                end
                if s77.last
                  r77 = instantiate_node(SafeNavigationGetAttr,input, i77...index, s77)
                  r77.extend(DotExp7)
                else
                  @index = i77
                  r77 = nil
                end
                if r77
                  r77 = SyntaxNode.new(input, (index-1)...index) if r77 == true
                  r0 = r77
                else
                  @index = i0
                  r0 = nil
                end
              end
            end
          end
        end
      end
    end
  end

  node_cache[:dot_exp][start_index] = r0

  r0
end

#_nt_dottedObject


1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
# File 'lib/delorean/delorean.rb', line 1683

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

  i0, s0 = index, []
  r1 = _nt_dot_exp
  s0 << r1
  if r1
    r3 = _nt_dotted
    if r3
      r2 = r3
    else
      r2 = instantiate_node(SyntaxNode,input, index...index)
    end
    s0 << r2
  end
  if s0.last
    r0 = instantiate_node(Dotted,input, i0...index, s0)
    r0.extend(Dotted0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:dotted][start_index] = r0

  r0
end

#_nt_elsifObject


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
856
857
858
859
860
861
862
863
864
865
866
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/delorean/delorean.rb', line 821

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

  i0, s0 = index, []
  if (match_len = has_terminal?('elsif', false, index))
    r1 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'elsif\'')
    r1 = nil
  end
  s0 << r1
  if r1
    r3 = _nt_sp
    if r3
      r2 = r3
    else
      r2 = instantiate_node(SyntaxNode,input, index...index)
    end
    s0 << r2
    if r2
      r4 = _nt_expression
      s0 << r4
      if r4
        r6 = _nt_sp
        if r6
          r5 = r6
        else
          r5 = instantiate_node(SyntaxNode,input, index...index)
        end
        s0 << r5
        if r5
          if (match_len = has_terminal?('then', false, index))
            r7 = instantiate_node(SyntaxNode,input, index...(index + match_len))
            @index += match_len
          else
            terminal_parse_failure('\'then\'')
            r7 = nil
          end
          s0 << r7
          if r7
            r9 = _nt_sp
            if r9
              r8 = r9
            else
              r8 = instantiate_node(SyntaxNode,input, index...index)
            end
            s0 << r8
            if r8
              r10 = _nt_expression
              s0 << r10
              if r10
                r12 = _nt_sp
                if r12
                  r11 = r12
                else
                  r11 = instantiate_node(SyntaxNode,input, index...index)
                end
                s0 << r11
              end
            end
          end
        end
      end
    end
  end
  if s0.last
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
    r0.extend(Elsif0)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:elsif][start_index] = r0

  r0
end

#_nt_expressionObject


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
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
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
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
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
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
1161
1162
1163
1164
1165
1166
1167
1168
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
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
# File 'lib/delorean/delorean.rb', line 971

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

  i0 = index
  i1, s1 = index, []
  if (match_len = has_terminal?('ERR(', false, index))
    r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'ERR(\'')
    r2 = nil
  end
  s1 << r2
  if r2
    r4 = _nt_sp
    if r4
      r3 = r4
    else
      r3 = instantiate_node(SyntaxNode,input, index...index)
    end
    s1 << r3
    if r3
      r6 = _nt_fn_args
      if r6
        r5 = r6
      else
        r5 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r5
      if r5
        r8 = _nt_sp
        if r8
          r7 = r8
        else
          r7 = instantiate_node(SyntaxNode,input, index...index)
        end
        s1 << r7
        if r7
          if (match_len = has_terminal?(')', false, index))
            r9 = true
            @index += match_len
          else
            terminal_parse_failure('\')\'')
            r9 = nil
          end
          s1 << r9
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(ErrorOp,input, i1...index, s1)
    r1.extend(Expression0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i10, s10 = index, []
    r11 = _nt_unary_op
    s10 << r11
    if r11
      r13 = _nt_sp
      if r13
        r12 = r13
      else
        r12 = instantiate_node(SyntaxNode,input, index...index)
      end
      s10 << r12
      if r12
        r14 = _nt_expression
        s10 << r14
      end
    end
    if s10.last
      r10 = instantiate_node(UnOp,input, i10...index, s10)
      r10.extend(Expression1)
    else
      @index = i10
      r10 = nil
    end
    if r10
      r10 = SyntaxNode.new(input, (index-1)...index) if r10 == true
      r0 = r10
    else
      i15, s15 = index, []
      if (match_len = has_terminal?('if', false, index))
        r16 = instantiate_node(SyntaxNode,input, index...(index + match_len))
        @index += match_len
      else
        terminal_parse_failure('\'if\'')
        r16 = nil
      end
      s15 << r16
      if r16
        r18 = _nt_sp
        if r18
          r17 = r18
        else
          r17 = instantiate_node(SyntaxNode,input, index...index)
        end
        s15 << r17
        if r17
          r19 = _nt_expression
          s15 << r19
          if r19
            r21 = _nt_sp
            if r21
              r20 = r21
            else
              r20 = instantiate_node(SyntaxNode,input, index...index)
            end
            s15 << r20
            if r20
              if (match_len = has_terminal?('then', false, index))
                r22 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                @index += match_len
              else
                terminal_parse_failure('\'then\'')
                r22 = nil
              end
              s15 << r22
              if r22
                r24 = _nt_sp
                if r24
                  r23 = r24
                else
                  r23 = instantiate_node(SyntaxNode,input, index...index)
                end
                s15 << r23
                if r23
                  r25 = _nt_expression
                  s15 << r25
                  if r25
                    r27 = _nt_sp
                    if r27
                      r26 = r27
                    else
                      r26 = instantiate_node(SyntaxNode,input, index...index)
                    end
                    s15 << r26
                    if r26
                      if (match_len = has_terminal?('else', false, index))
                        r28 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                        @index += match_len
                      else
                        terminal_parse_failure('\'else\'')
                        r28 = nil
                      end
                      s15 << r28
                      if r28
                        r30 = _nt_sp
                        if r30
                          r29 = r30
                        else
                          r29 = instantiate_node(SyntaxNode,input, index...index)
                        end
                        s15 << r29
                        if r29
                          r31 = _nt_expression
                          s15 << r31
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
      if s15.last
        r15 = instantiate_node(IfElse,input, i15...index, s15)
        r15.extend(Expression2)
      else
        @index = i15
        r15 = nil
      end
      if r15
        r15 = SyntaxNode.new(input, (index-1)...index) if r15 == true
        r0 = r15
      else
        i32, s32 = index, []
        if (match_len = has_terminal?('if', false, index))
          r33 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'if\'')
          r33 = nil
        end
        s32 << r33
        if r33
          r35 = _nt_sp
          if r35
            r34 = r35
          else
            r34 = instantiate_node(SyntaxNode,input, index...index)
          end
          s32 << r34
          if r34
            r36 = _nt_expression
            s32 << r36
            if r36
              r38 = _nt_sp
              if r38
                r37 = r38
              else
                r37 = instantiate_node(SyntaxNode,input, index...index)
              end
              s32 << r37
              if r37
                if (match_len = has_terminal?('then', false, index))
                  r39 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                  @index += match_len
                else
                  terminal_parse_failure('\'then\'')
                  r39 = nil
                end
                s32 << r39
                if r39
                  r41 = _nt_sp
                  if r41
                    r40 = r41
                  else
                    r40 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s32 << r40
                  if r40
                    r42 = _nt_expression
                    s32 << r42
                    if r42
                      r44 = _nt_sp
                      if r44
                        r43 = r44
                      else
                        r43 = instantiate_node(SyntaxNode,input, index...index)
                      end
                      s32 << r43
                      if r43
                        r46 = _nt_sp
                        if r46
                          r45 = r46
                        else
                          r45 = instantiate_node(SyntaxNode,input, index...index)
                        end
                        s32 << r45
                        if r45
                          s47, i47 = [], index
                          loop do
                            r48 = _nt_elsif
                            if r48
                              s47 << r48
                            else
                              break
                            end
                          end
                          if s47.empty?
                            @index = i47
                            r47 = nil
                          else
                            r47 = instantiate_node(SyntaxNode,input, i47...index, s47)
                          end
                          s32 << r47
                          if r47
                            r50 = _nt_sp
                            if r50
                              r49 = r50
                            else
                              r49 = instantiate_node(SyntaxNode,input, index...index)
                            end
                            s32 << r49
                            if r49
                              if (match_len = has_terminal?('else', false, index))
                                r51 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                                @index += match_len
                              else
                                terminal_parse_failure('\'else\'')
                                r51 = nil
                              end
                              s32 << r51
                              if r51
                                r53 = _nt_sp
                                if r53
                                  r52 = r53
                                else
                                  r52 = instantiate_node(SyntaxNode,input, index...index)
                                end
                                s32 << r52
                                if r52
                                  r54 = _nt_expression
                                  s32 << r54
                                end
                              end
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
        if s32.last
          r32 = instantiate_node(IfElsifElse,input, i32...index, s32)
          r32.extend(Expression3)
        else
          @index = i32
          r32 = nil
        end
        if r32
          r32 = SyntaxNode.new(input, (index-1)...index) if r32 == true
          r0 = r32
        else
          i55, s55 = index, []
          r56 = _nt_getattr_exp
          s55 << r56
          if r56
            r58 = _nt_sp
            if r58
              r57 = r58
            else
              r57 = instantiate_node(SyntaxNode,input, index...index)
            end
            s55 << r57
            if r57
              r59 = _nt_binary_op
              s55 << r59
              if r59
                r61 = _nt_sp
                if r61
                  r60 = r61
                else
                  r60 = instantiate_node(SyntaxNode,input, index...index)
                end
                s55 << r60
                if r60
                  r62 = _nt_expression
                  s55 << r62
                end
              end
            end
          end
          if s55.last
            r55 = instantiate_node(BinOp,input, i55...index, s55)
            r55.extend(Expression4)
          else
            @index = i55
            r55 = nil
          end
          if r55
            r55 = SyntaxNode.new(input, (index-1)...index) if r55 == true
            r0 = r55
          else
            r63 = _nt_getattr_exp
            if r63
              r63 = SyntaxNode.new(input, (index-1)...index) if r63 == true
              r0 = r63
            else
              @index = i0
              r0 = nil
            end
          end
        end
      end
    end
  end

  node_cache[:expression][start_index] = r0

  r0
end

#_nt_fn_argsObject


3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
# File 'lib/delorean/delorean.rb', line 3865

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

  i0, s0 = index, []
  r1 = _nt_expression
  s0 << r1
  if r1
    i3, s3 = index, []
    r5 = _nt_sp
    if r5
      r4 = r5
    else
      r4 = instantiate_node(SyntaxNode,input, index...index)
    end
    s3 << r4
    if r4
      if (match_len = has_terminal?(',', false, index))
        r6 = true
        @index += match_len
      else
        terminal_parse_failure('\',\'')
        r6 = nil
      end
      s3 << r6
      if r6
        r8 = _nt_sp
        if r8
          r7 = r8
        else
          r7 = instantiate_node(SyntaxNode,input, index...index)
        end
        s3 << r7
        if r7
          r10 = _nt_fn_args
          if r10
            r9 = r10
          else
            r9 = instantiate_node(SyntaxNode,input, index...index)
          end
          s3 << r9
        end
      end
    end
    if s3.last
      r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
      r3.extend(FnArgs0)
    else
      @index = i3
      r3 = nil
    end
    if r3
      r2 = r3
    else
      r2 = instantiate_node(SyntaxNode,input, index...index)
    end
    s0 << r2
  end
  if s0.last
    r0 = instantiate_node(FnArgs,input, i0...index, s0)
    r0.extend(FnArgs1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:fn_args][start_index] = r0

  r0
end

#_nt_formulaObject


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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
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
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
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
# File 'lib/delorean/delorean.rb', line 193

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

  i0 = index
  i1, s1 = index, []
  r2 = _nt_sp4
  s1 << r2
  if r2
    r3 = _nt_identifier
    s1 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r4
      if r4
        if (match_len = has_terminal?('=?', false, index))
          r6 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'=?\'')
          r6 = nil
        end
        s1 << r6
        if r6
          r8 = _nt_sp
          if r8
            r7 = r8
          else
            r7 = instantiate_node(SyntaxNode,input, index...index)
          end
          s1 << r7
          if r7
            r9 = _nt_expression
            s1 << r9
          end
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(ParameterDefault,input, i1...index, s1)
    r1.extend(Formula0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i10, s10 = index, []
    r11 = _nt_sp4
    s10 << r11
    if r11
      r12 = _nt_identifier
      s10 << r12
      if r12
        r14 = _nt_sp
        if r14
          r13 = r14
        else
          r13 = instantiate_node(SyntaxNode,input, index...index)
        end
        s10 << r13
        if r13
          if (match_len = has_terminal?('=?', false, index))
            r15 = instantiate_node(SyntaxNode,input, index...(index + match_len))
            @index += match_len
          else
            terminal_parse_failure('\'=?\'')
            r15 = nil
          end
          s10 << r15
        end
      end
    end
    if s10.last
      r10 = instantiate_node(Parameter,input, i10...index, s10)
      r10.extend(Formula1)
    else
      @index = i10
      r10 = nil
    end
    if r10
      r10 = SyntaxNode.new(input, (index-1)...index) if r10 == true
      r0 = r10
    else
      i16, s16 = index, []
      r17 = _nt_sp4
      s16 << r17
      if r17
        r18 = _nt_identifier
        s16 << r18
        if r18
          r20 = _nt_sp
          if r20
            r19 = r20
          else
            r19 = instantiate_node(SyntaxNode,input, index...index)
          end
          s16 << r19
          if r19
            if (match_len = has_terminal?('=', false, index))
              r21 = true
              @index += match_len
            else
              terminal_parse_failure('\'=\'')
              r21 = nil
            end
            s16 << r21
            if r21
              r23 = _nt_sp
              if r23
                r22 = r23
              else
                r22 = instantiate_node(SyntaxNode,input, index...index)
              end
              s16 << r22
              if r22
                r24 = _nt_expression
                s16 << r24
              end
            end
          end
        end
      end
      if s16.last
        r16 = instantiate_node(Formula,input, i16...index, s16)
        r16.extend(Formula2)
      else
        @index = i16
        r16 = nil
      end
      if r16
        r16 = SyntaxNode.new(input, (index-1)...index) if r16 == true
        r0 = r16
      else
        i25, s25 = index, []
        r26 = _nt_class_name
        s25 << r26
        if r26
          if (match_len = has_terminal?(':', false, index))
            r27 = true
            @index += match_len
          else
            terminal_parse_failure('\':\'')
            r27 = nil
          end
          s25 << r27
          if r27
            r29 = _nt_sp
            if r29
              r28 = r29
            else
              r28 = instantiate_node(SyntaxNode,input, index...index)
            end
            s25 << r28
            if r28
              i30, s30 = index, []
              r31 = _nt_class_name_import_nested
              s30 << r31
              if s30.last
                r30 = instantiate_node(SyntaxNode,input, i30...index, s30)
                r30.extend(Formula3)
              else
                @index = i30
                r30 = nil
              end
              s25 << r30
            end
          end
        end
        if s25.last
          r25 = instantiate_node(SubNodeNested,input, i25...index, s25)
          r25.extend(Formula4)
        else
          @index = i25
          r25 = nil
        end
        if r25
          r25 = SyntaxNode.new(input, (index-1)...index) if r25 == true
          r0 = r25
        else
          i32, s32 = index, []
          r33 = _nt_class_name
          s32 << r33
          if r33
            if (match_len = has_terminal?(':', false, index))
              r34 = true
              @index += match_len
            else
              terminal_parse_failure('\':\'')
              r34 = nil
            end
            s32 << r34
            if r34
              r36 = _nt_sp
              if r36
                r35 = r36
              else
                r35 = instantiate_node(SyntaxNode,input, index...index)
              end
              s32 << r35
              if r35
                i38, s38 = index, []
                r39 = _nt_class_name
                s38 << r39
                if r39
                  if (match_len = has_terminal?('::', false, index))
                    r40 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                    @index += match_len
                  else
                    terminal_parse_failure('\'::\'')
                    r40 = nil
                  end
                  s38 << r40
                end
                if s38.last
                  r38 = instantiate_node(SyntaxNode,input, i38...index, s38)
                  r38.extend(Formula5)
                else
                  @index = i38
                  r38 = nil
                end
                if r38
                  r37 = r38
                else
                  r37 = instantiate_node(SyntaxNode,input, index...index)
                end
                s32 << r37
                if r37
                  r41 = _nt_class_name
                  s32 << r41
                end
              end
            end
          end
          if s32.last
            r32 = instantiate_node(SubNode,input, i32...index, s32)
            r32.extend(Formula6)
          else
            @index = i32
            r32 = nil
          end
          if r32
            r32 = SyntaxNode.new(input, (index-1)...index) if r32 == true
            r0 = r32
          else
            i42, s42 = index, []
            r43 = _nt_class_name
            s42 << r43
            if r43
              if (match_len = has_terminal?(':', false, index))
                r44 = true
                @index += match_len
              else
                terminal_parse_failure('\':\'')
                r44 = nil
              end
              s42 << r44
            end
            if s42.last
              r42 = instantiate_node(BaseNode,input, i42...index, s42)
              r42.extend(Formula7)
            else
              @index = i42
              r42 = nil
            end
            if r42
              r42 = SyntaxNode.new(input, (index-1)...index) if r42 == true
              r0 = r42
            else
              i45, s45 = index, []
              if (match_len = has_terminal?('import', false, index))
                r46 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                @index += match_len
              else
                terminal_parse_failure('\'import\'')
                r46 = nil
              end
              s45 << r46
              if r46
                r47 = _nt_sp
                s45 << r47
                if r47
                  r48 = _nt_class_name_import
                  s45 << r48
                end
              end
              if s45.last
                r45 = instantiate_node(Import,input, i45...index, s45)
                r45.extend(Formula8)
              else
                @index = i45
                r45 = nil
              end
              if r45
                r45 = SyntaxNode.new(input, (index-1)...index) if r45 == true
                r0 = r45
              else
                @index = i0
                r0 = nil
              end
            end
          end
        end
      end
    end
  end

  node_cache[:formula][start_index] = r0

  r0
end

#_nt_getattr_expObject


1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
# File 'lib/delorean/delorean.rb', line 1628

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

  i0 = index
  i1, s1 = index, []
  r2 = _nt_value
  s1 << r2
  if r2
    r3 = _nt_dotted
    s1 << r3
  end
  if s1.last
    r1 = instantiate_node(GetattrExp,input, i1...index, s1)
    r1.extend(GetattrExp0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    r4 = _nt_value
    if r4
      r4 = SyntaxNode.new(input, (index-1)...index) if r4 == true
      r0 = r4
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:getattr_exp][start_index] = r0

  r0
end

#_nt_hash_argsObject


4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
# File 'lib/delorean/delorean.rb', line 4013

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

  i0 = index
  i1, s1 = index, []
  if (match_len = has_terminal?('**', false, index))
    r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'**\'')
    r2 = nil
  end
  s1 << r2
  if r2
    r3 = _nt_expression
    s1 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r4
      if r4
        i7, s7 = index, []
        if (match_len = has_terminal?('if', false, index))
          r8 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'if\'')
          r8 = nil
        end
        s7 << r8
        if r8
          r9 = _nt_sp
          s7 << r9
          if r9
            r10 = _nt_expression
            s7 << r10
            if r10
              r12 = _nt_sp
              if r12
                r11 = r12
              else
                r11 = instantiate_node(SyntaxNode,input, index...index)
              end
              s7 << r11
            end
          end
        end
        if s7.last
          r7 = instantiate_node(SyntaxNode,input, i7...index, s7)
          r7.extend(HashArgs0)
        else
          @index = i7
          r7 = nil
        end
        if r7
          r6 = r7
        else
          r6 = instantiate_node(SyntaxNode,input, index...index)
        end
        s1 << r6
        if r6
          i14, s14 = index, []
          r16 = _nt_sp
          if r16
            r15 = r16
          else
            r15 = instantiate_node(SyntaxNode,input, index...index)
          end
          s14 << r15
          if r15
            if (match_len = has_terminal?(',', false, index))
              r17 = true
              @index += match_len
            else
              terminal_parse_failure('\',\'')
              r17 = nil
            end
            s14 << r17
            if r17
              r19 = _nt_sp
              if r19
                r18 = r19
              else
                r18 = instantiate_node(SyntaxNode,input, index...index)
              end
              s14 << r18
              if r18
                r21 = _nt_hash_args
                if r21
                  r20 = r21
                else
                  r20 = instantiate_node(SyntaxNode,input, index...index)
                end
                s14 << r20
              end
            end
          end
          if s14.last
            r14 = instantiate_node(SyntaxNode,input, i14...index, s14)
            r14.extend(HashArgs1)
          else
            @index = i14
            r14 = nil
          end
          if r14
            r13 = r14
          else
            r13 = instantiate_node(SyntaxNode,input, index...index)
          end
          s1 << r13
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(HashArgs,input, i1...index, s1)
    r1.extend(HashArgs2)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i22, s22 = index, []
    r23 = _nt_expression
    s22 << r23
    if r23
      r25 = _nt_sp
      if r25
        r24 = r25
      else
        r24 = instantiate_node(SyntaxNode,input, index...index)
      end
      s22 << r24
      if r24
        if (match_len = has_terminal?(':', false, index))
          r26 = true
          @index += match_len
        else
          terminal_parse_failure('\':\'')
          r26 = nil
        end
        s22 << r26
        if r26
          r28 = _nt_sp
          if r28
            r27 = r28
          else
            r27 = instantiate_node(SyntaxNode,input, index...index)
          end
          s22 << r27
          if r27
            r29 = _nt_expression
            s22 << r29
            if r29
              r31 = _nt_sp
              if r31
                r30 = r31
              else
                r30 = instantiate_node(SyntaxNode,input, index...index)
              end
              s22 << r30
              if r30
                i33, s33 = index, []
                if (match_len = has_terminal?('if', false, index))
                  r34 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                  @index += match_len
                else
                  terminal_parse_failure('\'if\'')
                  r34 = nil
                end
                s33 << r34
                if r34
                  r35 = _nt_sp
                  s33 << r35
                  if r35
                    r36 = _nt_expression
                    s33 << r36
                    if r36
                      r38 = _nt_sp
                      if r38
                        r37 = r38
                      else
                        r37 = instantiate_node(SyntaxNode,input, index...index)
                      end
                      s33 << r37
                    end
                  end
                end
                if s33.last
                  r33 = instantiate_node(SyntaxNode,input, i33...index, s33)
                  r33.extend(HashArgs3)
                else
                  @index = i33
                  r33 = nil
                end
                if r33
                  r32 = r33
                else
                  r32 = instantiate_node(SyntaxNode,input, index...index)
                end
                s22 << r32
                if r32
                  i40, s40 = index, []
                  r42 = _nt_sp
                  if r42
                    r41 = r42
                  else
                    r41 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s40 << r41
                  if r41
                    if (match_len = has_terminal?(',', false, index))
                      r43 = true
                      @index += match_len
                    else
                      terminal_parse_failure('\',\'')
                      r43 = nil
                    end
                    s40 << r43
                    if r43
                      r45 = _nt_sp
                      if r45
                        r44 = r45
                      else
                        r44 = instantiate_node(SyntaxNode,input, index...index)
                      end
                      s40 << r44
                      if r44
                        r47 = _nt_hash_args
                        if r47
                          r46 = r47
                        else
                          r46 = instantiate_node(SyntaxNode,input, index...index)
                        end
                        s40 << r46
                      end
                    end
                  end
                  if s40.last
                    r40 = instantiate_node(SyntaxNode,input, i40...index, s40)
                    r40.extend(HashArgs4)
                  else
                    @index = i40
                    r40 = nil
                  end
                  if r40
                    r39 = r40
                  else
                    r39 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s22 << r39
                end
              end
            end
          end
        end
      end
    end
    if s22.last
      r22 = instantiate_node(HashArgs,input, i22...index, s22)
      r22.extend(HashArgs5)
    else
      @index = i22
      r22 = nil
    end
    if r22
      r22 = SyntaxNode.new(input, (index-1)...index) if r22 == true
      r0 = r22
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:hash_args][start_index] = r0

  r0
end

#_nt_hash_exprObject


3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
# File 'lib/delorean/delorean.rb', line 3068

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

  i0 = index
  if (match_len = has_terminal?('{}', false, index))
    r1 = instantiate_node(HashExpr,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'{}\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i2, s2 = index, []
    if (match_len = has_terminal?('{', false, index))
      r3 = true
      @index += match_len
    else
      terminal_parse_failure('\'{\'')
      r3 = nil
    end
    s2 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s2 << r4
      if r4
        r6 = _nt_expression
        s2 << r6
        if r6
          r8 = _nt_sp
          if r8
            r7 = r8
          else
            r7 = instantiate_node(SyntaxNode,input, index...index)
          end
          s2 << r7
          if r7
            if (match_len = has_terminal?(':', false, index))
              r9 = true
              @index += match_len
            else
              terminal_parse_failure('\':\'')
              r9 = nil
            end
            s2 << r9
            if r9
              r11 = _nt_sp
              if r11
                r10 = r11
              else
                r10 = instantiate_node(SyntaxNode,input, index...index)
              end
              s2 << r10
              if r10
                r12 = _nt_expression
                s2 << r12
                if r12
                  r13 = _nt_sp
                  s2 << r13
                  if r13
                    if (match_len = has_terminal?('for', false, index))
                      r14 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                      @index += match_len
                    else
                      terminal_parse_failure('\'for\'')
                      r14 = nil
                    end
                    s2 << r14
                    if r14
                      r15 = _nt_sp
                      s2 << r15
                      if r15
                        r16 = _nt_unpack_args
                        s2 << r16
                        if r16
                          r17 = _nt_sp
                          s2 << r17
                          if r17
                            if (match_len = has_terminal?('in', false, index))
                              r18 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                              @index += match_len
                            else
                              terminal_parse_failure('\'in\'')
                              r18 = nil
                            end
                            s2 << r18
                            if r18
                              r19 = _nt_sp
                              s2 << r19
                              if r19
                                r20 = _nt_expression
                                s2 << r20
                                if r20
                                  r22 = _nt_sp
                                  if r22
                                    r21 = r22
                                  else
                                    r21 = instantiate_node(SyntaxNode,input, index...index)
                                  end
                                  s2 << r21
                                  if r21
                                    i24, s24 = index, []
                                    if (match_len = has_terminal?('if', false, index))
                                      r25 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                                      @index += match_len
                                    else
                                      terminal_parse_failure('\'if\'')
                                      r25 = nil
                                    end
                                    s24 << r25
                                    if r25
                                      r26 = _nt_sp
                                      s24 << r26
                                      if r26
                                        r27 = _nt_expression
                                        s24 << r27
                                        if r27
                                          r29 = _nt_sp
                                          if r29
                                            r28 = r29
                                          else
                                            r28 = instantiate_node(SyntaxNode,input, index...index)
                                          end
                                          s24 << r28
                                        end
                                      end
                                    end
                                    if s24.last
                                      r24 = instantiate_node(SyntaxNode,input, i24...index, s24)
                                      r24.extend(HashExpr0)
                                    else
                                      @index = i24
                                      r24 = nil
                                    end
                                    if r24
                                      r23 = r24
                                    else
                                      r23 = instantiate_node(SyntaxNode,input, index...index)
                                    end
                                    s2 << r23
                                    if r23
                                      if (match_len = has_terminal?('}', false, index))
                                        r30 = true
                                        @index += match_len
                                      else
                                        terminal_parse_failure('\'}\'')
                                        r30 = nil
                                      end
                                      s2 << r30
                                    end
                                  end
                                end
                              end
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
    if s2.last
      r2 = instantiate_node(HashComprehension,input, i2...index, s2)
      r2.extend(HashExpr1)
    else
      @index = i2
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      i31, s31 = index, []
      if (match_len = has_terminal?('{', false, index))
        r32 = true
        @index += match_len
      else
        terminal_parse_failure('\'{\'')
        r32 = nil
      end
      s31 << r32
      if r32
        r34 = _nt_sp
        if r34
          r33 = r34
        else
          r33 = instantiate_node(SyntaxNode,input, index...index)
        end
        s31 << r33
        if r33
          r35 = _nt_hash_args
          s31 << r35
          if r35
            r37 = _nt_sp
            if r37
              r36 = r37
            else
              r36 = instantiate_node(SyntaxNode,input, index...index)
            end
            s31 << r36
            if r36
              if (match_len = has_terminal?('}', false, index))
                r38 = true
                @index += match_len
              else
                terminal_parse_failure('\'}\'')
                r38 = nil
              end
              s31 << r38
            end
          end
        end
      end
      if s31.last
        r31 = instantiate_node(HashExpr,input, i31...index, s31)
        r31.extend(HashExpr2)
      else
        @index = i31
        r31 = nil
      end
      if r31
        r31 = SyntaxNode.new(input, (index-1)...index) if r31 == true
        r0 = r31
      else
        @index = i0
        r0 = nil
      end
    end
  end

  node_cache[:hash_expr][start_index] = r0

  r0
end

#_nt_identifierObject


4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
# File 'lib/delorean/delorean.rb', line 4841

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

  i0 = index
  i1, s1 = index, []
  if has_terminal?(@regexps[gr = '\A[a-z]'] ||= Regexp.new(gr), :regexp, index)
    r2 = true
    @index += 1
  else
    terminal_parse_failure('[a-z]')
    r2 = nil
  end
  s1 << r2
  if r2
    s3, i3 = [], index
    loop do
      if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
        r4 = true
        @index += 1
      else
        terminal_parse_failure('[a-zA-Z0-9_]')
        r4 = nil
      end
      if r4
        s3 << r4
      else
        break
      end
    end
    r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
    s1 << r3
    if r3
      if (match_len = has_terminal?('?', false, index))
        r6 = true
        @index += match_len
      else
        terminal_parse_failure('\'?\'')
        r6 = nil
      end
      if r6
        r5 = r6
      else
        r5 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r5
    end
  end
  if s1.last
    r1 = instantiate_node(Identifier,input, i1...index, s1)
    r1.extend(Identifier0)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i7, s7 = index, []
    if has_terminal?(@regexps[gr = '\A[_]'] ||= Regexp.new(gr), :regexp, index)
      r8 = true
      @index += 1
    else
      terminal_parse_failure('[_]')
      r8 = nil
    end
    s7 << r8
    if r8
      s9, i9 = [], index
      loop do
        if has_terminal?(@regexps[gr = '\A[a-zA-Z0-9_]'] ||= Regexp.new(gr), :regexp, index)
          r10 = true
          @index += 1
        else
          terminal_parse_failure('[a-zA-Z0-9_]')
          r10 = nil
        end
        if r10
          s9 << r10
        else
          break
        end
      end
      if s9.empty?
        @index = i9
        r9 = nil
      else
        r9 = instantiate_node(SyntaxNode,input, i9...index, s9)
      end
      s7 << r9
      if r9
        if (match_len = has_terminal?('?', false, index))
          r12 = true
          @index += match_len
        else
          terminal_parse_failure('\'?\'')
          r12 = nil
        end
        if r12
          r11 = r12
        else
          r11 = instantiate_node(SyntaxNode,input, index...index)
        end
        s7 << r11
      end
    end
    if s7.last
      r7 = instantiate_node(Identifier,input, i7...index, s7)
      r7.extend(Identifier1)
    else
      @index = i7
      r7 = nil
    end
    if r7
      r7 = SyntaxNode.new(input, (index-1)...index) if r7 == true
      r0 = r7
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:identifier][start_index] = r0

  r0
end

#_nt_integerObject


4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
# File 'lib/delorean/delorean.rb', line 4763

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

  i0 = index
  if (match_len = has_terminal?('0', false, index))
    r1 = instantiate_node(Literal,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'0\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i2, s2 = index, []
    if has_terminal?(@regexps[gr = '\A[1-9]'] ||= Regexp.new(gr), :regexp, index)
      r3 = true
      @index += 1
    else
      terminal_parse_failure('[1-9]')
      r3 = nil
    end
    s2 << r3
    if r3
      s4, i4 = [], index
      loop do
        if has_terminal?(@regexps[gr = '\A[0-9]'] ||= Regexp.new(gr), :regexp, index)
          r5 = true
          @index += 1
        else
          terminal_parse_failure('[0-9]')
          r5 = nil
        end
        if r5
          s4 << r5
        else
          break
        end
      end
      r4 = instantiate_node(SyntaxNode,input, i4...index, s4)
      s2 << r4
    end
    if s2.last
      r2 = instantiate_node(Literal,input, i2...index, s2)
      r2.extend(Integer0)
    else
      @index = i2
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:integer][start_index] = r0

  r0
end

#_nt_kw_argsObject


4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
# File 'lib/delorean/delorean.rb', line 4384

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

  i0 = index
  i1, s1 = index, []
  if (match_len = has_terminal?('**', false, index))
    r2 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'**\'')
    r2 = nil
  end
  s1 << r2
  if r2
    r3 = _nt_expression
    s1 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s1 << r4
      if r4
        i7, s7 = index, []
        if (match_len = has_terminal?('if', false, index))
          r8 = instantiate_node(SyntaxNode,input, index...(index + match_len))
          @index += match_len
        else
          terminal_parse_failure('\'if\'')
          r8 = nil
        end
        s7 << r8
        if r8
          r9 = _nt_sp
          s7 << r9
          if r9
            r10 = _nt_expression
            s7 << r10
            if r10
              r12 = _nt_sp
              if r12
                r11 = r12
              else
                r11 = instantiate_node(SyntaxNode,input, index...index)
              end
              s7 << r11
            end
          end
        end
        if s7.last
          r7 = instantiate_node(SyntaxNode,input, i7...index, s7)
          r7.extend(KwArgs0)
        else
          @index = i7
          r7 = nil
        end
        if r7
          r6 = r7
        else
          r6 = instantiate_node(SyntaxNode,input, index...index)
        end
        s1 << r6
        if r6
          i14, s14 = index, []
          r16 = _nt_sp
          if r16
            r15 = r16
          else
            r15 = instantiate_node(SyntaxNode,input, index...index)
          end
          s14 << r15
          if r15
            if (match_len = has_terminal?(',', false, index))
              r17 = true
              @index += match_len
            else
              terminal_parse_failure('\',\'')
              r17 = nil
            end
            s14 << r17
            if r17
              r19 = _nt_sp
              if r19
                r18 = r19
              else
                r18 = instantiate_node(SyntaxNode,input, index...index)
              end
              s14 << r18
              if r18
                r21 = _nt_kw_args
                if r21
                  r20 = r21
                else
                  r20 = instantiate_node(SyntaxNode,input, index...index)
                end
                s14 << r20
              end
            end
          end
          if s14.last
            r14 = instantiate_node(SyntaxNode,input, i14...index, s14)
            r14.extend(KwArgs1)
          else
            @index = i14
            r14 = nil
          end
          if r14
            r13 = r14
          else
            r13 = instantiate_node(SyntaxNode,input, index...index)
          end
          s1 << r13
        end
      end
    end
  end
  if s1.last
    r1 = instantiate_node(KwArgs,input, i1...index, s1)
    r1.extend(KwArgs2)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i22, s22 = index, []
    i24, s24 = index, []
    r25 = _nt_identifier
    s24 << r25
    if r25
      r27 = _nt_sp
      if r27
        r26 = r27
      else
        r26 = instantiate_node(SyntaxNode,input, index...index)
      end
      s24 << r26
      if r26
        if (match_len = has_terminal?('=', false, index))
          r28 = true
          @index += match_len
        else
          terminal_parse_failure('\'=\'')
          r28 = nil
        end
        s24 << r28
        if r28
          r30 = _nt_sp
          if r30
            r29 = r30
          else
            r29 = instantiate_node(SyntaxNode,input, index...index)
          end
          s24 << r29
        end
      end
    end
    if s24.last
      r24 = instantiate_node(SyntaxNode,input, i24...index, s24)
      r24.extend(KwArgs3)
    else
      @index = i24
      r24 = nil
    end
    if r24
      r23 = r24
    else
      r23 = instantiate_node(SyntaxNode,input, index...index)
    end
    s22 << r23
    if r23
      r31 = _nt_expression
      s22 << r31
      if r31
        r33 = _nt_sp
        if r33
          r32 = r33
        else
          r32 = instantiate_node(SyntaxNode,input, index...index)
        end
        s22 << r32
        if r32
          i35, s35 = index, []
          if (match_len = has_terminal?('if', false, index))
            r36 = instantiate_node(SyntaxNode,input, index...(index + match_len))
            @index += match_len
          else
            terminal_parse_failure('\'if\'')
            r36 = nil
          end
          s35 << r36
          if r36
            r37 = _nt_sp
            s35 << r37
            if r37
              r38 = _nt_expression
              s35 << r38
              if r38
                r40 = _nt_sp
                if r40
                  r39 = r40
                else
                  r39 = instantiate_node(SyntaxNode,input, index...index)
                end
                s35 << r39
              end
            end
          end
          if s35.last
            r35 = instantiate_node(SyntaxNode,input, i35...index, s35)
            r35.extend(KwArgs4)
          else
            @index = i35
            r35 = nil
          end
          if r35
            r34 = r35
          else
            r34 = instantiate_node(SyntaxNode,input, index...index)
          end
          s22 << r34
          if r34
            i42, s42 = index, []
            r44 = _nt_sp
            if r44
              r43 = r44
            else
              r43 = instantiate_node(SyntaxNode,input, index...index)
            end
            s42 << r43
            if r43
              if (match_len = has_terminal?(',', false, index))
                r45 = true
                @index += match_len
              else
                terminal_parse_failure('\',\'')
                r45 = nil
              end
              s42 << r45
              if r45
                r47 = _nt_sp
                if r47
                  r46 = r47
                else
                  r46 = instantiate_node(SyntaxNode,input, index...index)
                end
                s42 << r46
                if r46
                  r49 = _nt_kw_args
                  if r49
                    r48 = r49
                  else
                    r48 = instantiate_node(SyntaxNode,input, index...index)
                  end
                  s42 << r48
                end
              end
            end
            if s42.last
              r42 = instantiate_node(SyntaxNode,input, i42...index, s42)
              r42.extend(KwArgs5)
            else
              @index = i42
              r42 = nil
            end
            if r42
              r41 = r42
            else
              r41 = instantiate_node(SyntaxNode,input, index...index)
            end
            s22 << r41
          end
        end
      end
    end
    if s22.last
      r22 = instantiate_node(KwArgs,input, i22...index, s22)
      r22.extend(KwArgs6)
    else
      @index = i22
      r22 = nil
    end
    if r22
      r22 = SyntaxNode.new(input, (index-1)...index) if r22 == true
      r0 = r22
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:kw_args][start_index] = r0

  r0
end

#_nt_lineObject


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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/delorean/delorean.rb', line 21

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

  i0, s0 = index, []
  r1 = _nt_formula
  s0 << r1
  if r1
    r3 = _nt_sp
    if r3
      r2 = r3
    else
      r2 = instantiate_node(SyntaxNode,input, index...index)
    end
    s0 << r2
    if r2
      i5, s5 = index, []
      if (match_len = has_terminal?('#', false, index))
        r6 = true
        @index += match_len
      else
        terminal_parse_failure('\'#\'')
        r6 = nil
      end
      s5 << r6
      if r6
        s7, i7 = [], index
        loop do
          if index < input_length
            r8 = true
            @index += 1
          else
            terminal_parse_failure("any character")
            r8 = nil
          end
          if r8
            s7 << r8
          else
            break
          end
        end
        r7 = instantiate_node(SyntaxNode,input, i7...index, s7)
        s5 << r7
      end
      if s5.last
        r5 = instantiate_node(SyntaxNode,input, i5...index, s5)
        r5.extend(Line0)
      else
        @index = i5
        r5 = nil
      end
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s0 << r4
    end
  end
  if s0.last
    r0 = instantiate_node(Line,input, i0...index, s0)
    r0.extend(Line1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:line][start_index] = r0

  r0
end

#_nt_list_exprObject


2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
# File 'lib/delorean/delorean.rb', line 2512

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

  i0 = index
  if (match_len = has_terminal?('[]', false, index))
    r1 = instantiate_node(ListExpr,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'[]\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i2, s2 = index, []
    if (match_len = has_terminal?('[', false, index))
      r3 = true
      @index += match_len
    else
      terminal_parse_failure('\'[\'')
      r3 = nil
    end
    s2 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s2 << r4
      if r4
        r6 = _nt_expression
        s2 << r6
        if r6
          r7 = _nt_sp
          s2 << r7
          if r7
            if (match_len = has_terminal?('for', false, index))
              r8 = instantiate_node(SyntaxNode,input, index...(index + match_len))
              @index += match_len
            else
              terminal_parse_failure('\'for\'')
              r8 = nil
            end
            s2 << r8
            if r8
              r9 = _nt_sp
              s2 << r9
              if r9
                r10 = _nt_unpack_args
                s2 << r10
                if r10
                  r11 = _nt_sp
                  s2 << r11
                  if r11
                    if (match_len = has_terminal?('in', false, index))
                      r12 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                      @index += match_len
                    else
                      terminal_parse_failure('\'in\'')
                      r12 = nil
                    end
                    s2 << r12
                    if r12
                      r13 = _nt_sp
                      s2 << r13
                      if r13
                        r14 = _nt_expression
                        s2 << r14
                        if r14
                          r16 = _nt_sp
                          if r16
                            r15 = r16
                          else
                            r15 = instantiate_node(SyntaxNode,input, index...index)
                          end
                          s2 << r15
                          if r15
                            i18, s18 = index, []
                            if (match_len = has_terminal?('if', false, index))
                              r19 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                              @index += match_len
                            else
                              terminal_parse_failure('\'if\'')
                              r19 = nil
                            end
                            s18 << r19
                            if r19
                              r20 = _nt_sp
                              s18 << r20
                              if r20
                                r21 = _nt_expression
                                s18 << r21
                                if r21
                                  r23 = _nt_sp
                                  if r23
                                    r22 = r23
                                  else
                                    r22 = instantiate_node(SyntaxNode,input, index...index)
                                  end
                                  s18 << r22
                                end
                              end
                            end
                            if s18.last
                              r18 = instantiate_node(SyntaxNode,input, i18...index, s18)
                              r18.extend(ListExpr0)
                            else
                              @index = i18
                              r18 = nil
                            end
                            if r18
                              r17 = r18
                            else
                              r17 = instantiate_node(SyntaxNode,input, index...index)
                            end
                            s2 << r17
                            if r17
                              if (match_len = has_terminal?(']', false, index))
                                r24 = true
                                @index += match_len
                              else
                                terminal_parse_failure('\']\'')
                                r24 = nil
                              end
                              s2 << r24
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
    if s2.last
      r2 = instantiate_node(ListComprehension,input, i2...index, s2)
      r2.extend(ListExpr1)
    else
      @index = i2
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      i25, s25 = index, []
      if (match_len = has_terminal?('[', false, index))
        r26 = true
        @index += match_len
      else
        terminal_parse_failure('\'[\'')
        r26 = nil
      end
      s25 << r26
      if r26
        r28 = _nt_sp
        if r28
          r27 = r28
        else
          r27 = instantiate_node(SyntaxNode,input, index...index)
        end
        s25 << r27
        if r27
          r29 = _nt_fn_args
          s25 << r29
          if r29
            r31 = _nt_sp
            if r31
              r30 = r31
            else
              r30 = instantiate_node(SyntaxNode,input, index...index)
            end
            s25 << r30
            if r30
              if (match_len = has_terminal?(']', false, index))
                r32 = true
                @index += match_len
              else
                terminal_parse_failure('\']\'')
                r32 = nil
              end
              s25 << r32
            end
          end
        end
      end
      if s25.last
        r25 = instantiate_node(ListExpr,input, i25...index, s25)
        r25.extend(ListExpr2)
      else
        @index = i25
        r25 = nil
      end
      if r25
        r25 = SyntaxNode.new(input, (index-1)...index) if r25 == true
        r0 = r25
      else
        @index = i0
        r0 = nil
      end
    end
  end

  node_cache[:list_expr][start_index] = r0

  r0
end

#_nt_nil_valObject


5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
# File 'lib/delorean/delorean.rb', line 5068

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

  if (match_len = has_terminal?('nil', false, index))
    r0 = instantiate_node(Literal,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'nil\'')
    r0 = nil
  end

  node_cache[:nil_val][start_index] = r0

  r0
end

#_nt_selfObject


5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
# File 'lib/delorean/delorean.rb', line 5044

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

  if (match_len = has_terminal?('_', false, index))
    r0 = instantiate_node(Self,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'_\'')
    r0 = nil
  end

  node_cache[:self][start_index] = r0

  r0
end

#_nt_set_exprObject


2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
# File 'lib/delorean/delorean.rb', line 2788

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

  i0 = index
  if (match_len = has_terminal?('{-}', false, index))
    r1 = instantiate_node(SetExpr,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'{-}\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i2, s2 = index, []
    if (match_len = has_terminal?('{', false, index))
      r3 = true
      @index += match_len
    else
      terminal_parse_failure('\'{\'')
      r3 = nil
    end
    s2 << r3
    if r3
      r5 = _nt_sp
      if r5
        r4 = r5
      else
        r4 = instantiate_node(SyntaxNode,input, index...index)
      end
      s2 << r4
      if r4
        r6 = _nt_expression
        s2 << r6
        if r6
          r7 = _nt_sp
          s2 << r7
          if r7
            if (match_len = has_terminal?('for', false, index))
              r8 = instantiate_node(SyntaxNode,input, index...(index + match_len))
              @index += match_len
            else
              terminal_parse_failure('\'for\'')
              r8 = nil
            end
            s2 << r8
            if r8
              r9 = _nt_sp
              s2 << r9
              if r9
                r10 = _nt_unpack_args
                s2 << r10
                if r10
                  r11 = _nt_sp
                  s2 << r11
                  if r11
                    if (match_len = has_terminal?('in', false, index))
                      r12 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                      @index += match_len
                    else
                      terminal_parse_failure('\'in\'')
                      r12 = nil
                    end
                    s2 << r12
                    if r12
                      r13 = _nt_sp
                      s2 << r13
                      if r13
                        r14 = _nt_expression
                        s2 << r14
                        if r14
                          r16 = _nt_sp
                          if r16
                            r15 = r16
                          else
                            r15 = instantiate_node(SyntaxNode,input, index...index)
                          end
                          s2 << r15
                          if r15
                            i18, s18 = index, []
                            if (match_len = has_terminal?('if', false, index))
                              r19 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                              @index += match_len
                            else
                              terminal_parse_failure('\'if\'')
                              r19 = nil
                            end
                            s18 << r19
                            if r19
                              r20 = _nt_sp
                              s18 << r20
                              if r20
                                r21 = _nt_expression
                                s18 << r21
                                if r21
                                  r23 = _nt_sp
                                  if r23
                                    r22 = r23
                                  else
                                    r22 = instantiate_node(SyntaxNode,input, index...index)
                                  end
                                  s18 << r22
                                end
                              end
                            end
                            if s18.last
                              r18 = instantiate_node(SyntaxNode,input, i18...index, s18)
                              r18.extend(SetExpr0)
                            else
                              @index = i18
                              r18 = nil
                            end
                            if r18
                              r17 = r18
                            else
                              r17 = instantiate_node(SyntaxNode,input, index...index)
                            end
                            s2 << r17
                            if r17
                              if (match_len = has_terminal?('}', false, index))
                                r24 = true
                                @index += match_len
                              else
                                terminal_parse_failure('\'}\'')
                                r24 = nil
                              end
                              s2 << r24
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
    if s2.last
      r2 = instantiate_node(SetComprehension,input, i2...index, s2)
      r2.extend(SetExpr1)
    else
      @index = i2
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      i25, s25 = index, []
      if (match_len = has_terminal?('{', false, index))
        r26 = true
        @index += match_len
      else
        terminal_parse_failure('\'{\'')
        r26 = nil
      end
      s25 << r26
      if r26
        r28 = _nt_sp
        if r28
          r27 = r28
        else
          r27 = instantiate_node(SyntaxNode,input, index...index)
        end
        s25 << r27
        if r27
          r29 = _nt_fn_args
          s25 << r29
          if r29
            r31 = _nt_sp
            if r31
              r30 = r31
            else
              r30 = instantiate_node(SyntaxNode,input, index...index)
            end
            s25 << r30
            if r30
              if (match_len = has_terminal?('}', false, index))
                r32 = true
                @index += match_len
              else
                terminal_parse_failure('\'}\'')
                r32 = nil
              end
              s25 << r32
            end
          end
        end
      end
      if s25.last
        r25 = instantiate_node(SetExpr,input, i25...index, s25)
        r25.extend(SetExpr2)
      else
        @index = i25
        r25 = nil
      end
      if r25
        r25 = SyntaxNode.new(input, (index-1)...index) if r25 == true
        r0 = r25
      else
        @index = i0
        r0 = nil
      end
    end
  end

  node_cache[:set_expr][start_index] = r0

  r0
end

#_nt_spObject


5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
# File 'lib/delorean/delorean.rb', line 5140

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

  s0, i0 = [], index
  loop do
    if has_terminal?(@regexps[gr = '\A[\\s]'] ||= Regexp.new(gr), :regexp, index)
      r1 = true
      @index += 1
    else
      terminal_parse_failure('[\\s]')
      r1 = nil
    end
    if r1
      s0 << r1
    else
      break
    end
  end
  if s0.empty?
    @index = i0
    r0 = nil
  else
    r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
  end

  node_cache[:sp][start_index] = r0

  r0
end

#_nt_sp1Object


5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
# File 'lib/delorean/delorean.rb', line 5116

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

  if (match_len = has_terminal?(' ', false, index))
    r0 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\' \'')
    r0 = nil
  end

  node_cache[:sp1][start_index] = r0

  r0
end

#_nt_sp4Object


5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
# File 'lib/delorean/delorean.rb', line 5092

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

  if (match_len = has_terminal?('    ', false, index))
    r0 = instantiate_node(SyntaxNode,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'    \'')
    r0 = nil
  end

  node_cache[:sp4][start_index] = r0

  r0
end

#_nt_stringObject


5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
# File 'lib/delorean/delorean.rb', line 5187

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

  i0 = index
  i1, s1 = index, []
  if (match_len = has_terminal?('"', false, index))
    r2 = true
    @index += match_len
  else
    terminal_parse_failure('\'"\'')
    r2 = nil
  end
  s1 << r2
  if r2
    s3, i3 = [], index
    loop do
      i4 = index
      if (match_len = has_terminal?('\"', false, index))
        r5 = instantiate_node(SyntaxNode,input, index...(index + match_len))
        @index += match_len
      else
        terminal_parse_failure('\'\\"\'')
        r5 = nil
      end
      if r5
        r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
        r4 = r5
      else
        i6, s6 = index, []
        i7 = index
        if (match_len = has_terminal?('"', false, index))
          r8 = true
          @index += match_len
        else
          terminal_parse_failure('\'"\'')
          r8 = nil
        end
        if r8
          @index = i7
          r7 = nil
          terminal_parse_failure('\'"\'', true)
        else
          @terminal_failures.pop
          @index = i7
          r7 = instantiate_node(SyntaxNode,input, index...index)
        end
        s6 << r7
        if r7
          if index < input_length
            r9 = true
            @index += 1
          else
            terminal_parse_failure("any character")
            r9 = nil
          end
          s6 << r9
        end
        if s6.last
          r6 = instantiate_node(SyntaxNode,input, i6...index, s6)
          r6.extend(String0)
        else
          @index = i6
          r6 = nil
        end
        if r6
          r6 = SyntaxNode.new(input, (index-1)...index) if r6 == true
          r4 = r6
        else
          @index = i4
          r4 = nil
        end
      end
      if r4
        s3 << r4
      else
        break
      end
    end
    r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
    s1 << r3
    if r3
      if (match_len = has_terminal?('"', false, index))
        r10 = true
        @index += match_len
      else
        terminal_parse_failure('\'"\'')
        r10 = nil
      end
      s1 << r10
    end
  end
  if s1.last
    r1 = instantiate_node(IString,input, i1...index, s1)
    r1.extend(String1)
  else
    @index = i1
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    i11, s11 = index, []
    if (match_len = has_terminal?("'", false, index))
      r12 = true
      @index += match_len
    else
      terminal_parse_failure('"\'"')
      r12 = nil
    end
    s11 << r12
    if r12
      s13, i13 = [], index
      loop do
        if has_terminal?(@regexps[gr = '\A[^\']'] ||= Regexp.new(gr), :regexp, index)
          r14 = true
          @index += 1
        else
          terminal_parse_failure('[^\']')
          r14 = nil
        end
        if r14
          s13 << r14
        else
          break
        end
      end
      r13 = instantiate_node(SyntaxNode,input, i13...index, s13)
      s11 << r13
      if r13
        if (match_len = has_terminal?("'", false, index))
          r15 = true
          @index += match_len
        else
          terminal_parse_failure('"\'"')
          r15 = nil
        end
        s11 << r15
      end
    end
    if s11.last
      r11 = instantiate_node(DString,input, i11...index, s11)
      r11.extend(String2)
    else
      @index = i11
      r11 = nil
    end
    if r11
      r11 = SyntaxNode.new(input, (index-1)...index) if r11 == true
      r0 = r11
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:string][start_index] = r0

  r0
end

#_nt_supObject


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
# File 'lib/delorean/delorean.rb', line 5020

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

  if (match_len = has_terminal?('_sup', false, index))
    r0 = instantiate_node(Sup,input, index...(index + match_len))
    @index += match_len
  else
    terminal_parse_failure('\'_sup\'')
    r0 = nil
  end

  node_cache[:sup][start_index] = r0

  r0
end

#_nt_unary_opObject


3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
# File 'lib/delorean/delorean.rb', line 3578

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

  i0 = index
  if (match_len = has_terminal?('!', false, index))
    r1 = true
    @index += match_len
  else
    terminal_parse_failure('\'!\'')
    r1 = nil
  end
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    if (match_len = has_terminal?('-', false, index))
      r2 = true
      @index += match_len
    else
      terminal_parse_failure('\'-\'')
      r2 = nil
    end
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      @index = i0
      r0 = nil
    end
  end

  node_cache[:unary_op][start_index] = r0

  r0
end

#_nt_unpack_argsObject


2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
# File 'lib/delorean/delorean.rb', line 2381

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

  i0, s0 = index, []
  r1 = _nt_identifier
  s0 << r1
  if r1
    i3, s3 = index, []
    r5 = _nt_sp
    if r5
      r4 = r5
    else
      r4 = instantiate_node(SyntaxNode,input, index...index)
    end
    s3 << r4
    if r4
      if (match_len = has_terminal?(',', false, index))
        r6 = true
        @index += match_len
      else
        terminal_parse_failure('\',\'')
        r6 = nil
      end
      s3 << r6
      if r6
        r8 = _nt_sp
        if r8
          r7 = r8
        else
          r7 = instantiate_node(SyntaxNode,input, index...index)
        end
        s3 << r7
        if r7
          r10 = _nt_unpack_args
          if r10
            r9 = r10
          else
            r9 = instantiate_node(SyntaxNode,input, index...index)
          end
          s3 << r9
        end
      end
    end
    if s3.last
      r3 = instantiate_node(SyntaxNode,input, i3...index, s3)
      r3.extend(UnpackArgs0)
    else
      @index = i3
      r3 = nil
    end
    if r3
      r2 = r3
    else
      r2 = instantiate_node(SyntaxNode,input, index...index)
    end
    s0 << r2
  end
  if s0.last
    r0 = instantiate_node(UnpackArgs,input, i0...index, s0)
    r0.extend(UnpackArgs1)
  else
    @index = i0
    r0 = nil
  end

  node_cache[:unpack_args][start_index] = r0

  r0
end

#_nt_valueObject


3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
# File 'lib/delorean/delorean.rb', line 3652

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

  i0 = index
  r1 = _nt_decimal
  if r1
    r1 = SyntaxNode.new(input, (index-1)...index) if r1 == true
    r0 = r1
  else
    r2 = _nt_integer
    if r2
      r2 = SyntaxNode.new(input, (index-1)...index) if r2 == true
      r0 = r2
    else
      r3 = _nt_string
      if r3
        r3 = SyntaxNode.new(input, (index-1)...index) if r3 == true
        r0 = r3
      else
        r4 = _nt_boolean
        if r4
          r4 = SyntaxNode.new(input, (index-1)...index) if r4 == true
          r0 = r4
        else
          r5 = _nt_nil_val
          if r5
            r5 = SyntaxNode.new(input, (index-1)...index) if r5 == true
            r0 = r5
          else
            r6 = _nt_sup
            if r6
              r6 = SyntaxNode.new(input, (index-1)...index) if r6 == true
              r0 = r6
            else
              r7 = _nt_identifier
              if r7
                r7 = SyntaxNode.new(input, (index-1)...index) if r7 == true
                r0 = r7
              else
                r8 = _nt_self
                if r8
                  r8 = SyntaxNode.new(input, (index-1)...index) if r8 == true
                  r0 = r8
                else
                  r9 = _nt_list_expr
                  if r9
                    r9 = SyntaxNode.new(input, (index-1)...index) if r9 == true
                    r0 = r9
                  else
                    r10 = _nt_set_expr
                    if r10
                      r10 = SyntaxNode.new(input, (index-1)...index) if r10 == true
                      r0 = r10
                    else
                      r11 = _nt_hash_expr
                      if r11
                        r11 = SyntaxNode.new(input, (index-1)...index) if r11 == true
                        r0 = r11
                      else
                        i12, s12 = index, []
                        r13 = _nt_class_name_import
                        s12 << r13
                        if s12.last
                          r12 = instantiate_node(NodeAsValueNested,input, i12...index, s12)
                          r12.extend(Value0)
                        else
                          @index = i12
                          r12 = nil
                        end
                        if r12
                          r12 = SyntaxNode.new(input, (index-1)...index) if r12 == true
                          r0 = r12
                        else
                          i14, s14 = index, []
                          i16, s16 = index, []
                          r17 = _nt_class_name
                          s16 << r17
                          if r17
                            if (match_len = has_terminal?('::', false, index))
                              r18 = instantiate_node(SyntaxNode,input, index...(index + match_len))
                              @index += match_len
                            else
                              terminal_parse_failure('\'::\'')
                              r18 = nil
                            end
                            s16 << r18
                          end
                          if s16.last
                            r16 = instantiate_node(SyntaxNode,input, i16...index, s16)
                            r16.extend(Value1)
                          else
                            @index = i16
                            r16 = nil
                          end
                          if r16
                            r15 = r16
                          else
                            r15 = instantiate_node(SyntaxNode,input, index...index)
                          end
                          s14 << r15
                          if r15
                            r19 = _nt_class_name
                            s14 << r19
                          end
                          if s14.last
                            r14 = instantiate_node(NodeAsValue,input, i14...index, s14)
                            r14.extend(Value2)
                          else
                            @index = i14
                            r14 = nil
                          end
                          if r14
                            r14 = SyntaxNode.new(input, (index-1)...index) if r14 == true
                            r0 = r14
                          else
                            i20, s20 = index, []
                            if (match_len = has_terminal?('(', false, index))
                              r21 = true
                              @index += match_len
                            else
                              terminal_parse_failure('\'(\'')
                              r21 = nil
                            end
                            s20 << r21
                            if r21
                              r23 = _nt_sp
                              if r23
                                r22 = r23
                              else
                                r22 = instantiate_node(SyntaxNode,input, index...index)
                              end
                              s20 << r22
                              if r22
                                r24 = _nt_expression
                                s20 << r24
                                if r24
                                  r26 = _nt_sp
                                  if r26
                                    r25 = r26
                                  else
                                    r25 = instantiate_node(SyntaxNode,input, index...index)
                                  end
                                  s20 << r25
                                  if r25
                                    if (match_len = has_terminal?(')', false, index))
                                      r27 = true
                                      @index += match_len
                                    else
                                      terminal_parse_failure('\')\'')
                                      r27 = nil
                                    end
                                    s20 << r27
                                  end
                                end
                              end
                            end
                            if s20.last
                              r20 = instantiate_node(Expr,input, i20...index, s20)
                              r20.extend(Value3)
                            else
                              @index = i20
                              r20 = nil
                            end
                            if r20
                              r20 = SyntaxNode.new(input, (index-1)...index) if r20 == true
                              r0 = r20
                            else
                              @index = i0
                              r0 = nil
                            end
                          end
                        end
                      end
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end

  node_cache[:value][start_index] = r0

  r0
end

#rootObject


7
8
9
# File 'lib/delorean/delorean.rb', line 7

def root
  @root ||= :line
end