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.
- data/History.txt +7 -2
- data/Manifest.txt +74 -0
- data/README.txt +1 -1
- data/Rakefile +5 -5
- data/bin/rprotoc +25 -10
- data/{test/proto → examples}/addressbook.pb.rb +1 -14
- data/examples/addressbook.proto +24 -0
- data/examples/reading_a_message.rb +32 -0
- data/examples/writing_a_message.rb +46 -0
- data/lib/protobuf/compiler/compiler.rb +9 -11
- data/lib/protobuf/compiler/nodes.rb +15 -7
- data/lib/protobuf/compiler/proto.y +56 -36
- data/lib/protobuf/compiler/proto_parser.rb +373 -236
- data/lib/protobuf/compiler/visitors.rb +5 -1
- data/lib/protobuf/descriptor/enum_descriptor.rb +1 -1
- data/lib/protobuf/message/decoder.rb +12 -19
- data/lib/protobuf/message/encoder.rb +5 -2
- data/lib/protobuf/message/enum.rb +1 -1
- data/lib/protobuf/message/field.rb +302 -298
- data/lib/protobuf/message/message.rb +63 -35
- data/lib/ruby_protobuf.rb +1 -1
- data/{bin → script}/mk_parser +0 -0
- data/test/merge.rb +1 -1
- data/test/proto/types.proto +20 -0
- data/test/test_addressbook.rb +1 -0
- data/test/test_compiler.rb +21 -7
- data/test/test_message.rb +19 -0
- data/test/test_optional_field.rb +80 -0
- data/test/test_repeated_types.rb +106 -0
- data/test/test_serialize.rb +34 -0
- data/test/test_standard_message.rb +10 -0
- data/test/test_types.rb +49 -4
- data/test/types.rb +23 -2
- metadata +22 -20
- data/lib/protobuf/compiler/compiler_old.rb +0 -123
- data/test/proto/addressbook.rb +0 -69
- data/test/proto/bool_default.pb.rb +0 -16
- data/test/proto/bool_default.proto +0 -3
- 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..
|
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..
|
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..
|
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
|
-
@
|
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
|
-
|
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
|
-
|
513
|
+
yield [false, nil]
|
501
514
|
end
|
502
515
|
|
503
|
-
def
|
504
|
-
|
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..
|
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, :
|
566
|
-
|
567
|
-
1,
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
1,
|
573
|
-
|
574
|
-
|
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, :
|
595
|
-
3, 66, :
|
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 =
|
657
|
+
racc_reduce_n = 126
|
606
658
|
|
607
|
-
racc_shift_n =
|
659
|
+
racc_shift_n = 184
|
608
660
|
|
609
661
|
racc_action_table = [
|
610
|
-
74,
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
75, 76, 78,
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
78, 75, 76, 78,
|
622
|
-
|
623
|
-
|
624
|
-
|
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,
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
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
|
-
|
645
|
-
nil,
|
646
|
-
|
647
|
-
nil,
|
648
|
-
nil, nil,
|
649
|
-
nil, nil, nil, nil, nil,
|
650
|
-
nil, nil, nil,
|
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,
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
nil,
|
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
|
-
|
663
|
-
-7,
|
664
|
-
|
665
|
-
-19,
|
666
|
-
-41, -17,
|
667
|
-
-23, -20, -18, -
|
668
|
-
-29, -24, -27,
|
669
|
-
-34, -33,
|
670
|
-
-16, -45, -46, -50, -44, -40, -43, -42, -
|
671
|
-
-
|
672
|
-
|
673
|
-
|
674
|
-
-
|
675
|
-
-
|
676
|
-
-
|
677
|
-
-
|
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,
|
681
|
-
|
682
|
-
|
683
|
-
46, 71, 66,
|
684
|
-
|
685
|
-
nil, nil, nil, 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,
|
690
|
-
nil, nil,
|
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,
|
694
|
-
17,
|
695
|
-
|
696
|
-
23, 24, 25,
|
697
|
-
|
698
|
-
nil, nil, nil, 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,
|
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,
|
707
|
-
-
|
708
|
-
-
|
709
|
-
nil, -
|
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,
|
783
|
+
nil, 171, nil, nil, 157, nil, nil, nil, nil, nil,
|
714
784
|
nil, nil, 79, nil, nil, nil, nil, nil, nil, nil,
|
715
|
-
|
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
|
-
"
|
743
|
-
"
|
744
|
-
"
|
745
|
-
"
|
746
|
-
"
|
747
|
-
"
|
748
|
-
"
|
749
|
-
"
|
750
|
-
"
|
751
|
-
"
|
752
|
-
"
|
753
|
-
"
|
754
|
-
"
|
755
|
-
"
|
756
|
-
"
|
757
|
-
"
|
758
|
-
"
|
759
|
-
"
|
760
|
-
"
|
761
|
-
"
|
762
|
-
"
|
763
|
-
"
|
764
|
-
"
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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',
|
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
|
-
|
1124
|
-
|
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',
|
1131
|
-
def
|
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
|
1274
|
+
# reduce 89 omitted
|
1138
1275
|
|
1139
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1140
|
-
def
|
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',
|
1147
|
-
def
|
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',
|
1154
|
-
def
|
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',
|
1161
|
-
def
|
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',
|
1168
|
-
def
|
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',
|
1175
|
-
def
|
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',
|
1182
|
-
def
|
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
|
1325
|
+
# reduce 97 omitted
|
1189
1326
|
|
1190
|
-
# reduce
|
1327
|
+
# reduce 98 omitted
|
1191
1328
|
|
1192
|
-
# reduce
|
1329
|
+
# reduce 99 omitted
|
1193
1330
|
|
1194
|
-
# reduce
|
1331
|
+
# reduce 100 omitted
|
1195
1332
|
|
1196
|
-
# reduce
|
1333
|
+
# reduce 101 omitted
|
1197
1334
|
|
1198
|
-
# reduce
|
1335
|
+
# reduce 102 omitted
|
1199
1336
|
|
1200
|
-
# reduce
|
1337
|
+
# reduce 103 omitted
|
1201
1338
|
|
1202
|
-
# reduce
|
1339
|
+
# reduce 104 omitted
|
1203
1340
|
|
1204
|
-
# reduce
|
1341
|
+
# reduce 105 omitted
|
1205
1342
|
|
1206
|
-
# reduce
|
1343
|
+
# reduce 106 omitted
|
1207
1344
|
|
1208
|
-
# reduce
|
1345
|
+
# reduce 107 omitted
|
1209
1346
|
|
1210
|
-
# reduce
|
1347
|
+
# reduce 108 omitted
|
1211
1348
|
|
1212
|
-
# reduce
|
1349
|
+
# reduce 109 omitted
|
1213
1350
|
|
1214
|
-
# reduce
|
1351
|
+
# reduce 110 omitted
|
1215
1352
|
|
1216
|
-
# reduce
|
1353
|
+
# reduce 111 omitted
|
1217
1354
|
|
1218
|
-
# reduce
|
1355
|
+
# reduce 112 omitted
|
1219
1356
|
|
1220
|
-
# reduce
|
1357
|
+
# reduce 113 omitted
|
1221
1358
|
|
1222
|
-
# reduce
|
1359
|
+
# reduce 114 omitted
|
1223
1360
|
|
1224
|
-
# reduce
|
1361
|
+
# reduce 115 omitted
|
1225
1362
|
|
1226
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1227
|
-
def
|
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',
|
1234
|
-
def
|
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
|
1377
|
+
# reduce 118 omitted
|
1241
1378
|
|
1242
|
-
# reduce
|
1379
|
+
# reduce 119 omitted
|
1243
1380
|
|
1244
|
-
# reduce
|
1381
|
+
# reduce 120 omitted
|
1245
1382
|
|
1246
|
-
# reduce
|
1383
|
+
# reduce 121 omitted
|
1247
1384
|
|
1248
|
-
# reduce
|
1385
|
+
# reduce 122 omitted
|
1249
1386
|
|
1250
|
-
# reduce
|
1387
|
+
# reduce 123 omitted
|
1251
1388
|
|
1252
|
-
# reduce
|
1389
|
+
# reduce 124 omitted
|
1253
1390
|
|
1254
|
-
# reduce
|
1391
|
+
# reduce 125 omitted
|
1255
1392
|
|
1256
1393
|
def _reduce_none( val, _values, result )
|
1257
1394
|
result
|