racc 1.4.15-java → 1.4.16-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING +22 -515
  3. data/Manifest.txt +3 -9
  4. data/README.ja.rdoc +3 -4
  5. data/README.rdoc +4 -4
  6. data/Rakefile +13 -55
  7. data/bin/racc +2 -4
  8. data/ext/racc/{cparse.c → cparse/cparse.c} +64 -31
  9. data/ext/racc/cparse/extconf.rb +8 -0
  10. data/lib/racc/cparse-jruby.jar +0 -0
  11. data/lib/racc/exception.rb +3 -5
  12. data/lib/racc/grammar.rb +5 -7
  13. data/lib/racc/grammarfileparser.rb +4 -3
  14. data/lib/racc/info.rb +4 -6
  15. data/lib/racc/iset.rb +2 -2
  16. data/lib/racc/logfilegenerator.rb +2 -2
  17. data/lib/racc/parser-text.rb +14 -11
  18. data/lib/racc/parser.rb +14 -11
  19. data/lib/racc/parserfilegenerator.rb +5 -7
  20. data/lib/racc/state.rb +11 -13
  21. data/test/assets/intp.y +4 -4
  22. data/test/assets/mailp.y +27 -27
  23. data/test/assets/mof.y +12 -12
  24. data/test/assets/nullbug2.y +2 -2
  25. data/test/assets/recv.y +20 -20
  26. data/test/assets/syntax.y +1 -1
  27. data/test/assets/twowaysql.y +1 -1
  28. data/test/helper.rb +65 -54
  29. data/test/regress/cadenza +60 -60
  30. data/test/regress/cast +8 -8
  31. data/test/regress/csspool +167 -167
  32. data/test/regress/edtf +115 -115
  33. data/test/regress/huia +75 -75
  34. data/test/regress/journey +12 -12
  35. data/test/regress/liquor +54 -54
  36. data/test/regress/machete +37 -37
  37. data/test/regress/mediacloth +83 -83
  38. data/test/regress/mof +60 -60
  39. data/test/regress/namae +29 -29
  40. data/test/regress/nasl +174 -174
  41. data/test/regress/nokogiri-css +59 -59
  42. data/test/regress/opal +352 -352
  43. data/test/regress/php_serialization +20 -20
  44. data/test/regress/riml +261 -261
  45. data/test/regress/ruby18 +353 -353
  46. data/test/regress/ruby22 +433 -433
  47. data/test/regress/tp_plus +125 -125
  48. data/test/regress/twowaysql +30 -30
  49. data/test/test_chk_y.rb +1 -0
  50. data/test/test_racc_command.rb +5 -24
  51. data/test/test_scan_y.rb +1 -0
  52. data/test/testscanner.rb +1 -1
  53. metadata +8 -75
  54. data/ext/racc/depend +0 -1
  55. data/ext/racc/extconf.rb +0 -7
  56. data/test/assets/bibtex.y +0 -141
  57. data/test/assets/rdblockparser.y +0 -576
  58. data/test/assets/rdinlineparser.y +0 -561
  59. data/test/regress/bibtex +0 -474
  60. data/test/regress/rdblockparser +0 -1061
  61. data/test/regress/rdinlineparser +0 -1243
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.14
4
- # from Racc grammer file "".
3
+ # This file is automatically generated by Racc 1.4.16.pre.1
4
+ # from Racc grammar file "".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -369,63 +369,63 @@ Racc_debug_parser = false
369
369
 
370
370
  module_eval(<<'.,.,', 'cadenza.y', 12)
371
371
  def _reduce_2(val, _values, result)
372
- result = nil
372
+ result = nil
373
373
  result
374
374
  end
375
375
  .,.,
376
376
 
377
377
  module_eval(<<'.,.,', 'cadenza.y', 16)
378
378
  def _reduce_3(val, _values, result)
379
- result = [val[0]]
379
+ result = [val[0]]
380
380
  result
381
381
  end
382
382
  .,.,
383
383
 
384
384
  module_eval(<<'.,.,', 'cadenza.y', 17)
385
385
  def _reduce_4(val, _values, result)
386
- result = val[0].push(val[2])
386
+ result = val[0].push(val[2])
387
387
  result
388
388
  end
389
389
  .,.,
390
390
 
391
391
  module_eval(<<'.,.,', 'cadenza.y', 22)
392
392
  def _reduce_5(val, _values, result)
