ruby_protobuf 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. data/History.txt +7 -2
  2. data/Manifest.txt +74 -0
  3. data/README.txt +1 -1
  4. data/Rakefile +5 -5
  5. data/bin/rprotoc +25 -10
  6. data/{test/proto → examples}/addressbook.pb.rb +1 -14
  7. data/examples/addressbook.proto +24 -0
  8. data/examples/reading_a_message.rb +32 -0
  9. data/examples/writing_a_message.rb +46 -0
  10. data/lib/protobuf/compiler/compiler.rb +9 -11
  11. data/lib/protobuf/compiler/nodes.rb +15 -7
  12. data/lib/protobuf/compiler/proto.y +56 -36
  13. data/lib/protobuf/compiler/proto_parser.rb +373 -236
  14. data/lib/protobuf/compiler/visitors.rb +5 -1
  15. data/lib/protobuf/descriptor/enum_descriptor.rb +1 -1
  16. data/lib/protobuf/message/decoder.rb +12 -19
  17. data/lib/protobuf/message/encoder.rb +5 -2
  18. data/lib/protobuf/message/enum.rb +1 -1
  19. data/lib/protobuf/message/field.rb +302 -298
  20. data/lib/protobuf/message/message.rb +63 -35
  21. data/lib/ruby_protobuf.rb +1 -1
  22. data/{bin → script}/mk_parser +0 -0
  23. data/test/merge.rb +1 -1
  24. data/test/proto/types.proto +20 -0
  25. data/test/test_addressbook.rb +1 -0
  26. data/test/test_compiler.rb +21 -7
  27. data/test/test_message.rb +19 -0
  28. data/test/test_optional_field.rb +80 -0
  29. data/test/test_repeated_types.rb +106 -0
  30. data/test/test_serialize.rb +34 -0
  31. data/test/test_standard_message.rb +10 -0
  32. data/test/test_types.rb +49 -4
  33. data/test/types.rb +23 -2
  34. metadata +22 -20
  35. data/lib/protobuf/compiler/compiler_old.rb +0 -123
  36. data/test/proto/addressbook.rb +0 -69
  37. data/test/proto/bool_default.pb.rb +0 -16
  38. data/test/proto/bool_default.proto +0 -3
  39. data/test/proto/float_default.proto +0 -2
@@ -10,7 +10,7 @@
10
10
  unless $".index 'racc/parser.rb'
11
11
  $".push 'racc/parser.rb'
12
12
 
13
- self.class.module_eval <<'..end racc/parser.rb modeval..id99e3ee3ee1', 'racc/parser.rb', 1
13
+ self.class.module_eval <<'..end racc/parser.rb modeval..id521073ac1f', 'racc/parser.rb', 1
14
14
  #
15
15
  # $Id: parser.rb,v 1.7 2005/11/20 17:31:32 aamine Exp $
16
16
  #
@@ -453,7 +453,7 @@ module Racc
453
453
  end
454
454
 
455
455
  end
456
- ..end racc/parser.rb modeval..id99e3ee3ee1
456
+ ..end racc/parser.rb modeval..id521073ac1f
457
457
  end
458
458
  ###### racc/parser.rb end
459
459
 
@@ -462,48 +462,67 @@ module Protobuf
462
462
 
463
463
  class ProtoParser < Racc::Parser
464
464
 
465
- module_eval <<'..end lib/protobuf/compiler/proto.y modeval..id6c9ee64762', 'lib/protobuf/compiler/proto.y', 162
465
+ module_eval <<'..end lib/protobuf/compiler/proto.y modeval..id7865f341f1', 'lib/protobuf/compiler/proto.y', 163
466
+
467
+ require 'strscan'
466
468
 
467
469
  def parse(f)
