ruby_protobuf 0.4.5 → 0.4.6
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 +9 -2
- data/VERSION +1 -1
- data/lib/protobuf/common/wire_type.rb +2 -0
- data/lib/protobuf/compiler/nodes.rb +6 -0
- data/lib/protobuf/compiler/proto.y +5 -2
- data/lib/protobuf/compiler/proto_parser.rb +385 -366
- data/lib/protobuf/message/decoder.rb +31 -16
- data/lib/protobuf/message/encoder.rb +1 -0
- data/lib/protobuf/message/field.rb +12 -37
- data/lib/protobuf/message/message.rb +37 -97
- data/test/proto/merge.pb.rb +6 -6
- data/test/proto/merge.proto +3 -3
- data/test/test_enum_value.rb +3 -2
- data/test/test_extension.rb +1 -1
- data/test/test_message.rb +30 -24
- data/test/test_packed_field.rb +5 -0
- metadata +24 -29
- data/test/proto/address_book_service.rb +0 -31
- data/test/proto/client_add.rb +0 -18
- data/test/proto/client_search.rb +0 -18
- data/test/proto/float_default.pb.rb +0 -28
- data/test/proto/rpc.pb.rb +0 -16
@@ -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..id57af5bfae3', '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..id57af5bfae3
|
457
457
|
end
|
458
458
|
###### racc/parser.rb end
|
459
459
|
|
@@ -462,7 +462,7 @@ 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..idf83c19ba1e', 'lib/protobuf/compiler/proto.y', 161
|
466
466
|
|
467
467
|
require 'strscan'
|
468
468
|
|
@@ -486,7 +486,7 @@ module_eval <<'..end lib/protobuf/compiler/proto.y modeval..ida0eea88ba4', 'lib/
|
|
486
486
|
when match(/\/\*/)
|
487
487
|
# C-like comment
|
488
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/)
|
489
|
+
when match(/(?:required|optional|repeated|import|package|option|message|extend|enum|service|syntax|rpc|returns|group|default|extensions|to|max|double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/)
|
490
490
|
yield [@token, @token.to_sym]
|
491
491
|
when match(/[+-]?\d*\.\d+([Ee][\+-]?\d+)?/)
|
492
492
|
yield [:FLOAT_LITERAL, @token.to_f]
|
@@ -520,267 +520,272 @@ module_eval <<'..end lib/protobuf/compiler/proto.y modeval..ida0eea88ba4', 'lib/
|
|
520
520
|
end
|
521
521
|
false
|
522
522
|
end
|
523
|
-
..end lib/protobuf/compiler/proto.y modeval..
|
523
|
+
..end lib/protobuf/compiler/proto.y modeval..idf83c19ba1e
|
524
524
|
|
525
525
|
##### racc 1.4.5 generates ###
|
526
526
|
|
527
527
|
racc_reduce_table = [
|
528
528
|
0, 0, :racc_error,
|
529
|
-
1,
|
530
|
-
2,
|
531
|
-
1,
|
532
|
-
1,
|
533
|
-
1,
|
534
|
-
1,
|
535
|
-
1,
|
536
|
-
1,
|
537
|
-
1,
|
538
|
-
1,
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
3,
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
1,
|
551
|
-
1,
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
1,
|
557
|
-
1,
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
1, 75, :_reduce_none,
|
564
|
-
1, 75, :_reduce_36,
|
565
|
-
10, 76, :_reduce_37,
|
566
|
-
0, 77, :_reduce_none,
|
529
|
+
1, 53, :_reduce_1,
|
530
|
+
2, 53, :_reduce_2,
|
531
|
+
1, 54, :_reduce_none,
|
532
|
+
1, 54, :_reduce_none,
|
533
|
+
1, 54, :_reduce_none,
|
534
|
+
1, 54, :_reduce_none,
|
535
|
+
1, 54, :_reduce_none,
|
536
|
+
1, 54, :_reduce_none,
|
537
|
+
1, 54, :_reduce_none,
|
538
|
+
1, 54, :_reduce_none,
|
539
|
+
1, 54, :_reduce_11,
|
540
|
+
3, 58, :_reduce_12,
|
541
|
+
4, 59, :_reduce_13,
|
542
|
+
0, 63, :_reduce_14,
|
543
|
+
3, 63, :_reduce_15,
|
544
|
+
3, 60, :_reduce_16,
|
545
|
+
4, 64, :_reduce_17,
|
546
|
+
3, 55, :_reduce_18,
|
547
|
+
5, 56, :_reduce_19,
|
548
|
+
0, 68, :_reduce_20,
|
549
|
+
2, 68, :_reduce_21,
|
550
|
+
1, 69, :_reduce_none,
|
551
|
+
1, 69, :_reduce_none,
|
552
|
+
1, 69, :_reduce_24,
|
553
|
+
5, 57, :_reduce_25,
|
554
|
+
0, 72, :_reduce_26,
|
555
|
+
2, 72, :_reduce_27,
|
556
|
+
1, 73, :_reduce_none,
|
557
|
+
1, 73, :_reduce_none,
|
558
|
+
1, 73, :_reduce_30,
|
559
|
+
4, 74, :_reduce_31,
|
560
|
+
5, 61, :_reduce_32,
|
561
|
+
0, 76, :_reduce_33,
|
562
|
+
2, 76, :_reduce_34,
|
567
563
|
1, 77, :_reduce_none,
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
1, 79, :_reduce_none,
|
574
|
-
1, 79, :_reduce_none,
|
575
|
-
1, 79, :_reduce_none,
|
576
|
-
1, 79, :_reduce_none,
|
564
|
+
1, 77, :_reduce_none,
|
565
|
+
1, 77, :_reduce_37,
|
566
|
+
4, 62, :_reduce_38,
|
567
|
+
10, 78, :_reduce_39,
|
568
|
+
0, 79, :_reduce_none,
|
577
569
|
1, 79, :_reduce_none,
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
9, 68, :_reduce_53,
|
582
|
-
1, 83, :_reduce_none,
|
583
|
-
1, 83, :_reduce_none,
|
584
|
-
1, 83, :_reduce_none,
|
585
|
-
1, 83, :_reduce_none,
|
586
|
-
1, 83, :_reduce_none,
|
587
|
-
1, 83, :_reduce_none,
|
588
|
-
1, 83, :_reduce_none,
|
589
|
-
1, 83, :_reduce_none,
|
590
|
-
1, 83, :_reduce_none,
|
591
|
-
1, 83, :_reduce_none,
|
592
|
-
1, 83, :_reduce_none,
|
593
|
-
1, 83, :_reduce_none,
|
594
|
-
1, 83, :_reduce_none,
|
595
|
-
1, 83, :_reduce_none,
|
596
|
-
1, 83, :_reduce_none,
|
597
|
-
1, 83, :_reduce_none,
|
598
|
-
1, 83, :_reduce_none,
|
599
|
-
1, 83, :_reduce_none,
|
600
|
-
1, 83, :_reduce_none,
|
601
|
-
1, 83, :_reduce_none,
|
602
|
-
1, 83, :_reduce_none,
|
603
|
-
1, 83, :_reduce_none,
|
604
|
-
1, 83, :_reduce_none,
|
605
|
-
1, 83, :_reduce_none,
|
606
|
-
1, 83, :_reduce_none,
|
607
|
-
1, 83, :_reduce_none,
|
608
|
-
1, 83, :_reduce_none,
|
609
|
-
1, 83, :_reduce_none,
|
610
|
-
1, 83, :_reduce_none,
|
611
|
-
1, 83, :_reduce_none,
|
612
|
-
1, 83, :_reduce_none,
|
613
|
-
1, 83, :_reduce_none,
|
614
|
-
1, 83, :_reduce_none,
|
615
|
-
1, 84, :_reduce_87,
|
616
|
-
3, 84, :_reduce_88,
|
617
|
-
1, 85, :_reduce_none,
|
618
|
-
3, 85, :_reduce_90,
|
619
|
-
4, 80, :_reduce_91,
|
620
|
-
0, 87, :_reduce_92,
|
621
|
-
2, 87, :_reduce_93,
|
622
|
-
1, 86, :_reduce_94,
|
623
|
-
3, 86, :_reduce_95,
|
624
|
-
3, 86, :_reduce_96,
|
570
|
+
3, 66, :_reduce_42,
|
571
|
+
0, 80, :_reduce_43,
|
572
|
+
2, 80, :_reduce_44,
|
625
573
|
1, 81, :_reduce_none,
|
626
574
|
1, 81, :_reduce_none,
|
627
575
|
1, 81, :_reduce_none,
|
628
|
-
1,
|
629
|
-
1,
|
630
|
-
1,
|
631
|
-
1,
|
632
|
-
1,
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
1,
|
637
|
-
1,
|
638
|
-
1,
|
639
|
-
1,
|
640
|
-
1,
|
641
|
-
1,
|
642
|
-
1,
|
643
|
-
1,
|
644
|
-
|
645
|
-
|
646
|
-
1,
|
647
|
-
1,
|
648
|
-
1,
|
649
|
-
1,
|
650
|
-
1,
|
651
|
-
1,
|
652
|
-
1,
|
653
|
-
1,
|
576
|
+
1, 81, :_reduce_none,
|
577
|
+
1, 81, :_reduce_none,
|
578
|
+
1, 81, :_reduce_none,
|
579
|
+
1, 81, :_reduce_none,
|
580
|
+
1, 81, :_reduce_52,
|
581
|
+
6, 71, :_reduce_53,
|
582
|
+
6, 70, :_reduce_54,
|
583
|
+
9, 70, :_reduce_55,
|
584
|
+
1, 85, :_reduce_none,
|
585
|
+
1, 85, :_reduce_none,
|
586
|
+
1, 85, :_reduce_none,
|
587
|
+
1, 85, :_reduce_none,
|
588
|
+
1, 85, :_reduce_none,
|
589
|
+
1, 85, :_reduce_none,
|
590
|
+
1, 85, :_reduce_none,
|
591
|
+
1, 85, :_reduce_none,
|
592
|
+
1, 85, :_reduce_none,
|
593
|
+
1, 85, :_reduce_none,
|
594
|
+
1, 85, :_reduce_none,
|
595
|
+
1, 85, :_reduce_none,
|
596
|
+
1, 85, :_reduce_none,
|
597
|
+
1, 85, :_reduce_none,
|
598
|
+
1, 85, :_reduce_none,
|
599
|
+
1, 85, :_reduce_none,
|
600
|
+
1, 85, :_reduce_none,
|
601
|
+
1, 85, :_reduce_none,
|
602
|
+
1, 85, :_reduce_none,
|
603
|
+
1, 85, :_reduce_none,
|
604
|
+
1, 85, :_reduce_none,
|
605
|
+
1, 85, :_reduce_none,
|
606
|
+
1, 85, :_reduce_none,
|
607
|
+
1, 85, :_reduce_none,
|
608
|
+
1, 85, :_reduce_none,
|
609
|
+
1, 85, :_reduce_none,
|
610
|
+
1, 85, :_reduce_none,
|
611
|
+
1, 85, :_reduce_none,
|
612
|
+
1, 85, :_reduce_none,
|
613
|
+
1, 85, :_reduce_none,
|
614
|
+
1, 85, :_reduce_none,
|
615
|
+
1, 85, :_reduce_none,
|
616
|
+
1, 85, :_reduce_none,
|
617
|
+
1, 85, :_reduce_none,
|
618
|
+
1, 86, :_reduce_90,
|
619
|
+
3, 86, :_reduce_91,
|
620
|
+
1, 87, :_reduce_none,
|
621
|
+
3, 87, :_reduce_93,
|
622
|
+
4, 82, :_reduce_94,
|
623
|
+
0, 89, :_reduce_95,
|
624
|
+
2, 89, :_reduce_96,
|
625
|
+
1, 88, :_reduce_97,
|
626
|
+
3, 88, :_reduce_98,
|
627
|
+
3, 88, :_reduce_99,
|
628
|
+
1, 83, :_reduce_none,
|
629
|
+
1, 83, :_reduce_none,
|
630
|
+
1, 83, :_reduce_none,
|
631
|
+
1, 84, :_reduce_none,
|
632
|
+
1, 84, :_reduce_none,
|
633
|
+
1, 84, :_reduce_none,
|
634
|
+
1, 84, :_reduce_none,
|
635
|
+
1, 84, :_reduce_none,
|
636
|
+
1, 84, :_reduce_none,
|
637
|
+
1, 84, :_reduce_none,
|
638
|
+
1, 84, :_reduce_none,
|
639
|
+
1, 84, :_reduce_none,
|
640
|
+
1, 84, :_reduce_none,
|
641
|
+
1, 84, :_reduce_none,
|
642
|
+
1, 84, :_reduce_none,
|
643
|
+
1, 84, :_reduce_none,
|
644
|
+
1, 84, :_reduce_none,
|
645
|
+
1, 84, :_reduce_none,
|
646
|
+
1, 84, :_reduce_none,
|
647
|
+
2, 67, :_reduce_119,
|
648
|
+
3, 67, :_reduce_120,
|
649
|
+
1, 65, :_reduce_none,
|
650
|
+
1, 65, :_reduce_none,
|
651
|
+
1, 65, :_reduce_none,
|
652
|
+
1, 65, :_reduce_none,
|
653
|
+
1, 65, :_reduce_none,
|
654
|
+
1, 75, :_reduce_none,
|
655
|
+
1, 75, :_reduce_none,
|
656
|
+
1, 75, :_reduce_none ]
|
654
657
|
|
655
|
-
racc_reduce_n =
|
658
|
+
racc_reduce_n = 129
|
656
659
|
|
657
|
-
racc_shift_n =
|
660
|
+
racc_shift_n = 190
|
658
661
|
|
659
662
|
racc_action_table = [
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
663
|
+
79, 56, 82, 21, 22, 79, 28, 82, 47, 65,
|
664
|
+
53, 73, 57, 68, 52, 16, 115, 16, 114, 47,
|
665
|
+
66, 64, 74, 55, 58, 60, 76, 176, 111, 113,
|
666
|
+
98, 101, 102, 103, 104, 105, 106, 107, 109, 110,
|
667
|
+
112, 97, 100, 77, 78, 80, 81, 83, 77, 78,
|
668
|
+
80, 81, 83, 128, 51, 136, 140, 47, 145, 45,
|
669
|
+
153, 121, 21, 22, 127, 131, 135, 139, 21, 22,
|
670
|
+
149, 152, 21, 22, 125, 129, 132, 134, 138, 142,
|
671
|
+
144, 148, 151, 120, 123, 124, 126, 130, 133, 137,
|
672
|
+
141, 143, 147, 150, 119, 122, 88, 173, 182, 80,
|
673
|
+
81, 83, 16, 28, 18, 1, 167, 90, 6, 80,
|
674
|
+
81, 83, 80, 81, 83, 43, 47, 172, 55, 58,
|
675
|
+
60, 183, 96, 116, 176, 80, 81, 83, 30, 42,
|
676
|
+
4, 7, 39, 12, 154, 38, 16, 156, 18, 1,
|
677
|
+
158, 159, 6, 9, 11, 4, 7, 160, 12, 161,
|
678
|
+
162, 16, 37, 18, 1, 165, 36, 6, 9, 11,
|
679
|
+
80, 81, 83, 80, 81, 83, 35, 33, 32, 171,
|
680
|
+
28, 45, 175, 27, 180, 181, 26, 25, 24, 186,
|
681
|
+
23, 188, 189 ]
|
678
682
|
|
679
683
|
racc_action_check = [
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
684
|
+
53, 46, 53, 63, 63, 181, 172, 181, 41, 49,
|
685
|
+
41, 50, 46, 49, 40, 49, 68, 50, 63, 40,
|
686
|
+
49, 47, 50, 46, 46, 46, 50, 172, 63, 63,
|
687
|
+
63, 63, 63, 63, 63, 63, 63, 63, 63, 63,
|
688
|
+
63, 63, 63, 53, 53, 53, 53, 53, 181, 181,
|
689
|
+
181, 181, 181, 108, 39, 108, 108, 34, 108, 32,
|
690
|
+
108, 108, 156, 156, 108, 108, 108, 108, 1, 1,
|
691
|
+
108, 108, 180, 180, 108, 108, 108, 108, 108, 108,
|
692
|
+
108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
|
693
|
+
108, 108, 108, 108, 108, 108, 54, 169, 178, 160,
|
694
|
+
160, 160, 54, 183, 54, 54, 159, 54, 54, 96,
|
695
|
+
96, 96, 161, 161, 161, 30, 48, 169, 54, 54,
|
696
|
+
54, 178, 54, 76, 183, 159, 159, 159, 17, 29,
|
697
|
+
17, 17, 26, 17, 114, 25, 17, 116, 17, 17,
|
698
|
+
117, 118, 17, 17, 17, 0, 0, 146, 0, 154,
|
699
|
+
155, 0, 24, 0, 0, 157, 23, 0, 0, 0,
|
700
|
+
115, 115, 115, 158, 158, 158, 22, 20, 18, 164,
|
701
|
+
16, 170, 171, 12, 175, 176, 11, 9, 7, 182,
|
702
|
+
6, 184, 188 ]
|
698
703
|
|
699
704
|
racc_action_pointer = [
|
700
|
-
|
701
|
-
nil,
|
702
|
-
|
703
|
-
|
704
|
-
nil, nil,
|
705
|
-
|
706
|
-
nil, nil, nil, nil,
|
705
|
+
143, 62, nil, nil, nil, nil, 174, 174, nil, 171,
|
706
|
+
nil, 167, 167, nil, nil, nil, 164, 128, 162, nil,
|
707
|
+
155, nil, 160, 144, 150, 123, 128, nil, nil, 127,
|
708
|
+
115, nil, 47, nil, 50, nil, nil, nil, nil, 52,
|
709
|
+
12, 1, nil, nil, nil, nil, -1, 15, 109, 7,
|
710
|
+
9, nil, nil, -4, 94, nil, nil, nil, nil, nil,
|
711
|
+
nil, nil, nil, -3, nil, nil, nil, nil, 7, nil,
|
712
|
+
nil, nil, nil, nil, nil, nil, 117, nil, nil, nil,
|
707
713
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
714
|
+
nil, nil, nil, nil, nil, nil, 60, nil, nil, nil,
|
715
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 50, nil,
|
716
|
+
nil, nil, nil, nil, 128, 111, 119, 94, 112, nil,
|
708
717
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
709
|
-
95, nil, nil, nil, nil, nil, nil, nil, nil, 49,
|
710
|
-
nil, nil, nil, nil, nil, nil, 65, nil, nil, nil,
|
711
|
-
100, 114, 105, 92, nil, nil, nil, nil, nil, nil,
|
712
718
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
713
|
-
nil, nil, nil, nil, nil,
|
714
|
-
nil, nil, nil, nil,
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
nil, nil, 174, nil ]
|
719
|
+
nil, nil, nil, nil, nil, nil, 138, nil, nil, nil,
|
720
|
+
nil, nil, nil, nil, 140, 148, 56, 153, 114, 76,
|
721
|
+
50, 63, nil, nil, 150, nil, nil, nil, nil, 95,
|
722
|
+
159, 152, 0, nil, nil, 156, 166, nil, 75, nil,
|
723
|
+
66, 1, 177, 97, 162, nil, nil, nil, 180, nil ]
|
719
724
|
|
720
725
|
racc_action_default = [
|
721
|
-
-
|
722
|
-
-
|
723
|
-
-
|
724
|
-
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
-
|
729
|
-
|
730
|
-
|
731
|
-
-
|
732
|
-
-
|
733
|
-
-
|
734
|
-
-
|
735
|
-
-
|
736
|
-
-
|
737
|
-
|
738
|
-
-
|
739
|
-
-
|
726
|
+
-129, -129, -3, -4, -11, -5, -129, -129, -6, -129,
|
727
|
+
-7, -129, -129, -8, -9, -10, -129, -129, -129, -1,
|
728
|
+
-129, -14, -129, -129, -129, -129, -129, -14, -14, -129,
|
729
|
+
-129, -2, -129, -20, -119, -14, -26, -12, -33, -129,
|
730
|
+
-129, -129, -16, 190, -18, -43, -129, -129, -120, -129,
|
731
|
+
-129, -38, -13, -129, -129, -100, -24, -19, -101, -21,
|
732
|
+
-102, -22, -23, -129, -15, -30, -25, -28, -129, -27,
|
733
|
+
-29, -34, -36, -37, -32, -35, -129, -123, -125, -124,
|
734
|
+
-126, -127, -121, -128, -122, -17, -47, -48, -52, -46,
|
735
|
+
-42, -45, -44, -51, -50, -49, -129, -116, -105, -118,
|
736
|
+
-117, -106, -107, -108, -109, -110, -111, -112, -129, -113,
|
737
|
+
-114, -103, -115, -104, -129, -129, -129, -95, -97, -88,
|
738
|
+
-77, -64, -89, -78, -79, -57, -80, -65, -60, -58,
|
739
|
+
-81, -66, -59, -82, -71, -67, -61, -83, -72, -68,
|
740
|
+
-56, -84, -73, -85, -74, -62, -129, -86, -75, -69,
|
741
|
+
-87, -76, -70, -63, -129, -129, -40, -129, -129, -129,
|
742
|
+
-129, -129, -31, -41, -129, -94, -96, -99, -98, -129,
|
743
|
+
-129, -129, -129, -54, -53, -129, -129, -92, -129, -90,
|
744
|
+
-40, -129, -129, -129, -129, -93, -55, -91, -129, -39 ]
|
740
745
|
|
741
746
|
racc_goto_table = [
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
+
44, 85, 118, 164, 34, 19, 117, 20, 179, 62,
|
748
|
+
40, 41, 61, 69, 46, 29, 49, 94, 48, 187,
|
749
|
+
91, 155, 31, 67, 75, 59, 70, 184, 93, 89,
|
750
|
+
50, 71, 72, 87, 54, 92, 95, 108, 146, 178,
|
751
|
+
86, 17, 157, nil, nil, nil, nil, nil, nil, nil,
|
747
752
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
748
|
-
nil, nil,
|
753
|
+
nil, nil, nil, nil, 118, 168, 169, 170, 166, 99,
|
749
754
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
750
755
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
751
756
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
752
757
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
753
758
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
754
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
755
|
-
nil, nil, nil, nil, nil,
|
759
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, 185,
|
760
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 174 ]
|
756
761
|
|
757
762
|
racc_goto_check = [
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
3, 1,
|
763
|
+
14, 13, 23, 27, 11, 2, 36, 15, 35, 19,
|
764
|
+
11, 11, 18, 21, 16, 12, 20, 19, 11, 35,
|
765
|
+
18, 23, 2, 8, 8, 17, 22, 27, 8, 5,
|
766
|
+
24, 25, 26, 4, 28, 29, 30, 32, 33, 34,
|
767
|
+
3, 1, 37, nil, nil, nil, nil, nil, nil, nil,
|
763
768
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
764
|
-
nil, nil,
|
769
|
+
nil, nil, nil, nil, 23, 23, 23, 23, 36, 15,
|
765
770
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
766
771
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
767
772
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
768
773
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
769
774
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
770
|
-
nil, nil, nil, nil, nil, nil, nil, nil,
|
771
|
-
nil, nil, nil, nil, nil,
|
775
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, 13,
|
776
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 14 ]
|
772
777
|
|
773
778
|
racc_goto_pointer = [
|
774
|
-
nil, 41,
|
775
|
-
-
|
776
|
-
-36, -
|
777
|
-
nil, -
|
779
|
+
nil, 41, 5, -14, -21, -25, nil, nil, -26, nil,
|
780
|
+
nil, -17, -1, -52, -32, 6, -19, -21, -34, -37,
|
781
|
+
-20, -36, -23, -94, -8, -19, -18, -153, -11, -19,
|
782
|
+
-18, nil, -26, -70, -133, -164, -90, -75 ]
|
778
783
|
|
779
784
|
racc_goto_default = [
|
780
|
-
nil, nil, nil,
|
781
|
-
nil,
|
782
|
-
nil, nil,
|
783
|
-
|
785
|
+
nil, nil, nil, 2, 3, 5, 8, 10, 13, 14,
|
786
|
+
15, nil, 177, nil, nil, 163, nil, nil, nil, nil,
|
787
|
+
nil, nil, nil, 84, nil, nil, nil, nil, nil, nil,
|
788
|
+
nil, 63, nil, nil, nil, nil, nil, nil ]
|
784
789
|
|
785
790
|
racc_token_table = {
|
786
791
|
false => 0,
|
@@ -799,45 +804,46 @@ racc_token_table = {
|
|
799
804
|
"}" => 13,
|
800
805
|
"enum" => 14,
|
801
806
|
"service" => 15,
|
802
|
-
"
|
803
|
-
"
|
804
|
-
"
|
805
|
-
"
|
806
|
-
"
|
807
|
-
"
|
808
|
-
"
|
809
|
-
"
|
810
|
-
"
|
811
|
-
"
|
812
|
-
"
|
813
|
-
"
|
814
|
-
"
|
815
|
-
"
|
816
|
-
"
|
817
|
-
"
|
818
|
-
"
|
819
|
-
"
|
820
|
-
"
|
821
|
-
"
|
822
|
-
"
|
823
|
-
"
|
824
|
-
"
|
825
|
-
"
|
826
|
-
"
|
827
|
-
"
|
828
|
-
"
|
829
|
-
"
|
830
|
-
"
|
831
|
-
"
|
832
|
-
|
833
|
-
:
|
834
|
-
:
|
835
|
-
:
|
836
|
-
:
|
807
|
+
"syntax" => 16,
|
808
|
+
"rpc" => 17,
|
809
|
+
"(" => 18,
|
810
|
+
")" => 19,
|
811
|
+
"returns" => 20,
|
812
|
+
"group" => 21,
|
813
|
+
"[" => 22,
|
814
|
+
"]" => 23,
|
815
|
+
"required" => 24,
|
816
|
+
"optional" => 25,
|
817
|
+
"repeated" => 26,
|
818
|
+
"default" => 27,
|
819
|
+
"extensions" => 28,
|
820
|
+
"to" => 29,
|
821
|
+
"max" => 30,
|
822
|
+
"double" => 31,
|
823
|
+
"float" => 32,
|
824
|
+
"int32" => 33,
|
825
|
+
"int64" => 34,
|
826
|
+
"uint32" => 35,
|
827
|
+
"uint64" => 36,
|
828
|
+
"sint32" => 37,
|
829
|
+
"sint64" => 38,
|
830
|
+
"fixed32" => 39,
|
831
|
+
"fixed64" => 40,
|
832
|
+
"sfixed32" => 41,
|
833
|
+
"sfixed64" => 42,
|
834
|
+
"bool" => 43,
|
835
|
+
"string" => 44,
|
836
|
+
"bytes" => 45,
|
837
|
+
"," => 46,
|
838
|
+
:FLOAT_LITERAL => 47,
|
839
|
+
:BOOLEAN_LITERAL => 48,
|
840
|
+
:DEC_INTEGER => 49,
|
841
|
+
:HEX_INTEGER => 50,
|
842
|
+
:OCT_INTEGER => 51 }
|
837
843
|
|
838
844
|
racc_use_result_var = true
|
839
845
|
|
840
|
-
racc_nt_base =
|
846
|
+
racc_nt_base = 52
|
841
847
|
|
842
848
|
Racc_arg = [
|
843
849
|
racc_action_table,
|
@@ -872,6 +878,7 @@ Racc_token_to_s_table = [
|
|
872
878
|
'"}"',
|
873
879
|
'"enum"',
|
874
880
|
'"service"',
|
881
|
+
'"syntax"',
|
875
882
|
'"rpc"',
|
876
883
|
'"("',
|
877
884
|
'")"',
|
@@ -917,6 +924,7 @@ Racc_token_to_s_table = [
|
|
917
924
|
'package',
|
918
925
|
'option',
|
919
926
|
'service',
|
927
|
+
'syntax',
|
920
928
|
'dot_ident_list',
|
921
929
|
'option_body',
|
922
930
|
'constant',
|
@@ -979,201 +987,206 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 5
|
|
979
987
|
|
980
988
|
# reduce 9 omitted
|
981
989
|
|
982
|
-
|
983
|
-
|
990
|
+
# reduce 10 omitted
|
991
|
+
|
992
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 15
|
993
|
+
def _reduce_11( val, _values, result )
|
984
994
|
result = nil
|
985
995
|
result
|
986
996
|
end
|
987
997
|
.,.,
|
988
998
|
|
989
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
990
|
-
def
|
999
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 18
|
1000
|
+
def _reduce_12( val, _values, result )
|
991
1001
|
result = Protobuf::Node::ImportNode.new(val[1])
|
992
1002
|
result
|
993
1003
|
end
|
994
1004
|
.,.,
|
995
1005
|
|
996
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
997
|
-
def
|
1006
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 21
|
1007
|
+
def _reduce_13( val, _values, result )
|
998
1008
|
result = Protobuf::Node::PackageNode.new(val[2].unshift(val[1]))
|
999
1009
|
result
|
1000
1010
|
end
|
1001
1011
|
.,.,
|
1002
1012
|
|
1003
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1004
|
-
def
|
1013
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 24
|
1014
|
+
def _reduce_14( val, _values, result )
|
1005
1015
|
result = []
|
1006
1016
|
result
|
1007
1017
|
end
|
1008
1018
|
.,.,
|
1009
1019
|
|
1010
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1011
|
-
def
|
1020
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 26
|
1021
|
+
def _reduce_15( val, _values, result )
|
1012
1022
|
result << val[2]
|
1013
1023
|
result
|
1014
1024
|
end
|
1015
1025
|
.,.,
|
1016
1026
|
|
1017
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1018
|
-
def
|
1027
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 29
|
1028
|
+
def _reduce_16( val, _values, result )
|
1019
1029
|
result = Protobuf::Node::OptionNode.new(*val[1])
|
1020
1030
|
result
|
1021
1031
|
end
|
1022
1032
|
.,.,
|
1023
1033
|
|
1024
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1025
|
-
def
|
1034
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 32
|
1035
|
+
def _reduce_17( val, _values, result )
|
1026
1036
|
result = [val[1].unshift(val[0]), val[3]]
|
1027
1037
|
result
|
1028
1038
|
end
|
1029
1039
|
.,.,
|
1030
1040
|
|
1031
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1032
|
-
def
|
1041
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 35
|
1042
|
+
def _reduce_18( val, _values, result )
|
1033
1043
|
result = Protobuf::Node::MessageNode.new(val[1], val[2])
|
1034
1044
|
result
|
1035
1045
|
end
|
1036
1046
|
.,.,
|
1037
1047
|
|
1038
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1039
|
-
def
|
1048
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 38
|
1049
|
+
def _reduce_19( val, _values, result )
|
1040
1050
|
result = Protobuf::Node::ExtendNode.new(val[1], val[3])
|
1041
1051
|
result
|
1042
1052
|
end
|
1043
1053
|
.,.,
|
1044
1054
|
|
1045
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1046
|
-
def
|
1055
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 41
|
1056
|
+
def _reduce_20( val, _values, result )
|
1047
1057
|
result = []
|
1048
1058
|
result
|
1049
1059
|
end
|
1050
1060
|
.,.,
|
1051
1061
|
|
1052
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1053
|
-
def
|
1062
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 43
|
1063
|
+
def _reduce_21( val, _values, result )
|
1054
1064
|
result << val[1] if val[1]
|
1055
1065
|
result
|
1056
1066
|
end
|
1057
1067
|
.,.,
|
1058
1068
|
|
1059
|
-
# reduce 21 omitted
|
1060
|
-
|
1061
1069
|
# reduce 22 omitted
|
1062
1070
|
|
1063
|
-
|
1064
|
-
|
1071
|
+
# reduce 23 omitted
|
1072
|
+
|
1073
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 47
|
1074
|
+
def _reduce_24( val, _values, result )
|
1065
1075
|
result = nil
|
1066
1076
|
result
|
1067
1077
|
end
|
1068
1078
|
.,.,
|
1069
1079
|
|
1070
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1071
|
-
def
|
1080
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 50
|
1081
|
+
def _reduce_25( val, _values, result )
|
1072
1082
|
result = Protobuf::Node::EnumNode.new(val[1], val[3])
|
1073
1083
|
result
|
1074
1084
|
end
|
1075
1085
|
.,.,
|
1076
1086
|
|
1077
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1078
|
-
def
|
1087
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 53
|
1088
|
+
def _reduce_26( val, _values, result )
|
1079
1089
|
result = []
|
1080
1090
|
result
|
1081
1091
|
end
|
1082
1092
|
.,.,
|
1083
1093
|
|
1084
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1085
|
-
def
|
1094
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 55
|
1095
|
+
def _reduce_27( val, _values, result )
|
1086
1096
|
result << val[1] if val[1]
|
1087
1097
|
result
|
1088
1098
|
end
|
1089
1099
|
.,.,
|
1090
1100
|
|
1091
|
-
# reduce 27 omitted
|
1092
|
-
|
1093
1101
|
# reduce 28 omitted
|
1094
1102
|
|
1095
|
-
|
1096
|
-
|
1103
|
+
# reduce 29 omitted
|
1104
|
+
|
1105
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 59
|
1106
|
+
def _reduce_30( val, _values, result )
|
1097
1107
|
result = nil
|
1098
1108
|
result
|
1099
1109
|
end
|
1100
1110
|
.,.,
|
1101
1111
|
|
1102
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1103
|
-
def
|
1112
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 62
|
1113
|
+
def _reduce_31( val, _values, result )
|
1104
1114
|
result = Protobuf::Node::EnumFieldNode.new(val[0], val[2])
|
1105
1115
|
result
|
1106
1116
|
end
|
1107
1117
|
.,.,
|
1108
1118
|
|
1109
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1110
|
-
def
|
1119
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 65
|
1120
|
+
def _reduce_32( val, _values, result )
|
1111
1121
|
result = Protobuf::Node::ServiceNode.new(val[1], val[3])
|
1112
1122
|
result
|
1113
1123
|
end
|
1114
1124
|
.,.,
|
1115
1125
|
|
1116
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1117
|
-
def
|
1126
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 68
|
1127
|
+
def _reduce_33( val, _values, result )
|
1118
1128
|
result = []
|
1119
1129
|
result
|
1120
1130
|
end
|
1121
1131
|
.,.,
|
1122
1132
|
|
1123
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1124
|
-
def
|
1133
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 70
|
1134
|
+
def _reduce_34( val, _values, result )
|
1125
1135
|
result << val[1] if val[1]
|
1126
1136
|
result
|
1127
1137
|
end
|
1128
1138
|
.,.,
|
1129
1139
|
|
1130
|
-
# reduce 34 omitted
|
1131
|
-
|
1132
1140
|
# reduce 35 omitted
|
1133
1141
|
|
1134
|
-
|
1135
|
-
|
1142
|
+
# reduce 36 omitted
|
1143
|
+
|
1144
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 74
|
1145
|
+
def _reduce_37( val, _values, result )
|
1136
1146
|
result = nil
|
1137
1147
|
result
|
1138
1148
|
end
|
1139
1149
|
.,.,
|
1140
1150
|
|
1141
1151
|
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 76
|
1142
|
-
def
|
1152
|
+
def _reduce_38( val, _values, result )
|
1153
|
+
result = Protobuf::Node::SyntaxNode.new(val[2])
|
1154
|
+
result
|
1155
|
+
end
|
1156
|
+
.,.,
|
1157
|
+
|
1158
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 79
|
1159
|
+
def _reduce_39( val, _values, result )
|
1143
1160
|
result = Protobuf::Node::RpcNode.new(val[1], val[3], val[7])
|
1144
1161
|
result
|
1145
1162
|
end
|
1146
1163
|
.,.,
|
1147
1164
|
|
1148
|
-
# reduce
|
1165
|
+
# reduce 40 omitted
|
1149
1166
|
|
1150
|
-
# reduce
|
1167
|
+
# reduce 41 omitted
|
1151
1168
|
|
1152
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1153
|
-
def
|
1169
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 85
|
1170
|
+
def _reduce_42( val, _values, result )
|
1154
1171
|
result = val[1]
|
1155
1172
|
result
|
1156
1173
|
end
|
1157
1174
|
.,.,
|
1158
1175
|
|
1159
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1160
|
-
def
|
1176
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 88
|
1177
|
+
def _reduce_43( val, _values, result )
|
1161
1178
|
result = []
|
1162
1179
|
result
|
1163
1180
|
end
|
1164
1181
|
.,.,
|
1165
1182
|
|
1166
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1167
|
-
def
|
1183
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 90
|
1184
|
+
def _reduce_44( val, _values, result )
|
1168
1185
|
result << val[1] if val[1]
|
1169
1186
|
result
|
1170
1187
|
end
|
1171
1188
|
.,.,
|
1172
1189
|
|
1173
|
-
# reduce 43 omitted
|
1174
|
-
|
1175
|
-
# reduce 44 omitted
|
1176
|
-
|
1177
1190
|
# reduce 45 omitted
|
1178
1191
|
|
1179
1192
|
# reduce 46 omitted
|
@@ -1184,38 +1197,38 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 87
|
|
1184
1197
|
|
1185
1198
|
# reduce 49 omitted
|
1186
1199
|
|
1187
|
-
|
1188
|
-
|
1200
|
+
# reduce 50 omitted
|
1201
|
+
|
1202
|
+
# reduce 51 omitted
|
1203
|
+
|
1204
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 99
|
1205
|
+
def _reduce_52( val, _values, result )
|
1189
1206
|
result = nil
|
1190
1207
|
result
|
1191
1208
|
end
|
1192
1209
|
.,.,
|
1193
1210
|
|
1194
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1195
|
-
def
|
1211
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 102
|
1212
|
+
def _reduce_53( val, _values, result )
|
1196
1213
|
result = Protobuf::Node::GroupNode.new(val[0], val[2], val[4], val[5])
|
1197
1214
|
result
|
1198
1215
|
end
|
1199
1216
|
.,.,
|
1200
1217
|
|
1201
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1202
|
-
def
|
1218
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 105
|
1219
|
+
def _reduce_54( val, _values, result )
|
1203
1220
|
result = Protobuf::Node::FieldNode.new(val[0], val[1], val[2], val[4])
|
1204
1221
|
result
|
1205
1222
|
end
|
1206
1223
|
.,.,
|
1207
1224
|
|
1208
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1209
|
-
def
|
1225
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 107
|
1226
|
+
def _reduce_55( val, _values, result )
|
1210
1227
|
result = Protobuf::Node::FieldNode.new(val[0], val[1], val[2], val[4], val[6])
|
1211
1228
|
result
|
1212
1229
|
end
|
1213
1230
|
.,.,
|
1214
1231
|
|
1215
|
-
# reduce 54 omitted
|
1216
|
-
|
1217
|
-
# reduce 55 omitted
|
1218
|
-
|
1219
1232
|
# reduce 56 omitted
|
1220
1233
|
|
1221
1234
|
# reduce 57 omitted
|
@@ -1278,77 +1291,77 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 104
|
|
1278
1291
|
|
1279
1292
|
# reduce 86 omitted
|
1280
1293
|
|
1281
|
-
|
1282
|
-
|
1294
|
+
# reduce 87 omitted
|
1295
|
+
|
1296
|
+
# reduce 88 omitted
|
1297
|
+
|
1298
|
+
# reduce 89 omitted
|
1299
|
+
|
1300
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 112
|
1301
|
+
def _reduce_90( val, _values, result )
|
1283
1302
|
result = val
|
1284
1303
|
result
|
1285
1304
|
end
|
1286
1305
|
.,.,
|
1287
1306
|
|
1288
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1289
|
-
def
|
1307
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 114
|
1308
|
+
def _reduce_91( val, _values, result )
|
1290
1309
|
result << val[2]
|
1291
1310
|
result
|
1292
1311
|
end
|
1293
1312
|
.,.,
|
1294
1313
|
|
1295
|
-
# reduce
|
1314
|
+
# reduce 92 omitted
|
1296
1315
|
|
1297
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1298
|
-
def
|
1316
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 118
|
1317
|
+
def _reduce_93( val, _values, result )
|
1299
1318
|
result = [:default, val[2]]
|
1300
1319
|
result
|
1301
1320
|
end
|
1302
1321
|
.,.,
|
1303
1322
|
|
1304
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1305
|
-
def
|
1323
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 121
|
1324
|
+
def _reduce_94( val, _values, result )
|
1306
1325
|
result = Protobuf::Node::ExtensionsNode.new(val[2].unshift(val[1]))
|
1307
1326
|
result
|
1308
1327
|
end
|
1309
1328
|
.,.,
|
1310
1329
|
|
1311
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1312
|
-
def
|
1330
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 124
|
1331
|
+
def _reduce_95( val, _values, result )
|
1313
1332
|
result = []
|
1314
1333
|
result
|
1315
1334
|
end
|
1316
1335
|
.,.,
|
1317
1336
|
|
1318
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1319
|
-
def
|
1337
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 126
|
1338
|
+
def _reduce_96( val, _values, result )
|
1320
1339
|
result << val[1]
|
1321
1340
|
result
|
1322
1341
|
end
|
1323
1342
|
.,.,
|
1324
1343
|
|
1325
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1326
|
-
def
|
1344
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 129
|
1345
|
+
def _reduce_97( val, _values, result )
|
1327
1346
|
result = Protobuf::Node::ExtensionRangeNode.new(val[0])
|
1328
1347
|
result
|
1329
1348
|
end
|
1330
1349
|
.,.,
|
1331
1350
|
|
1332
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1333
|
-
def
|
1351
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 131
|
1352
|
+
def _reduce_98( val, _values, result )
|
1334
1353
|
result = Protobuf::Node::ExtensionRangeNode.new(val[0], val[2])
|
1335
1354
|
result
|
1336
1355
|
end
|
1337
1356
|
.,.,
|
1338
1357
|
|
1339
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1340
|
-
def
|
1358
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 133
|
1359
|
+
def _reduce_99( val, _values, result )
|
1341
1360
|
result = Protobuf::Node::ExtensionRangeNode.new(val[0], :max)
|
1342
1361
|
result
|
1343
1362
|
end
|
1344
1363
|
.,.,
|
1345
1364
|
|
1346
|
-
# reduce 97 omitted
|
1347
|
-
|
1348
|
-
# reduce 98 omitted
|
1349
|
-
|
1350
|
-
# reduce 99 omitted
|
1351
|
-
|
1352
1365
|
# reduce 100 omitted
|
1353
1366
|
|
1354
1367
|
# reduce 101 omitted
|
@@ -1381,26 +1394,26 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 130
|
|
1381
1394
|
|
1382
1395
|
# reduce 115 omitted
|
1383
1396
|
|
1384
|
-
|
1385
|
-
|
1397
|
+
# reduce 116 omitted
|
1398
|
+
|
1399
|
+
# reduce 117 omitted
|
1400
|
+
|
1401
|
+
# reduce 118 omitted
|
1402
|
+
|
1403
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 144
|
1404
|
+
def _reduce_119( val, _values, result )
|
1386
1405
|
result = val[1].unshift(val[0])
|
1387
1406
|
result
|
1388
1407
|
end
|
1389
1408
|
.,.,
|
1390
1409
|
|
1391
|
-
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y',
|
1392
|
-
def
|
1410
|
+
module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 146
|
1411
|
+
def _reduce_120( val, _values, result )
|
1393
1412
|
result = val[1].unshift(val[0])
|
1394
1413
|
result
|
1395
1414
|
end
|
1396
1415
|
.,.,
|
1397
1416
|
|
1398
|
-
# reduce 118 omitted
|
1399
|
-
|
1400
|
-
# reduce 119 omitted
|
1401
|
-
|
1402
|
-
# reduce 120 omitted
|
1403
|
-
|
1404
1417
|
# reduce 121 omitted
|
1405
1418
|
|
1406
1419
|
# reduce 122 omitted
|
@@ -1411,6 +1424,12 @@ module_eval <<'.,.,', 'lib/protobuf/compiler/proto.y', 143
|
|
1411
1424
|
|
1412
1425
|
# reduce 125 omitted
|
1413
1426
|
|
1427
|
+
# reduce 126 omitted
|
1428
|
+
|
1429
|
+
# reduce 127 omitted
|
1430
|
+
|
1431
|
+
# reduce 128 omitted
|
1432
|
+
|
1414
1433
|
def _reduce_none( val, _values, result )
|
1415
1434
|
result
|
1416
1435
|
end
|