393
- result = VariableNode.new(val[0].value)
393
+ result = VariableNode.new(val[0].value)
394
394
  result
395
395
  end
396
396
  .,.,
397
397
 
398
398
  module_eval(<<'.,.,', 'cadenza.y', 23)
399
399
  def _reduce_6(val, _values, result)
400
- result = VariableNode.new(val[0].value, val[1])
400
+ result = VariableNode.new(val[0].value, val[1])
401
401
  result
402
402
  end
403
403
  .,.,
404
404
 
405
405
  module_eval(<<'.,.,', 'cadenza.y', 24)
406
406
  def _reduce_7(val, _values, result)
407
- result = ConstantNode.new(val[0].value)
407
+ result = ConstantNode.new(val[0].value)
408
408
  result
409
409
  end
410
410
  .,.,
411
411
 
412
412
  module_eval(<<'.,.,', 'cadenza.y', 25)
413
413
  def _reduce_8(val, _values, result)
414
- result = ConstantNode.new(val[0].value)
414
+ result = ConstantNode.new(val[0].value)
415
415
  result
416
416
  end
417
417
  .,.,
418
418
 
419
419
  module_eval(<<'.,.,', 'cadenza.y', 26)
420
420
  def _reduce_9(val, _values, result)
421
- result = ConstantNode.new(val[0].value)
421
+ result = ConstantNode.new(val[0].value)
422
422
  result
423
423
  end
424
424
  .,.,
425
425
 
426
426
  module_eval(<<'.,.,', 'cadenza.y', 27)
427
427
  def _reduce_10(val, _values, result)
428
- result = val[1]
428
+ result = val[1]
429
429
  result
430
430
  end
431
431
  .,.,
@@ -434,14 +434,14 @@ module_eval(<<'.,.,', 'cadenza.y', 27)
434
434
 
435
435
  module_eval(<<'.,.,', 'cadenza.y', 32)
436
436
  def _reduce_12(val, _values, result)
437
- result = OperationNode.new(val[0], "*", val[2])
437
+ result = OperationNode.new(val[0], "*", val[2])
438
438
  result
439
439
  end
440
440
  .,.,
441
441
 
442
442
  module_eval(<<'.,.,', 'cadenza.y', 33)
443
443
  def _reduce_13(val, _values, result)
444
- result = OperationNode.new(val[0], "/", val[2])
444
+ result = OperationNode.new(val[0], "/", val[2])
445
445
  result
446
446
  end
447
447
  .,.,
@@ -450,14 +450,14 @@ module_eval(<<'.,.,', 'cadenza.y', 33)
450
450
 
451
451
  module_eval(<<'.,.,', 'cadenza.y', 38)
452
452
  def _reduce_15(val, _values, result)
453
- result = OperationNode.new(val[0], "+", val[2])
453
+ result = OperationNode.new(val[0], "+", val[2])
454
454
  result
455
455
  end
456
456
  .,.,
457
457
 
458
458
  module_eval(<<'.,.,', 'cadenza.y', 39)
459
459
  def _reduce_16(val, _values, result)
460
- result = OperationNode.new(val[0], "-", val[2])
460
+ result = OperationNode.new(val[0], "-", val[2])
461
461
  result
462
462
  end
463
463
  .,.,
@@ -466,42 +466,42 @@ module_eval(<<'.,.,', 'cadenza.y', 39)
466
466
 
467
467
  module_eval(<<'.,.,', 'cadenza.y', 44)
468
468
  def _reduce_18(val, _values, result)
469
- result = OperationNode.new(val[0], "==", val[2])
469
+ result = OperationNode.new(val[0], "==", val[2])
470
470
  result
471
471
  end
472
472
  .,.,
473
473
 
474
474
  module_eval(<<'.,.,', 'cadenza.y', 45)
475
475
  def _reduce_19(val, _values, result)
476
- result = OperationNode.new(val[0], "!=", val[2])
476
+ result = OperationNode.new(val[0], "!=", val[2])
477
477
  result
478
478
  end
479
479
  .,.,
480
480
 
481
481
  module_eval(<<'.,.,', 'cadenza.y', 46)
482
482
  def _reduce_20(val, _values, result)
483
- result = OperationNode.new(val[0], "<=", val[2])
483
+ result = OperationNode.new(val[0], "<=", val[2])
484
484
  result
485
485
  end