468
- @q = []
469
- f.each do |line|
470
- until line.empty? do
471
- case line
472
- when /\A\s+/, /\A\/\/.*/
473
- ;
474
- when /\A(required|optional|repeated|import|package|option|message|extend|enum|service|rpc|returns|group|default|extensions|to|max|double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/
475
- @q.push [$&, $&.to_sym]
476
- when /\A[1-9]\d*(?!\.)/, /\A0(?![.xX0-9])/
477
- @q.push [:DEC_INTEGER, $&.to_i]
478
- when /\A0[xX]([A-Fa-f0-9])+/
479
- @q.push [:HEX_INTEGER, $&.to_i(0)]
480
- when /\A0[0-7]+/
481
- @q.push [:OCT_INTEGER, $&.to_i(0)]
482
- when /\A\d+(\.\d+)?([Ee][\+-]?\d+)?/
483
- @q.push [:FLOAT_LITERAL, $&.to_f]
484
- when /\A(true|false)/
485
- @q.push [:BOOLEAN_LITERAL, $& == 'true']
486
- when /\A"(?:[^"\\]+|\\.)*"/, /\A'(?:[^'\\]+|\\.)*'/
487
- @q.push [:STRING_LITERAL, eval($&)]
488
- when /\A[a-zA-Z_][\w_]*/
489
- @q.push [:IDENT, $&.to_sym]
490
- when /\A[A-Z][\w_]*/
491
- @q.push [:CAMEL_IDENT, $&.to_sym]
492
- when /\A./
493
- @q.push [$&, $&]
494
- else
495
- raise ArgumentError.new(line)
496
- end
497
- line = $'
470
+ @scanner = StringScanner.new(f.read)
471
+ yyparse(self, :scan)
472
+ end
473
+
474
+ def scan_debug
475
+ scan do |token, value|
476
+ p [token, value]
477
+ yield [token, value]
478
+ end
479
+ end
480
+
481
+ def scan
482
+ until @scanner.eos?
483
+ case
484
+ when match(/\s+/, /\/\/.*/)
485
+ # skip
486
+ when match(/\/\*/)
487
+ # C-like comment
488
+ raise 'EOF inside block comment' until @scanner.scan_until(/\*\//)
489
+ when match(/(?:required|optional|repeated|import|package|option|message|extend|enum|service|rpc|returns|group|default|extensions|to|max|double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/)
490
+ yield [@token, @token.to_sym]
491
+ when match(/[+-]?\d*\.\d+([Ee][\+-]?\d+)?/)
492
+ yield [:FLOAT_LITERAL, @token.to_f]
493
+ when match(/[+-]?[1-9]\d*(?!\.)/, /0(?![.xX0-9])/)
494
+ yield [:DEC_INTEGER, @token.to_i]
495
+ when match(/0[xX]([A-Fa-f0-9])+/)
496
+ yield [:HEX_INTEGER, @token.to_i(0)]
497
+ when match(/0[0-7]+/)
498
+ yield [:OCT_INTEGER, @token.to_i(0)]
499
+ when match(/(true|false)\b/)
500
+ yield [:BOOLEAN_LITERAL, @token == 'true']
501
+ when match(/"(?:[^"\\]+|\\.)*"/, /'(?:[^'\\]+|\\.)*'/)
502
+ yield [:STRING_LITERAL, eval(@token)]
503
+ when match(/[a-zA-Z_][\w_]*/)
504
+ yield [:IDENT, @token.to_sym]
505
+ when match(/[A-Z][\w_]*/)
506
+ yield [:CAMEL_IDENT, @token.to_sym]
507
+ when match(/./)
508
+ yield [@token, @token]
509
+ else
510
+ raise "parse error around #{@scanner.string[@scanner.pos, 32].inspect}"
498
511
  end
499
512
  end
500
- do_parse
513
+ yield [false, nil]
501
514
  end
502
515
 
503
- def next_token
504
- @q.shift
516
+ def match(*regular_expressions)
517
+ regular_expressions.each do |re|
518
+ if @scanner.scan(re)
519
+ @token = @scanner[0]
520
+ return true
521
+ end
522
+ end
523
+ false
505
524
  end
506
- ..end lib/protobuf/compiler/proto.y modeval..id6c9ee64762
525
+ ..end lib/protobuf/compiler/proto.y modeval..id7865f341f1
507
526
 
508
527
  ##### racc 1.4.5 generates ###
509
528
 
@@ -562,16 +581,49 @@ racc_reduce_table = [
562
581
  6, 70, :_reduce_51,
563
582
  6, 69, :_reduce_52,
564
583
  9, 69, :_reduce_53,
565
- 1, 84, :_reduce_54,
566
- 3, 84, :_reduce_55,
567
- 1, 85, :_reduce_none,
568
- 3, 85, :_reduce_57,
569
- 4, 81, :_reduce_58,
570
- 0, 87, :_reduce_59,
571
- 2, 87, :_reduce_60,
572
- 1, 86, :_reduce_61,
573
- 3, 86, :_reduce_62,
574
- 3, 86, :_reduce_63,
584
+ 1, 84, :_reduce_none,
585
+ 1, 84, :_reduce_none,
586
+ 1, 84, :_reduce_none,
587
+ 1, 84, :_reduce_none,
588
+ 1, 84, :_reduce_none,
589
+ 1, 84, :_reduce_none,
590
+ 1, 84, :_reduce_none,
591
+ 1, 84, :_reduce_none,
592
+ 1, 84, :_reduce_none,
593
+ 1, 84, :_reduce_none,
594
+ 1, 84, :_reduce_none,
595
+ 1, 84, :_reduce_none,
596
+ 1, 84, :_reduce_none,
597
+ 1, 84, :_reduce_none,
598
+ 1, 84, :_reduce_none,
599
+ 1, 84, :_reduce_none,
600
+ 1, 84, :_reduce_none,
601
+ 1, 84, :_reduce_none,
602
+ 1, 84, :_reduce_none,
603
+ 1, 84, :_reduce_none,
604
+ 1, 84, :_reduce_none,
605
+ 1, 84, :_reduce_none,
606
+ 1, 84, :_reduce_none,
607
+ 1, 84, :_reduce_none,
608
+ 1, 84, :_reduce_none,
609
+ 1, 84, :_reduce_none,
610
+ 1, 84, :_reduce_none,
611
+ 1, 84, :_reduce_none,
612
+ 1, 84, :_reduce_none,
613
+ 1, 84, :_reduce_none,
614
+ 1, 84, :_reduce_none,
615
+ 1, 84, :_reduce_none,
616
+ 1, 84, :_reduce_none,
617
+ 1, 85, :_reduce_87,
618
+ 3, 85, :_reduce_88,
619
+ 1, 86, :_reduce_none,
620
+ 3, 86, :_reduce_90,
621
+ 4, 81, :_reduce_91,
622
+ 0, 88, :_reduce_92,
623
+ 2, 88, :_reduce_93,
624
+ 1, 87, :_reduce_94,
625
+ 3, 87, :_reduce_95,
626
+ 3, 87, :_reduce_96,
575
627
  1, 82, :_reduce_none,
576
628
  1, 82, :_reduce_none,
577
629
  1, 82, :_reduce_none,
@@ -591,8 +643,8 @@ racc_reduce_table = [
591
643
  1, 83, :_reduce_none,
592
644
  1, 83, :_reduce_none,
593
645
  1, 83, :_reduce_none,
594
- 2, 66, :_reduce_83,
595
- 3, 66, :_reduce_84,
646
+ 2, 66, :_reduce_116,
647
+ 3, 66, :_reduce_117,
596
648
  1, 64, :_reduce_none,
597
649
  1, 64, :_reduce_none,
598
650
  1, 64, :_reduce_none,
@@ -602,117 +654,135 @@ racc_reduce_table = [
602
654
  1, 74, :_reduce_none,
603
655
  1, 74, :_reduce_none ]
604
656
 
605
- racc_reduce_n = 93
657
+ racc_reduce_n = 126
606
658
 
607
- racc_shift_n = 151
659
+ racc_shift_n = 184
608
660
 
609
661
  racc_action_table = [
610
- 74, 126, 77, 47, 43, 74, 83, 77, 43, 50,
611
- 25, 134, 14, 25, 16, 1, 38, 85, 6, 43,
612
- 52, 48, 75, 76, 78, 19, 20, 19, 20, 137,
613
- 88, 133, 137, 56, 57, 58, 56, 57, 58, 19,
614
- 20, 107, 35, 72, 73, 75, 76, 78, 72, 73,
615
- 75, 76, 78, 109, 94, 96, 98, 99, 100, 101,
616
- 102, 104, 105, 106, 108, 93, 95, 97, 27, 34,
617
- 4, 7, 110, 11, 67, 111, 14, 33, 16, 1,
618
- 14, 114, 6, 9, 115, 68, 4, 7, 69, 11,
619
- 19, 20, 14, 32, 16, 1, 60, 117, 6, 9,
620
- 63, 118, 14, 75, 76, 78, 119, 61, 75, 76,
621
- 78, 75, 76, 78, 75, 76, 78, 75, 76, 78,
622
- 143, 144, 121, 122, 123, 39, 30, 29, 129, 25,
623
- 24, 132, 23, 40, 136, 22, 141, 142, 40, 43,
624
- 21, 147, 59, 149, 150 ]
662
+ 74, 51, 77, 19, 20, 74, 25, 77, 67, 60,
663
+ 32, 47, 53, 63, 14, 14, 43, 107, 39, 68,
664
+ 61, 38, 69, 50, 54, 56, 110, 170, 106, 109,
665
+ 94, 96, 97, 98, 99, 100, 101, 103, 104, 105,
666
+ 108, 93, 95, 72, 73, 75, 76, 78, 72, 73,
667
+ 75, 76, 78, 123, 111, 131, 134, 43, 141, 48,
668
+ 147, 116, 19, 20, 122, 126, 130, 19, 20, 140,
669
+ 144, 75, 76, 78, 120, 124, 127, 129, 133, 136,
670
+ 139, 143, 146, 115, 118, 119, 121, 125, 128, 132,
671
+ 135, 138, 142, 145, 114, 117, 83, 167, 176, 75,
672
+ 76, 78, 14, 25, 16, 1, 159, 85, 6, 75,
673
+ 76, 78, 75, 76, 78, 19, 20, 166, 50, 54,
674
+ 56, 177, 91, 35, 170, 75, 76, 78, 27, 34,
675
+ 4, 7, 148, 11, 33, 150, 14, 151, 16, 1,
676
+ 153, 154, 6, 9, 4, 7, 155, 11, 156, 43,
677
+ 14, 40, 16, 1, 161, 30, 6, 9, 75, 76,
678
+ 78, 29, 25, 165, 24, 40, 169, 23, 174, 175,
679
+ 22, 43, 21, 180, 59, 182, 183 ]
625
680
 
626
681
  racc_action_check = [
627
- 48, 118, 48, 36, 31, 142, 49, 142, 36, 42,
628
- 133, 130, 49, 144, 49, 49, 26, 49, 49, 37,
629
- 42, 37, 118, 118, 118, 117, 117, 55, 55, 133,
630
- 49, 130, 144, 49, 49, 49, 42, 42, 42, 1,
631
- 1, 55, 23, 48, 48, 48, 48, 48, 142, 142,
632
- 142, 142, 142, 55, 55, 55, 55, 55, 55, 55,
633
- 55, 55, 55, 55, 55, 55, 55, 55, 15, 22,
634
- 15, 15, 63, 15, 46, 69, 15, 21, 15, 15,
635
- 46, 103, 15, 15, 107, 46, 0, 0, 46, 0,
636
- 141, 141, 0, 20, 0, 0, 45, 111, 0, 0,
637
- 45, 112, 45, 121, 121, 121, 113, 45, 119, 119,
638
- 119, 88, 88, 88, 110, 110, 110, 122, 122, 122,
639
- 138, 138, 114, 115, 116, 27, 18, 16, 120, 14,
640
- 11, 125, 9, 131, 132, 7, 136, 137, 29, 44,
641
- 6, 143, 43, 145, 149 ]
682
+ 48, 42, 48, 58, 58, 175, 177, 175, 46, 45,
683
+ 20, 36, 42, 45, 46, 45, 36, 58, 27, 46,
684
+ 45, 26, 46, 42, 42, 42, 63, 177, 58, 58,
685
+ 58, 58, 58, 58, 58, 58, 58, 58, 58, 58,
686
+ 58, 58, 58, 48, 48, 48, 48, 48, 175, 175,
687
+ 175, 175, 175, 102, 69, 102, 102, 37, 102, 37,
688
+ 102, 102, 150, 150, 102, 102, 102, 1, 1, 102,
689
+ 102, 91, 91, 91, 102, 102, 102, 102, 102, 102,
690
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
691
+ 102, 102, 102, 102, 102, 102, 49, 163, 172, 110,
692
+ 110, 110, 49, 166, 49, 49, 151, 49, 49, 154,
693
+ 154, 154, 153, 153, 153, 174, 174, 163, 49, 49,
694
+ 49, 172, 49, 23, 166, 151, 151, 151, 15, 22,
695
+ 15, 15, 107, 15, 21, 111, 15, 112, 15, 15,
696
+ 113, 137, 15, 15, 0, 0, 148, 0, 149, 44,
697
+ 0, 29, 0, 0, 152, 18, 0, 0, 155, 155,
698
+ 155, 16, 14, 158, 11, 164, 165, 9, 169, 170,
699
+ 7, 31, 6, 176, 43, 178, 182 ]
642
700
 
643
701
  racc_action_pointer = [
644
- 84, 33, nil, nil, nil, nil, 134, 131, nil, 126,
645
- nil, 124, nil, nil, 123, 68, 121, nil, 114, nil,
646
- 87, 65, 67, 30, nil, nil, 14, 125, nil, 126,
647
- nil, -3, nil, nil, nil, nil, 1, 12, nil, nil,
648
- nil, nil, 7, 136, 132, 94, 72, nil, -4, 4,
649
- nil, nil, nil, nil, nil, 21, nil, nil, nil, nil,
650
- nil, nil, nil, 63, nil, nil, nil, nil, nil, 69,
702
+ 142, 61, nil, nil, nil, nil, 166, 166, nil, 161,
703
+ nil, 158, nil, nil, 156, 128, 155, nil, 143, nil,
704
+ 4, 122, 127, 111, nil, nil, 19, 18, nil, 139,
705
+ nil, 164, nil, nil, nil, nil, 9, 50, nil, nil,
706
+ nil, nil, -1, 168, 142, 7, 6, nil, -4, 94,
707
+ nil, nil, nil, nil, nil, nil, nil, nil, -3, nil,
708
+ nil, nil, nil, 17, nil, nil, nil, nil, nil, 48,
651
709
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
652
- nil, nil, nil, nil, nil, nil, nil, nil, 62, nil,
653
710
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
654
- nil, nil, nil, 75, nil, nil, nil, 63, nil, nil,
655
- 65, 80, 74, 82, 113, 114, 122, 19, -27, 59,
656
- 126, 54, 68, nil, nil, 113, nil, nil, nil, nil,
657
- 9, 121, 115, 4, nil, nil, 119, 128, 97, nil,
658
- nil, 84, 1, 139, 7, 125, nil, nil, nil, 142,
659
- nil ]
711
+ nil, 22, nil, nil, nil, nil, nil, nil, nil, nil,
712
+ nil, nil, 50, nil, nil, nil, nil, 111, nil, nil,
713
+ 50, 118, 108, 94, nil, nil, nil, nil, nil, nil,
714
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
715
+ nil, nil, nil, nil, nil, nil, nil, 132, nil, nil,
716
+ nil, nil, nil, nil, nil, nil, nil, nil, 137, 146,
717
+ 56, 76, 152, 63, 60, 109, nil, nil, 145, nil,
718
+ nil, nil, nil, 95, 153, 147, 97, nil, nil, 151,
719
+ 160, nil, 75, nil, 109, 1, 171, 0, 157, nil,
720
+ nil, nil, 174, nil ]
660
721
 