486
486
  .,.,
487
487
 
488
488
  module_eval(<<'.,.,', 'cadenza.y', 47)
489
489
  def _reduce_21(val, _values, result)
490
- result = OperationNode.new(val[0], ">=", val[2])
490
+ result = OperationNode.new(val[0], ">=", val[2])
491
491
  result
492
492
  end
493
493
  .,.,
494
494
 
495
495
  module_eval(<<'.,.,', 'cadenza.y', 48)
496
496
  def _reduce_22(val, _values, result)
497
- result = OperationNode.new(val[0], ">", val[2])
497
+ result = OperationNode.new(val[0], ">", val[2])
498
498
  result
499
499
  end
500
500
  .,.,
501
501
 
502
502
  module_eval(<<'.,.,', 'cadenza.y', 49)
503
503
  def _reduce_23(val, _values, result)
504
- result = OperationNode.new(val[0], "<", val[2])
504
+ result = OperationNode.new(val[0], "<", val[2])
505
505
  result
506
506
  end
507
507
  .,.,
@@ -510,7 +510,7 @@ module_eval(<<'.,.,', 'cadenza.y', 49)
510
510
 
511
511
  module_eval(<<'.,.,', 'cadenza.y', 54)
512
512
  def _reduce_25(val, _values, result)
513
- result = BooleanInverseNode.new(val[1])
513
+ result = BooleanInverseNode.new(val[1])
514
514
  result
515
515
  end
516
516
  .,.,
@@ -519,42 +519,42 @@ module_eval(<<'.,.,', 'cadenza.y', 54)
519
519
 
520
520
  module_eval(<<'.,.,', 'cadenza.y', 59)
521
521
  def _reduce_27(val, _values, result)
522
- result = OperationNode.new(val[0], "and", val[2])
522
+ result = OperationNode.new(val[0], "and", val[2])
523
523
  result
524
524
  end
525
525
  .,.,
526
526
 
527
527
  module_eval(<<'.,.,', 'cadenza.y', 60)
528
528
  def _reduce_28(val, _values, result)
529
- result = OperationNode.new(val[0], "or", val[2])
529
+ result = OperationNode.new(val[0], "or", val[2])
530
530
  result
531
531
  end
532
532
  .,.,
533
533
 
534
534
  module_eval(<<'.,.,', 'cadenza.y', 64)
535
535
  def _reduce_29(val, _values, result)
536
- result = FilterNode.new(val[0].value)
536
+ result = FilterNode.new(val[0].value)
537
537
  result
538
538
  end
539
539
  .,.,
540
540
 
541
541
  module_eval(<<'.,.,', 'cadenza.y', 65)
542
542
  def _reduce_30(val, _values, result)
543
- result = FilterNode.new(val[0].value, val[2])
543
+ result = FilterNode.new(val[0].value, val[2])
544
544
  result
545
545
  end
546
546
  .,.,
547
547
 
548
548
  module_eval(<<'.,.,', 'cadenza.y', 69)
549
549
  def _reduce_31(val, _values, result)
550
- result = [val[0]]
550
+ result = [val[0]]
551
551
  result
552
552
  end
553
553
  .,.,
554
554
 
555
555
  module_eval(<<'.,.,', 'cadenza.y', 70)
556
556
  def _reduce_32(val, _values, result)
557
- result = val[0].push(val[2])
557
+ result = val[0].push(val[2])
558
558
  result
559
559
  end
560
560
  .,.,
@@ -563,189 +563,189 @@ module_eval(<<'.,.,', 'cadenza.y', 70)
563
563
 
564
564
  module_eval(<<'.,.,', 'cadenza.y', 75)
565
565
  def _reduce_34(val, _values, result)
566
- result = FilteredValueNode.new(val[0], val[2])
566
+ result = FilteredValueNode.new(val[0], val[2])
567
567
  result
568
568
  end
569
569
  .,.,
570
570
 
571
571
  module_eval(<<'.,.,', 'cadenza.y', 79)
572
572
  def _reduce_35(val, _values, result)
573
- result = val[1]
573
+ result = val[1]
574
574
  result
575
575
  end
576
576
  .,.,
577
577
 
578
578
  module_eval(<<'.,.,', 'cadenza.y', 83)
579
579
  def _reduce_36(val, _values, result)
580
- open_scope!; result = val[2]
580
+ open_scope!; result = val[2]
581
581
  result