661
722
  racc_action_default = [
662
- -93, -93, -3, -4, -10, -5, -93, -93, -6, -93,
663
- -7, -93, -8, -9, -93, -93, -93, -1, -93, -13,
664
- -93, -93, -93, -93, -13, -13, -93, -93, -2, -93,
665
- -19, -83, -13, -25, -11, -32, -93, -93, -15, 151,
666
- -41, -17, -93, -93, -84, -93, -93, -12, -93, -93,
667
- -23, -20, -18, -21, -22, -93, -64, -65, -66, -14,
668
- -29, -24, -27, -93, -26, -28, -35, -36, -31, -93,
669
- -34, -33, -87, -89, -88, -90, -91, -85, -92, -86,
670
- -16, -45, -46, -50, -44, -40, -43, -42, -93, -48,
671
- -47, -49, -82, -79, -68, -80, -69, -81, -70, -71,
672
- -72, -73, -74, -93, -75, -76, -77, -93, -78, -67,
673
- -93, -93, -61, -59, -93, -93, -93, -38, -93, -93,
674
- -93, -93, -93, -30, -39, -93, -63, -62, -60, -58,
675
- -93, -93, -93, -93, -52, -51, -93, -93, -93, -56,
676
- -54, -38, -93, -93, -93, -93, -57, -53, -55, -93,
677
- -37 ]
723
+ -126, -126, -3, -4, -10, -5, -126, -126, -6, -126,
724
+ -7, -126, -8, -9, -126, -126, -126, -1, -126, -13,
725
+ -126, -126, -126, -126, -13, -13, -126, -126, -2, -126,
726
+ -19, -116, -13, -25, -11, -32, -126, -126, -15, 184,
727
+ -41, -17, -126, -126, -117, -126, -126, -12, -126, -126,
728
+ -97, -23, -20, -18, -98, -21, -99, -22, -126, -14,
729
+ -29, -24, -27, -126, -26, -28, -35, -36, -31, -126,
730
+ -34, -33, -120, -122, -121, -123, -124, -118, -125, -119,
731
+ -16, -45, -46, -50, -44, -40, -43, -42, -48, -47,
732
+ -49, -126, -115, -113, -102, -114, -103, -104, -105, -106,
733
+ -107, -108, -126, -109, -110, -111, -100, -126, -112, -101,
734
+ -126, -126, -94, -92, -85, -74, -62, -86, -75, -76,
735
+ -55, -77, -63, -58, -56, -78, -64, -57, -79, -68,
736
+ -65, -59, -80, -69, -54, -81, -70, -126, -82, -71,
737
+ -66, -60, -83, -72, -67, -84, -73, -61, -126, -126,
738
+ -38, -126, -126, -126, -126, -126, -30, -39, -126, -96,
739
+ -95, -91, -93, -126, -126, -126, -126, -52, -51, -126,
740
+ -126, -89, -126, -87, -38, -126, -126, -126, -126, -90,
741
+ -53, -88, -126, -37 ]
678
742
 
679
743
  racc_goto_table = [
680
- 41, 80, 18, 112, 113, 125, 17, 31, 140, 54,
681
- 53, 45, 36, 37, 62, 70, 89, 86, 91, 148,
682
- 44, 28, 42, 26, 51, 116, 64, 65, 84, 145,
683
- 46, 71, 66, 127, 112, 128, 130, 131, 82, 49,
684
- 87, 90, 103, 138, 81, 15, 120, nil, nil, nil,
685
- nil, nil, nil, nil, nil, nil, 92, nil, nil, nil,
744
+ 41, 80, 112, 18, 158, 113, 31, 17, 57, 173,
745
+ 55, 36, 37, 64, 42, 88, 26, 86, 45, 44,
746
+ 181, 149, 28, 62, 70, 52, 65, 90, 178, 84,
747
+ 46, 71, 66, 82, 49, 87, 89, 102, 137, 172,
748
+ 81, 15, 152, nil, nil, nil, nil, nil, nil, nil,
749
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
750
+ 92, nil, 160, nil, 112, 163, 164, 162, nil, nil,
751
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
686
752
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
687
753
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
688
754
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
689
- nil, nil, nil, nil, nil, 146, nil, nil, nil, nil,
690
- nil, nil, 135 ]
755
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
756
+ nil, nil, nil, nil, nil, nil, nil, nil, 179, nil,
757
+ nil, nil, nil, nil, nil, 168 ]
691
758
 