582
582
  end
583
583
  .,.,
584
584
 
585
585
  module_eval(<<'.,.,', 'cadenza.y', 84)
586
586
  def _reduce_37(val, _values, result)
587
- open_scope!; result = BooleanInverseNode.new(val[2])
587
+ open_scope!; result = BooleanInverseNode.new(val[2])
588
588
  result
589
589
  end
590
590
  .,.,
591
591
 
592
592
  module_eval(<<'.,.,', 'cadenza.y', 88)
593
593
  def _reduce_38(val, _values, result)
594
- result = close_scope!; open_scope!
594
+ result = close_scope!; open_scope!
595
595
  result
596
596
  end
597
597
  .,.,
598
598
 
599
599
  module_eval(<<'.,.,', 'cadenza.y', 92)
600
600
  def _reduce_39(val, _values, result)
601
- result = close_scope!
601
+ result = close_scope!
602
602
  result
603
603
  end
604
604
  .,.,
605
605
 
606
606
  module_eval(<<'.,.,', 'cadenza.y', 93)
607
607
  def _reduce_40(val, _values, result)
608
- result = close_scope!
608
+ result = close_scope!
609
609
  result
610
610
  end
611
611
  .,.,
612
612
 
613
613
  module_eval(<<'.,.,', 'cadenza.y', 97)
614
614
  def _reduce_41(val, _values, result)
615
- result = IfNode.new(val[0], val[1])
615
+ result = IfNode.new(val[0], val[1])
616
616
  result
617
617
  end
618
618
  .,.,
619
619
 
620
620
  module_eval(<<'.,.,', 'cadenza.y', 98)
621
621
  def _reduce_42(val, _values, result)
622
- result = IfNode.new(val[0], val[2])
622
+ result = IfNode.new(val[0], val[2])
623
623
  result
624
624
  end
625
625
  .,.,
626
626
 
627
627
  module_eval(<<'.,.,', 'cadenza.y', 99)
628
628
  def _reduce_43(val, _values, result)
629
- result = IfNode.new(val[0], val[1], val[3])
629
+ result = IfNode.new(val[0], val[1], val[3])
630
630
  result
631
631
  end
632
632
  .,.,
633
633
 
634
634
  module_eval(<<'.,.,', 'cadenza.y', 100)
635
635
  def _reduce_44(val, _values, result)
636
- result = IfNode.new(val[0], val[2], val[3])
636
+ result = IfNode.new(val[0], val[2], val[3])
637
637
  result
638
638
  end
639
639
  .,.,
640
640
 
641
641
  module_eval(<<'.,.,', 'cadenza.y', 101)
642
642
  def _reduce_45(val, _values, result)
643
- result = IfNode.new(val[0], val[2], val[4])
643
+ result = IfNode.new(val[0], val[2], val[4])
644
644
  result
645
645
  end
646
646
  .,.,
647
647
 
648
648
  module_eval(<<'.,.,', 'cadenza.y', 105)
649
649
  def _reduce_46(val, _values, result)
650
- open_scope!; result = [val[2].value, val[4]]
650
+ open_scope!; result = [val[2].value, val[4]]
651
651
  result
652
652
  end
653
653
  .,.,
654
654
 
655
655
  module_eval(<<'.,.,', 'cadenza.y', 109)
656
656
  def _reduce_47(val, _values, result)
657
- result = close_scope!
657
+ result = close_scope!
658
658
  result
659
659
  end
660
660
  .,.,
661
661
 
662
662
  module_eval(<<'.,.,', 'cadenza.y', 114)
663
663
  def _reduce_48(val, _values, result)
664
- result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[1])
664
+ result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[1])
665
665
  result
666
666
  end
667
667
  .,.,
668
668
 
669
669
  module_eval(<<'.,.,', 'cadenza.y', 115)
670
670
  def _reduce_49(val, _values, result)
671
- result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[2])
671
+ result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[2])
672
672
  result
673
673
  end
674
674
  .,.,
675
675
 
676
676
  module_eval(<<'.,.,', 'cadenza.y', 119)
677
677
  def _reduce_50(val, _values, result)
678
- result = open_block_scope!(val[2].value)
678
+ result = open_block_scope!(val[2].value)
679
679
  result
680
680
  end
681
681
  .,.,
682
682
 
683
683
  module_eval(<<'.,.,', 'cadenza.y', 123)
684
684
  def _reduce_51(val, _values, result)
685
- result = close_block_scope!
685
+ result = close_block_scope!
686
686
  result
687
687
  end
688
688
  .,.,
689
689
 
690
690
  module_eval(<<'.,.,', 'cadenza.y', 128)
691
691
  def _reduce_52(val, _values, result)
692
- result = BlockNode.new(val[0], val[1])
692
+ result = BlockNode.new(val[0], val[1])
693
693
  result
694
694
  end
695
695
  .,.,
696
696
 
697
697
  module_eval(<<'.,.,', 'cadenza.y', 129)
698
698
  def _reduce_53(val, _values, result)
699
- result = BlockNode.new(val[0], val[2])
699
+ result = BlockNode.new(val[0], val[2])
700
700
  result
701
701
  end
702
702
  .,.,
703
703
 
704
704
  module_eval(<<'.,.,', 'cadenza.y', 133)
705
705
  def _reduce_54(val, _values, result)
706
- open_scope!; result = [val[1].value, []]
706
+ open_scope!; result = [val[1].value, []]
707
707
  result
708
708
  end
709
709
  .,.,
710
710
 
711
711
  module_eval(<<'.,.,', 'cadenza.y', 134)
712
712
  def _reduce_55(val, _values, result)
713
- open_scope!; result = [val[1].value, val[2]]
713
+ open_scope!; result = [val[1].value, val[2]]
714
714
  result
715
715
  end
716
716
  .,.,
717
717
 
718
718
  module_eval(<<'.,.,', 'cadenza.y', 138)
719
719
  def _reduce_56(val, _values, result)
720
- result = close_scope!
720
+ result = close_scope!
721
721
  result
722
722
  end
723
723
  .,.,
724
724
 
725
725
  module_eval(<<'.,.,', 'cadenza.y', 142)
726
726
  def _reduce_57(val, _values, result)
727
- result = GenericBlockNode.new(val[0].first, val[2], val[0].last)
727
+ result = GenericBlockNode.new(val[0].first, val[2], val[0].last)
728
728
  result
729
729
  end
730
730
  .,.,
731
731
 
732
732
  module_eval(<<'.,.,', 'cadenza.y', 146)
733
733
  def _reduce_58(val, _values, result)
734
- result = val[2].value
734
+ result = val[2].value
735
735
  result
736
736
  end
737
737
  .,.,
738
738
 
739
739
  module_eval(<<'.,.,', 'cadenza.y', 147)
740
740
  def _reduce_59(val, _values, result)
741
- result = VariableNode.new(val[2].value)
741
+ result = VariableNode.new(val[2].value)
742
742
  result
743
743
  end
744
744
  .,.,
745
745
 
746
746
  module_eval(<<'.,.,', 'cadenza.y', 151)
747
747
  def _reduce_60(val, _values, result)
748
- result = TextNode.new(val[0].value)
748
+ result = TextNode.new(val[0].value)
749
749
  result
750
750
  end
751
751
  .,.,
@@ -762,28 +762,28 @@ module_eval(<<'.,.,', 'cadenza.y', 151)
762
762
 
763
763
  module_eval(<<'.,.,', 'cadenza.y', 160)
764
764
  def _reduce_66(val, _values, result)
765
- push val[0]
765
+ push val[0]
766
766
  result
767
767
  end
768
768
  .,.,
769
769
 
770
770
  module_eval(<<'.,.,', 'cadenza.y', 161)
771
771
  def _reduce_67(val, _values, result)
772
- push val[1]
772
+ push val[1]
773
773
  result
774
774
  end
775
775
  .,.,
776
776
 
777
777
  module_eval(<<'.,.,', 'cadenza.y', 162)
778
778
  def _reduce_68(val, _values, result)
779
- document.extends = val[0]
779
+ document.extends = val[0]
780
780
  result
781
781
  end
782
782
  .,.,
783
783
 
784
784
  module_eval(<<'.,.,', 'cadenza.y', 163)
785
785
  def _reduce_69(val, _values, result)
786
- document.extends = val[1]
786
+ document.extends = val[1]
787
787
  result
788
788
  end
789
789
  .,.,
@@ -793,4 +793,4 @@ def _reduce_none(val, _values, result)
793
793
  end
794
794
 
795
795
  end # class RaccParser
796
- end # module Cadenza
796
+ end # module Cadenza