692
759
  racc_goto_check = [
693
- 13, 12, 14, 22, 34, 26, 2, 10, 33, 18,
694
- 17, 19, 10, 10, 8, 8, 18, 17, 8, 33,
695
- 10, 2, 15, 11, 16, 22, 20, 21, 5, 26,
696
- 23, 24, 25, 22, 22, 34, 22, 22, 4, 27,
697
- 28, 29, 31, 32, 3, 1, 35, nil, nil, nil,
698
- nil, nil, nil, nil, nil, nil, 14, nil, nil, nil,
760
+ 13, 12, 22, 14, 26, 35, 10, 2, 18, 34,
761
+ 17, 10, 10, 20, 15, 18, 11, 17, 19, 10,
762
+ 34, 22, 2, 8, 8, 16, 21, 8, 26, 5,
763
+ 23, 24, 25, 4, 27, 28, 29, 31, 32, 33,
764
+ 3, 1, 36, nil, nil, nil, nil, nil, nil, nil,
765
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
766
+ 14, nil, 22, nil, 22, 22, 22, 35, nil, nil,
767
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
768
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
699
769
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
700
770
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
701
771
  nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
702
- nil, nil, nil, nil, nil, 12, nil, nil, nil, nil,
703
- nil, nil, 13 ]
772
+ nil, nil, nil, nil, nil, nil, nil, nil, 12, nil,
773
+ nil, nil, nil, nil, nil, 13 ]
704
774
 
705
775
  racc_goto_pointer = [
706
- nil, 45, 6, -5, -11, -21, nil, nil, -31, nil,
707
- -12, 9, -47, -29, 1, -8, -18, -32, -33, -22,
708
- -19, -18, -85, -5, -15, -14, -112, -1, -9, -8,
709
- nil, -13, -90, -125, -84, -67 ]
776
+ nil, 41, 7, -9, -16, -20, nil, nil, -22, nil,
777
+ -13, 2, -47, -29, 2, -16, -17, -32, -34, -15,
778
+ -32, -19, -89, -5, -15, -14, -146, -6, -14, -13,
779
+ nil, -21, -64, -127, -157, -86, -71 ]
710
780
 
711
781
  racc_goto_default = [
712
782
  nil, nil, nil, 2, 3, 5, 8, 10, 12, 13,
713
- nil, 139, nil, nil, 124, nil, nil, nil, nil, nil,
783
+ nil, 171, nil, nil, 157, nil, nil, nil, nil, nil,
714
784
  nil, nil, 79, nil, nil, nil, nil, nil, nil, nil,
715
- 55, nil, nil, nil, nil, nil ]
785
+ 58, nil, nil, nil, nil, nil, nil ]
716
786
 
717
787
  racc_token_table = {
718
788
  false => 0,
@@ -739,29 +809,29 @@ racc_token_table = {
739
809
  :CAMEL_IDENT => 21,
740
810
  "[" => 22,
741
811
  "]" => 23,
742
- "," => 24,
743
- "default" => 25,
744
- "extensions" => 26,
745
- "to" => 27,
746
- "max" => 28,
747
- "required" => 29,
748
- "optional" => 30,
749
- "repeated" => 31,
750
- "double" => 32,
751
- "float" => 33,
752
- "int32" => 34,
753
- "int64" => 35,
754
- "uint32" => 36,
755
- "uint64" => 37,
756
- "sint32" => 38,
757
- "sint64" => 39,
758
- "fixed32" => 40,
759
- "fixed64" => 41,
760
- "sfixed32" => 42,
761
- "sfixed64" => 43,
762
- "bool" => 44,
763
- "string" => 45,
764
- "bytes" => 46,
812
+ "required" => 24,
813
+ "optional" => 25,
814
+ "repeated" => 26,
815
+ "default" => 27,
816
+ "extensions" => 28,
817
+ "to" => 29,
818
+ "max" => 30,
819
+ "double" => 31,
820
+ "float" => 32,
821
+ "int32" => 33,
822
+ "int64" => 34,
823
+ "uint32" => 35,
824
+ "uint64" => 36,
825
+ "sint32" => 37,
826
+ "sint64" => 38,
827
+ "fixed32" => 39,
828
+ "fixed64" => 40,
829
+ "sfixed32" => 41,
830
+ "sfixed64" => 42,
831
+ "bool" => 43,
832
+ "string" => 44,
833
+ "bytes" => 45,
834
+ "," => 46,
765
835
  :FLOAT_LITERAL => 47,
766
836
  :BOOLEAN_LITERAL => 48,
767
837
  :DEC_INTEGER => 49,
@@ -813,14 +883,13 @@ Racc_token_to_s_table = [
813
883
  'CAMEL_IDENT',
814
884
  '"["',
815
885
  '"]"',
816
- '","',
886
+ '"required"',
887
+ '"optional"',
888
+ '"repeated"',
817
889
  '"default"',
818
890
  '"extensions"',
819
891
  '"to"',
820
892
  '"max"',
821
- '"required"',
822
- '"optional"',
823
- '"repeated"',
824
893
  '"double"',
825
894
  '"float"',
826
895
  '"int32"',
@@ -836,6 +905,7 @@ Racc_token_to_s_table = [
836
905
  '"bool"',
837
906
  '"string"',
838
907
  '"bytes"',
908
+ '","',
839
909
  'FLOAT_LITERAL',
840
910
  'BOOLEAN_LITERAL',
841
911
  'DEC_INTEGER',
@@ -873,6 +943,7 @@ Racc_token_to_s_table = [
873
943
  'extensions',
874
944
  'label',
875
945
  'type',
946
+ 'field_name',
876
947
  'field_option_list',
877
948
  'field_option',
878
949
  'extension',
@@ -884,14 +955,14 @@ Racc_debug_parser = false
884
955
 
885
956
  # reduce 0 omitted
886
957
 
887
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 4
958
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 3
888
959
  def _reduce_1( val, _values, result )
889
960
  result = Protobuf::Node::ProtoNode.new val
890
961
  result
891
962
  end
892
963
  .,.,
893
964
 
894
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 6
965
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 5
895
966
  def _reduce_2( val, _values, result )
896
967
  result.children << val[1]
897
968
  result
@@ -914,70 +985,70 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 6
914
985
 
915
986
  # reduce 10 omitted
916
987
 
917
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 19
988
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 18
918
989
  def _reduce_11( val, _values, result )
919
990
  result = Protobuf::Node::ImportNode.new val[1]
920
991
  result
921
992
  end
922
993
  .,.,
923
994
 
924
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 22
995
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 21
925
996
  def _reduce_12( val, _values, result )
926
997
  result = Protobuf::Node::PackageNode.new val[2].unshift(val[1])
927
998
  result
928
999
  end
929
1000
  .,.,
930
1001
 
931
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 25
1002
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 24
932
1003
  def _reduce_13( val, _values, result )
933
1004
  result = []
934
1005
  result
935
1006
  end
936
1007
  .,.,
937
1008
 
938
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 27
1009
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 26
939
1010
  def _reduce_14( val, _values, result )
940
1011
  result << val[2]
941
1012
  result
942
1013
  end
943
1014
  .,.,
944
1015
 
945
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 30
1016
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 29
946
1017
  def _reduce_15( val, _values, result )
947
1018
  result = Protobuf::Node::OptionNode.new(*val[1])
948
1019
  result
949
1020
  end
950
1021
  .,.,
951
1022
 
952
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 33
1023
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 32
953
1024
  def _reduce_16( val, _values, result )
954
1025
  result = [val[1].unshift(val[0]), val[3]]
955
1026
  result
956
1027
  end
957
1028
  .,.,
958
1029
 
959
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 36
1030
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 35
960
1031
  def _reduce_17( val, _values, result )
961
1032
  result = Protobuf::Node::MessageNode.new val[1], val[2]
962
1033
  result
963
1034
  end
964
1035
  .,.,
965
1036
 
966
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 39
1037
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 38
967
1038
  def _reduce_18( val, _values, result )
968
1039
  result = Protobuf::Node::ExtendNode.new val[1], val[3]
969
1040
  result
970
1041
  end
971
1042
  .,.,
972
1043
 
973
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 42
1044
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 41
974
1045
  def _reduce_19( val, _values, result )
975
1046
  result = []
976
1047
  result
977
1048
  end
978
1049
  .,.,
979
1050
 
980
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 44
1051
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 43
981
1052
  def _reduce_20( val, _values, result )
982
1053
  result << val[1]
983
1054
  result
@@ -990,21 +1061,21 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 44
990
1061
 
991
1062
  # reduce 23 omitted
992
1063
 
993
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 52
1064
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 51
994
1065
  def _reduce_24( val, _values, result )
995
1066
  result = Protobuf::Node::EnumNode.new val[1], val[3]
996
1067
  result
997
1068
  end
998
1069
  .,.,
999
1070
 
1000
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 55
1071
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 54
1001
1072
  def _reduce_25( val, _values, result )
1002
1073
  result = []
1003
1074
  result
1004
1075
  end
1005
1076
  .,.,
1006
1077
 
1007
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 57
1078
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 56
1008
1079
  def _reduce_26( val, _values, result )
1009
1080
  result << val[1]
1010
1081
  result
@@ -1017,28 +1088,28 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 57
1017
1088
 
1018
1089
  # reduce 29 omitted
1019
1090
 
1020
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 65
1091
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 64
1021
1092
  def _reduce_30( val, _values, result )
1022
1093
  result = Protobuf::Node::EnumFieldNode.new val[0], val[2]
1023
1094
  result
1024
1095
  end
1025
1096
  .,.,
1026
1097
 
1027
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 68
1098
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 67
1028
1099
  def _reduce_31( val, _values, result )
1029
1100
  result = Protobuf::Node::ServiceNode.new val[1], val[3]
1030
1101
  result
1031
1102
  end
1032
1103
  .,.,
1033
1104
 
1034
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 71
1105
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 70
1035
1106
  def _reduce_32( val, _values, result )
1036
1107
  result = []
1037
1108
  result
1038
1109
  end
1039
1110
  .,.,
1040
1111
 
1041
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 73
1112
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 72
1042
1113
  def _reduce_33( val, _values, result )
1043
1114
  result << val[1]
1044
1115
  result
@@ -1051,7 +1122,7 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 73
1051
1122
 
1052
1123
  # reduce 36 omitted
1053
1124
 
1054
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 81
1125
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 80
1055
1126
  def _reduce_37( val, _values, result )
1056
1127
  result = Protobuf::Node::RpcNode.new val[1], val[3], val[7]
1057
1128
  result
@@ -1062,21 +1133,21 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 81
1062
1133
 
1063
1134
  # reduce 39 omitted
1064
1135
 
1065
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 87
1136
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 86
1066
1137
  def _reduce_40( val, _values, result )
1067
1138
  result = val[1]
1068
1139
  result
1069
1140
  end
1070
1141
  .,.,
1071
1142
 
1072
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 90
1143
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 89
1073
1144
  def _reduce_41( val, _values, result )
1074
1145
  result = []
1075
1146
  result
1076
1147
  end
1077
1148
  .,.,
1078
1149
 
1079
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 92
1150
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 91
1080
1151
  def _reduce_42( val, _values, result )
1081
1152
  result << val[1]
1082
1153
  result
@@ -1099,159 +1170,225 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 92
1099
1170
 
1100
1171
  # reduce 50 omitted
1101
1172
 
1102
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 105
1173
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 104
1103
1174
  def _reduce_51( val, _values, result )
1104
1175
  result = Protobuf::Node::GroupNode.new val[0], val[2], val[4], val[5]
1105
1176
  result
1106
1177
  end
1107
1178
  .,.,
1108
1179
 
1109
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 108
1180
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 107
1110
1181
  def _reduce_52( val, _values, result )
1111
1182
  result = Protobuf::Node::FieldNode.new val[0], val[1], val[2], val[4]
1112
1183
  result
1113
1184
  end
1114
1185
  .,.,
1115
1186
 
1116
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 110
1187
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 109
1117
1188
  def _reduce_53( val, _values, result )
1118
1189
  result = Protobuf::Node::FieldNode.new val[0], val[1], val[2], val[4], val[6]
1119
1190
  result
1120
1191
  end
1121
1192
  .,.,
1122
1193
 
1123
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 113
1124
- def _reduce_54( val, _values, result )
1194
+ # reduce 54 omitted
1195
+
1196
+ # reduce 55 omitted
1197
+
1198
+ # reduce 56 omitted
1199
+
1200
+ # reduce 57 omitted
1201
+
1202
+ # reduce 58 omitted
1203
+
1204
+ # reduce 59 omitted
1205
+
1206
+ # reduce 60 omitted
1207
+
1208
+ # reduce 61 omitted
1209
+
1210
+ # reduce 62 omitted
1211
+
1212
+ # reduce 63 omitted
1213
+
1214
+ # reduce 64 omitted
1215
+
1216
+ # reduce 65 omitted
1217
+
1218
+ # reduce 66 omitted
1219
+
1220
+ # reduce 67 omitted
1221
+
1222
+ # reduce 68 omitted
1223
+
1224
+ # reduce 69 omitted
1225
+
1226
+ # reduce 70 omitted
1227
+
1228
+ # reduce 71 omitted
1229
+
1230
+ # reduce 72 omitted
1231
+
1232
+ # reduce 73 omitted
1233
+
1234
+ # reduce 74 omitted
1235
+
1236
+ # reduce 75 omitted
1237
+
1238
+ # reduce 76 omitted
1239
+
1240
+ # reduce 77 omitted
1241
+
1242
+ # reduce 78 omitted
1243
+
1244
+ # reduce 79 omitted
1245
+
1246
+ # reduce 80 omitted
1247
+
1248
+ # reduce 81 omitted
1249
+
1250
+ # reduce 82 omitted
1251
+
1252
+ # reduce 83 omitted
1253
+
1254
+ # reduce 84 omitted
1255
+
1256
+ # reduce 85 omitted
1257
+
1258
+ # reduce 86 omitted
1259
+
1260
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 114
1261
+ def _reduce_87( val, _values, result )
1125
1262
  result = val
1126
1263
  result
1127
1264
  end
1128
1265
  .,.,
1129
1266
 
1130
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 115
1131
- def _reduce_55( val, _values, result )
1267
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 116
1268
+ def _reduce_88( val, _values, result )
1132
1269
  result << val[2]
1133
1270
  result
1134
1271
  end
1135
1272
  .,.,
1136
1273
 
1137
- # reduce 56 omitted
1274
+ # reduce 89 omitted
1138
1275
 
1139
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 119
1140
- def _reduce_57( val, _values, result )
1276
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 120
1277
+ def _reduce_90( val, _values, result )
1141
1278
  result = [:default, val[2]]
1142
1279
  result
1143
1280
  end
1144
1281
  .,.,
1145
1282
 
1146
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 122
1147
- def _reduce_58( val, _values, result )
1283
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 123
1284
+ def _reduce_91( val, _values, result )
1148
1285
  result = Protobuf::Node::ExtensionsNode.new val[2].unshift(val[1])
1149
1286
  result
1150
1287
  end
1151
1288
  .,.,
1152
1289
 
1153
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 125
1154
- def _reduce_59( val, _values, result )
1290
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 126
1291
+ def _reduce_92( val, _values, result )
1155
1292
  result = []
1156
1293
  result
1157
1294
  end
1158
1295
  .,.,
1159
1296
 
1160
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 127
1161
- def _reduce_60( val, _values, result )
1297
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 128
1298
+ def _reduce_93( val, _values, result )
1162
1299
  result << val[1]
1163
1300
  result
1164
1301
  end
1165
1302
  .,.,
1166
1303
 
1167
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 130
1168
- def _reduce_61( val, _values, result )
1304
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 131
1305
+ def _reduce_94( val, _values, result )
1169
1306
  result = Protobuf::Node::ExtensionRangeNode.new val[0]
1170
1307
  result
1171
1308
  end
1172
1309
  .,.,
1173
1310
 
1174
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 132
1175
- def _reduce_62( val, _values, result )
1311
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 133
1312
+ def _reduce_95( val, _values, result )
1176
1313
  result = Protobuf::Node::ExtensionRangeNode.new val[0], val[2]
1177
1314
  result
1178
1315
  end
1179
1316
  .,.,
1180
1317
 
1181
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 134
1182
- def _reduce_63( val, _values, result )
1318
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 135
1319
+ def _reduce_96( val, _values, result )
1183
1320
  result = Protobuf::Node::ExtensionRangeNode.new val[0], :max
1184
1321
  result
1185
1322
  end
1186
1323
  .,.,
1187
1324
 
1188
- # reduce 64 omitted
1325
+ # reduce 97 omitted
1189
1326
 
1190
- # reduce 65 omitted
1327
+ # reduce 98 omitted
1191
1328
 
1192
- # reduce 66 omitted
1329
+ # reduce 99 omitted
1193
1330
 
1194
- # reduce 67 omitted
1331
+ # reduce 100 omitted
1195
1332
 
1196
- # reduce 68 omitted
1333
+ # reduce 101 omitted
1197
1334
 
1198
- # reduce 69 omitted
1335
+ # reduce 102 omitted
1199
1336
 
1200
- # reduce 70 omitted
1337
+ # reduce 103 omitted
1201
1338
 
1202
- # reduce 71 omitted
1339
+ # reduce 104 omitted
1203
1340
 
1204
- # reduce 72 omitted
1341
+ # reduce 105 omitted
1205
1342
 
1206
- # reduce 73 omitted
1343
+ # reduce 106 omitted
1207
1344
 
1208
- # reduce 74 omitted
1345
+ # reduce 107 omitted
1209
1346
 
1210
- # reduce 75 omitted
1347
+ # reduce 108 omitted
1211
1348
 
1212
- # reduce 76 omitted
1349
+ # reduce 109 omitted
1213
1350
 
1214
- # reduce 77 omitted
1351
+ # reduce 110 omitted
1215
1352
 
1216
- # reduce 78 omitted
1353
+ # reduce 111 omitted
1217
1354
 
1218
- # reduce 79 omitted
1355
+ # reduce 112 omitted
1219
1356
 
1220
- # reduce 80 omitted
1357
+ # reduce 113 omitted
1221
1358
 
1222
- # reduce 81 omitted
1359
+ # reduce 114 omitted
1223
1360
 
1224
- # reduce 82 omitted
1361
+ # reduce 115 omitted
1225
1362
 
1226
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 145
1227
- def _reduce_83( val, _values, result )
1363
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 146
1364
+ def _reduce_116( val, _values, result )
1228
1365
  result = val[1].unshift(val[0])
1229
1366
  result
1230
1367
  end
1231
1368
  .,.,
1232
1369
 
1233
- module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 147
1234
- def _reduce_84( val, _values, result )
1370
+ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 148
1371
+ def _reduce_117( val, _values, result )
1235
1372
  result = val[1].unshift(val[0])
1236
1373
  result
1237
1374
  end
1238
1375
  .,.,
1239
1376
 
1240
- # reduce 85 omitted
1377
+ # reduce 118 omitted
1241
1378
 
1242
- # reduce 86 omitted
1379
+ # reduce 119 omitted
1243
1380
 
1244
- # reduce 87 omitted
1381
+ # reduce 120 omitted
1245
1382
 
1246
- # reduce 88 omitted
1383
+ # reduce 121 omitted
1247
1384
 
1248
- # reduce 89 omitted
1385
+ # reduce 122 omitted
1249
1386
 
1250
- # reduce 90 omitted
1387
+ # reduce 123 omitted
1251
1388
 
1252
- # reduce 91 omitted
1389
+ # reduce 124 omitted
1253
1390
 
1254
- # reduce 92 omitted
1391
+ # reduce 125 omitted
1255
1392
 
1256
1393
  def _reduce_none( val, _values, result )
1257
1394
  result