graphql-c_parser 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/graphql_c_parser_ext/parser.c +531 -524
- data/lib/graphql/c_parser/version.rb +1 -1
- metadata +3 -3
@@ -714,18 +714,18 @@ union yyalloc
|
|
714
714
|
#endif /* !YYCOPY_NEEDED */
|
715
715
|
|
716
716
|
/* YYFINAL -- State number of the termination state. */
|
717
|
-
#define YYFINAL
|
717
|
+
#define YYFINAL 78
|
718
718
|
/* YYLAST -- Last index in YYTABLE. */
|
719
|
-
#define YYLAST
|
719
|
+
#define YYLAST 783
|
720
720
|
|
721
721
|
/* YYNTOKENS -- Number of terminals. */
|
722
722
|
#define YYNTOKENS 40
|
723
723
|
/* YYNNTS -- Number of nonterminals. */
|
724
724
|
#define YYNNTS 87
|
725
725
|
/* YYNRULES -- Number of rules. */
|
726
|
-
#define YYNRULES
|
726
|
+
#define YYNRULES 183
|
727
727
|
/* YYNSTATES -- Number of states. */
|
728
|
-
#define YYNSTATES
|
728
|
+
#define YYNSTATES 311
|
729
729
|
|
730
730
|
/* YYMAXUTOK -- Last valid token kind. */
|
731
731
|
#define YYMAXUTOK 257
|
@@ -784,15 +784,15 @@ static const yytype_int16 yyrline[] =
|
|
784
784
|
327, 330, 341, 350, 351, 354, 355, 358, 369, 370,
|
785
785
|
373, 374, 376, 386, 387, 390, 391, 392, 393, 394,
|
786
786
|
395, 396, 397, 398, 401, 402, 403, 404, 405, 406,
|
787
|
-
407,
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
765, 766, 767, 768,
|
795
|
-
|
787
|
+
407, 408, 412, 422, 431, 442, 454, 455, 458, 459,
|
788
|
+
462, 469, 478, 479, 480, 483, 496, 497, 500, 504,
|
789
|
+
509, 514, 515, 516, 517, 518, 519, 521, 524, 525,
|
790
|
+
528, 540, 554, 555, 556, 557, 560, 568, 574, 582,
|
791
|
+
587, 601, 602, 605, 606, 609, 623, 624, 627, 628,
|
792
|
+
629, 632, 646, 654, 659, 672, 685, 697, 698, 701,
|
793
|
+
714, 728, 729, 732, 733, 737, 738, 741, 752, 764,
|
794
|
+
765, 766, 767, 768, 769, 771, 781, 793, 805, 814,
|
795
|
+
825, 834, 845, 854
|
796
796
|
};
|
797
797
|
#endif
|
798
798
|
|
@@ -850,12 +850,12 @@ yysymbol_name (yysymbol_kind_t yysymbol)
|
|
850
850
|
}
|
851
851
|
#endif
|
852
852
|
|
853
|
-
#define YYPACT_NINF (-
|
853
|
+
#define YYPACT_NINF (-241)
|
854
854
|
|
855
855
|
#define yypact_value_is_default(Yyn) \
|
856
856
|
((Yyn) == YYPACT_NINF)
|
857
857
|
|
858
|
-
#define YYTABLE_NINF (-
|
858
|
+
#define YYTABLE_NINF (-149)
|
859
859
|
|
860
860
|
#define yytable_value_is_error(Yyn) \
|
861
861
|
0
|
@@ -864,37 +864,38 @@ yysymbol_name (yysymbol_kind_t yysymbol)
|
|
864
864
|
STATE-NUM. */
|
865
865
|
static const yytype_int16 yypact[] =
|
866
866
|
{
|
867
|
-
|
868
|
-
-
|
869
|
-
-
|
870
|
-
-
|
871
|
-
|
872
|
-
-
|
873
|
-
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
-
|
886
|
-
|
887
|
-
|
888
|
-
-
|
889
|
-
|
890
|
-
-
|
891
|
-
|
892
|
-
|
893
|
-
-
|
894
|
-
|
895
|
-
-
|
896
|
-
|
897
|
-
|
867
|
+
140, 193, 745, 481, -241, -241, 6, -241, -241, 28,
|
868
|
+
-241, 108, -241, -241, -241, 712, -241, -241, -241, -241,
|
869
|
+
-241, 96, -241, -241, -241, -241, -241, -241, -241, -241,
|
870
|
+
-241, -241, -241, -241, -241, -241, -241, -241, 712, 712,
|
871
|
+
712, 712, 6, 712, 712, -241, -241, -241, -241, -241,
|
872
|
+
-241, -241, -241, -241, -241, -241, -241, -241, -241, -241,
|
873
|
+
-241, -241, -241, 23, 580, -241, -241, 514, -241, -241,
|
874
|
+
22, -241, -241, -241, 712, 40, 6, -241, -241, -241,
|
875
|
+
51, -241, 68, 712, 712, 712, 712, 712, 712, 6,
|
876
|
+
6, 60, 6, 58, 26, 60, 6, 613, 613, 74,
|
877
|
+
6, -241, -241, 712, 712, 6, 85, 43, -241, -241,
|
878
|
+
57, 6, 712, 6, 6, 60, 6, 60, 6, 92,
|
879
|
+
26, 93, 26, 307, 6, 6, 43, 6, 116, 42,
|
880
|
+
613, -241, 6, 99, 6, 646, -241, -241, 85, 679,
|
881
|
+
-241, 122, 74, -241, 125, 63, -241, 712, -16, -241,
|
882
|
+
74, 117, 129, 134, 6, -241, 6, 127, 104, 104,
|
883
|
+
712, 217, 153, 712, 137, 64, 137, 712, 144, 74,
|
884
|
+
-241, 74, 547, 6, -241, -241, 414, -241, -241, 712,
|
885
|
+
-241, -241, 160, -241, -241, -241, 104, 138, 104, 104,
|
886
|
+
137, 137, 712, 252, -241, -12, 712, -241, -5, -241,
|
887
|
+
153, 712, -241, 76, -241, -241, -241, -241, 152, -241,
|
888
|
+
-241, -241, -241, 74, -241, -241, -241, -241, -241, 340,
|
889
|
+
712, -241, -241, -241, -241, -241, 712, -241, -241, -241,
|
890
|
+
-241, -241, -241, -241, -241, -241, -241, -241, -241, 613,
|
891
|
+
115, -241, 155, 82, 118, -241, -241, 152, 6, -241,
|
892
|
+
-241, 177, -241, -241, -241, 712, -241, 119, 712, -241,
|
893
|
+
-241, -241, 380, 154, 712, -241, 156, 712, -241, 179,
|
894
|
+
-241, 178, -241, 712, -241, -241, -241, 613, 117, -241,
|
895
|
+
-241, -241, -241, -241, -241, -241, 182, -241, -241, 186,
|
896
|
+
414, 448, -241, -241, 176, 178, 199, 414, 448, -241,
|
897
|
+
-241, 712, -241, 712, 6, 613, -241, -241, -241, 6,
|
898
|
+
-241
|
898
899
|
};
|
899
900
|
|
900
901
|
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
|
@@ -902,64 +903,65 @@ static const yytype_int16 yypact[] =
|
|
902
903
|
means the default is an error. */
|
903
904
|
static const yytype_uint8 yydefact[] =
|
904
905
|
{
|
905
|
-
|
906
|
-
2,
|
907
|
-
|
908
|
-
|
906
|
+
128, 0, 106, 0, 15, 14, 78, 127, 16, 0,
|
907
|
+
2, 128, 4, 6, 9, 17, 10, 7, 112, 113,
|
908
|
+
129, 0, 121, 122, 123, 124, 125, 126, 114, 8,
|
909
|
+
165, 166, 169, 170, 171, 172, 173, 174, 0, 0,
|
909
910
|
0, 0, 78, 0, 0, 93, 91, 98, 95, 94,
|
910
|
-
92, 88, 89, 96, 86, 85, 97, 87, 90,
|
911
|
-
100,
|
912
|
-
83, 29, 30, 0,
|
913
|
-
18, 0, 0, 0, 0, 0, 0, 0, 78,
|
914
|
-
|
915
|
-
12, 27, 0, 0, 78, 36, 0,
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
53, 62, 61, 43, 44, 0, 63, 50, 40,
|
928
|
-
51, 48, 65, 47, 52, 49, 64,
|
929
|
-
|
930
|
-
|
931
|
-
57, 0, 0, 68, 69, 0, 74, 75, 0,
|
932
|
-
24,
|
933
|
-
|
934
|
-
0, 23,
|
935
|
-
73, 25, 0, 78, 0, 77,
|
911
|
+
92, 88, 89, 99, 96, 86, 85, 97, 87, 90,
|
912
|
+
100, 101, 107, 0, 78, 84, 13, 0, 26, 28,
|
913
|
+
36, 83, 29, 30, 0, 116, 79, 80, 1, 5,
|
914
|
+
19, 18, 0, 0, 0, 0, 0, 0, 0, 78,
|
915
|
+
78, 132, 0, 0, 168, 132, 78, 0, 0, 0,
|
916
|
+
78, 12, 27, 0, 0, 78, 36, 0, 115, 81,
|
917
|
+
0, 78, 0, 78, 78, 132, 78, 132, 78, 0,
|
918
|
+
181, 0, 183, 0, 78, 175, 0, 78, 0, 179,
|
919
|
+
0, 110, 78, 108, 78, 0, 104, 102, 36, 0,
|
920
|
+
38, 0, 32, 82, 0, 0, 118, 0, 0, 21,
|
921
|
+
0, 143, 0, 0, 78, 130, 78, 0, 128, 128,
|
922
|
+
0, 136, 134, 135, 146, 0, 146, 0, 0, 0,
|
923
|
+
109, 0, 0, 78, 37, 39, 0, 33, 35, 0,
|
924
|
+
117, 119, 0, 20, 22, 11, 128, 161, 128, 128,
|
925
|
+
146, 146, 0, 0, 157, 128, 0, 141, 128, 136,
|
926
|
+
133, 0, 139, 128, 177, 167, 176, 152, 178, 111,
|
927
|
+
105, 103, 31, 32, 45, 41, 60, 59, 42, 0,
|
928
|
+
67, 53, 62, 61, 43, 44, 0, 63, 50, 40,
|
929
|
+
46, 51, 48, 65, 47, 52, 49, 64, 120, 0,
|
930
|
+
128, 162, 0, 128, 128, 151, 131, 154, 78, 180,
|
931
|
+
158, 0, 182, 142, 137, 0, 149, 128, 0, 34,
|
932
|
+
55, 57, 0, 0, 68, 69, 0, 74, 75, 0,
|
933
|
+
54, 24, 144, 0, 155, 159, 156, 0, 143, 147,
|
934
|
+
150, 153, 56, 58, 66, 70, 0, 72, 76, 0,
|
935
|
+
0, 0, 23, 163, 160, 24, 0, 0, 0, 50,
|
936
|
+
71, 73, 25, 0, 78, 0, 77, 164, 140, 78,
|
937
|
+
145
|
936
938
|
};
|
937
939
|
|
938
940
|
/* YYPGOTO[NTERM-NUM]. */
|
939
941
|
static const yytype_int16 yypgoto[] =
|
940
942
|
{
|
941
|
-
-
|
942
|
-
-
|
943
|
-
|
944
|
-
-
|
945
|
-
-3, -
|
946
|
-
-
|
947
|
-
|
948
|
-
-
|
949
|
-
-
|
943
|
+
-241, -241, -241, -241, 195, -241, -241, 14, -241, -241,
|
944
|
+
-241, 62, -81, 83, -66, -95, 7, -241, -99, -241,
|
945
|
+
77, -240, -174, -241, -241, -241, -241, 29, -241, -241,
|
946
|
+
-241, -241, -45, -241, -241, -241, -46, 81, -33, -60,
|
947
|
+
-3, -173, 3, -241, -241, -241, -241, -77, -241, -241,
|
948
|
+
-241, -241, 98, -134, -241, -241, 8, -241, -241, -85,
|
949
|
+
67, -241, -172, -92, -42, -19, -148, -241, -241, 47,
|
950
|
+
-241, -241, -189, 52, -241, -241, -241, -241, -241, -241,
|
951
|
+
-241, -241, -241, -241, -241, -241, -241
|
950
952
|
};
|
951
953
|
|
952
954
|
/* YYDEFGOTO[NTERM-NUM]. */
|
953
955
|
static const yytype_int16 yydefgoto[] =
|
954
956
|
{
|
955
|
-
0, 9, 10, 11, 12, 13, 14,
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
18,
|
961
|
-
|
962
|
-
25, 26,
|
957
|
+
0, 9, 10, 11, 12, 13, 14, 60, 80, 111,
|
958
|
+
148, 149, 292, 67, 68, 177, 178, 69, 105, 139,
|
959
|
+
140, 228, 300, 230, 231, 232, 262, 233, 234, 235,
|
960
|
+
263, 264, 265, 236, 266, 267, 268, 75, 76, 77,
|
961
|
+
131, 61, 71, 72, 73, 16, 63, 132, 133, 17,
|
962
|
+
18, 108, 145, 146, 19, 20, 196, 22, 23, 124,
|
963
|
+
162, 163, 197, 198, 187, 256, 204, 257, 24, 208,
|
964
|
+
25, 26, 194, 195, 27, 28, 242, 294, 29, 30,
|
963
965
|
31, 32, 33, 34, 35, 36, 37
|
964
966
|
};
|
965
967
|
|
@@ -968,168 +970,168 @@ static const yytype_int16 yydefgoto[] =
|
|
968
970
|
number is the opposite. If YYTABLE_NINF, syntax error. */
|
969
971
|
static const yytype_int16 yytable[] =
|
970
972
|
{
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
113, 114, 115, 116, 117,
|
980
|
-
5,
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
0,
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
0,
|
1007
|
-
219, 0, 4,
|
1008
|
-
|
1009
|
-
0, 0, 0, 0,
|
1010
|
-
|
1011
|
-
219, 0, 4,
|
1012
|
-
|
1013
|
-
|
1014
|
-
51,
|
1015
|
-
5, 0, 0,
|
1016
|
-
|
1017
|
-
214, 215, 216, 50, 51,
|
1018
|
-
4,
|
1019
|
-
55,
|
973
|
+
70, 102, 229, 237, 136, 62, 250, 143, 21, 94,
|
974
|
+
127, 181, 81, 74, 15, 183, 109, 249, 206, 21,
|
975
|
+
237, 134, 7, 147, 252, 15, 253, 103, 78, 7,
|
976
|
+
154, 181, 156, 74, 109, 89, 90, 91, 92, 173,
|
977
|
+
95, 96, 245, 246, 104, 261, 237, -79, 97, 74,
|
978
|
+
299, 302, -79, 168, 250, 185, 120, 122, 306, 125,
|
979
|
+
109, 107, 109, 129, 70, 109, 4, 100, 253, 109,
|
980
|
+
5, 106, 253, 110, 210, 112, 211, 123, 8, 126,
|
981
|
+
113, 114, 115, 116, 117, 118, 4, 4, 283, 237,
|
982
|
+
5, 5, 180, 205, 240, 135, 147, 244, 8, 8,
|
983
|
+
138, 141, 82, 170, 83, -148, 102, 104, -3, 151,
|
984
|
+
7, 274, 84, 158, 159, 85, 7, 237, 237, 1,
|
985
|
+
161, 144, 2, 93, 237, 237, 167, 176, 86, 3,
|
986
|
+
179, 4, 70, 87, 88, 5, 141, 192, 7, 186,
|
987
|
+
144, 6, 7, 8, 182, 99, 272, 275, 279, 7,
|
988
|
+
188, 1, 7, 7, 2, 189, 201, 199, 203, 144,
|
989
|
+
202, 3, 271, 4, 207, 239, 193, 5, 241, 70,
|
990
|
+
119, 121, 209, 6, 7, 8, 238, 128, 258, 144,
|
991
|
+
273, 137, 277, 284, 290, 287, 142, 297, 291, 207,
|
992
|
+
227, 298, 150, 251, 152, 153, 193, 155, 254, 157,
|
993
|
+
295, 38, 303, 193, 305, 164, 79, 227, 166, 39,
|
994
|
+
184, 255, 40, 169, 304, 171, 175, 269, 172, 285,
|
995
|
+
259, 288, 248, 270, 165, 41, 42, 200, 309, -138,
|
996
|
+
43, 44, -138, 227, -138, 190, 296, 191, 280, 247,
|
997
|
+
243, -138, -138, 0, 0, 0, 0, -138, 0, 0,
|
998
|
+
0, 193, 278, -138, 213, 281, 0, 0, 45, 0,
|
999
|
+
46, 286, 0, 0, 289, 255, 216, 217, 50, 51,
|
1000
|
+
293, 52, 0, 0, 0, 4, 227, 222, 0, 5,
|
1001
|
+
0, 0, 223, 0, 55, 56, 0, 8, 0, 58,
|
1002
|
+
59, 0, 0, 0, 0, 0, 0, 0, 289, 0,
|
1003
|
+
307, 0, 0, 0, 227, 227, 0, 0, 0, 0,
|
1004
|
+
160, 227, 227, 45, 0, 46, 0, 0, 0, 47,
|
1005
|
+
0, 48, 49, 50, 51, 0, 52, 0, 0, 276,
|
1006
|
+
4, 53, 65, 0, 5, 0, 0, 54, 0, 55,
|
1007
|
+
56, 0, 8, 57, 58, 59, 45, 0, 46, 0,
|
1008
|
+
0, 0, 214, 215, 216, 217, 50, 51, 218, 52,
|
1009
|
+
219, 220, 0, 4, 221, 222, 0, 5, 260, 0,
|
1010
|
+
223, 0, 55, 56, 224, 8, 225, 58, 59, 226,
|
1011
|
+
0, 0, 0, 0, 0, 308, 45, 0, 46, 0,
|
1012
|
+
310, 0, 214, 215, 216, 217, 50, 51, 218, 52,
|
1013
|
+
219, 220, 0, 4, 221, 222, 0, 5, 282, 0,
|
1014
|
+
223, 0, 55, 56, 224, 8, 225, 58, 59, 226,
|
1015
|
+
45, 0, 46, 0, 0, 0, 214, 215, 216, 217,
|
1016
|
+
50, 51, 218, 52, 219, 220, 0, 4, 221, 222,
|
1017
|
+
0, 5, 0, 0, 223, 0, 55, 56, 224, 8,
|
1018
|
+
225, 58, 59, 226, 45, 0, 46, 0, 0, 0,
|
1019
|
+
214, 215, 216, 217, 50, 51, 218, 52, 219, 301,
|
1020
|
+
0, 4, 221, 222, 0, 5, 0, 0, 223, 0,
|
1021
|
+
55, 56, 224, 8, 225, 58, 59, 45, 0, 46,
|
1022
|
+
64, 0, 0, 47, 0, 48, 49, 50, 51, 0,
|
1023
|
+
52, 0, 0, 0, 4, 53, 65, 0, 5, 0,
|
1024
|
+
66, 54, 0, 55, 56, 0, 8, 57, 58, 59,
|
1025
|
+
45, 0, 46, 64, 0, 0, 47, 0, 48, 49,
|
1026
|
+
50, 51, 0, 52, 0, 0, 0, 4, 53, 65,
|
1027
|
+
0, 5, 0, 101, 54, 0, 55, 56, 0, 8,
|
1028
|
+
57, 58, 59, 45, 0, 46, 64, 0, 0, 47,
|
1029
|
+
0, 48, 49, 50, 51, 0, 52, 0, 0, 0,
|
1030
|
+
4, 53, 65, 0, 5, 0, 212, 54, 0, 55,
|
1031
|
+
56, 0, 8, 57, 58, 59, 45, 74, 46, 0,
|
1020
1032
|
0, 0, 47, 0, 48, 49, 50, 51, 0, 52,
|
1021
|
-
0, 0, 0, 4,
|
1022
|
-
|
1023
|
-
0, 46,
|
1024
|
-
51, 0, 52,
|
1025
|
-
5, 0,
|
1026
|
-
|
1033
|
+
0, 0, 0, 4, 53, 98, 0, 5, 0, 0,
|
1034
|
+
54, 0, 55, 56, 0, 8, 57, 58, 59, 45,
|
1035
|
+
0, 46, 0, 0, 0, 47, 0, 48, 49, 50,
|
1036
|
+
51, 0, 52, 130, 0, 0, 4, 53, 65, 0,
|
1037
|
+
5, 0, 0, 54, 0, 55, 56, 0, 8, 57,
|
1038
|
+
58, 59, 45, 0, 46, 64, 0, 0, 47, 0,
|
1027
1039
|
48, 49, 50, 51, 0, 52, 0, 0, 0, 4,
|
1028
|
-
|
1029
|
-
0, 8,
|
1040
|
+
53, 65, 0, 5, 0, 0, 54, 0, 55, 56,
|
1041
|
+
0, 8, 57, 58, 59, 45, 0, 46, 0, 0,
|
1030
1042
|
0, 47, 0, 48, 49, 50, 51, 0, 52, 0,
|
1031
|
-
0, 0, 4,
|
1032
|
-
|
1043
|
+
0, 0, 4, 53, 65, 0, 5, 0, 0, 54,
|
1044
|
+
174, 55, 56, 0, 8, 57, 58, 59, 45, 0,
|
1033
1045
|
46, 0, 0, 0, 47, 0, 48, 49, 50, 51,
|
1034
|
-
0, 52,
|
1035
|
-
0, 0,
|
1036
|
-
|
1037
|
-
49, 50, 51, 0, 52, 0, 0, 0, 4,
|
1038
|
-
|
1039
|
-
8,
|
1040
|
-
47, 0, 48, 49, 50, 51, 0, 52, 0, 0,
|
1041
|
-
0, 4, 0, 64, 0, 5, 0, 0, 53, 173,
|
1042
|
-
54, 55, 0, 8, 56, 57, 58, 45, 0, 46,
|
1043
|
-
0, 0, 0, 47, 0, 48, 49, 50, 51, 0,
|
1044
|
-
52, 0, 0, 0, 4, 0, 64, 0, 5, 0,
|
1045
|
-
0, 53, 0, 54, 55, 0, 8, 56, 57, 58,
|
1046
|
-
45, 0, 46, 0, 0, 0, 47, 0, 48, 49,
|
1047
|
-
50, 51, 0, 52, 0, 0, 0, 4, 0, 0,
|
1048
|
-
0, 5, 0, 0, 53, 0, 54, 55, 0, 8,
|
1049
|
-
56, 57, 58
|
1046
|
+
0, 52, 0, 0, 0, 4, 53, 65, 0, 5,
|
1047
|
+
0, 0, 54, 0, 55, 56, 0, 8, 57, 58,
|
1048
|
+
59, 45, 0, 46, 0, 0, 0, 47, 0, 48,
|
1049
|
+
49, 50, 51, 0, 52, 0, 0, 0, 4, 53,
|
1050
|
+
0, 0, 5, 0, 0, 54, 0, 55, 56, 0,
|
1051
|
+
8, 57, 58, 59
|
1050
1052
|
};
|
1051
1053
|
|
1052
1054
|
static const yytype_int16 yycheck[] =
|
1053
1055
|
{
|
1054
|
-
3,
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
43, 44,
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
83, 84, 85, 86, 87,
|
1063
|
-
27,
|
1064
|
-
103,
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
89,
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
-1, 30, -1, 32, 33, -1, 35, -1, 37,
|
1083
|
-
-1, -1, -1, -1, -1, -1, -1,
|
1084
|
-
|
1085
|
-
|
1086
|
-
14, 15, 16, 17, -1, 19, -1, -1,
|
1087
|
-
-1, 25, -1, 27, -1, -1, 30, -1, 32, 33,
|
1088
|
-
-1, 35, 36, 37, 38, 6, -1, 8, -1, -1,
|
1089
|
-
-1, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
1090
|
-
21, -1, 23, 24, 25, -1, 27, 28, -1, 30,
|
1091
|
-
-1, 32, 33, 34, 35, 36, 37, 38, 39, -1,
|
1092
|
-
-1, -1, -1, -1, 303, 6, -1, 8, -1, 308,
|
1093
|
-
-1, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
1094
|
-
21, -1, 23, 24, 25, -1, 27, 28, -1, 30,
|
1095
|
-
-1, 32, 33, 34, 35, 36, 37, 38, 39, 6,
|
1096
|
-
-1, 8, -1, -1, -1, 12, 13, 14, 15, 16,
|
1097
|
-
17, 18, 19, 20, 21, -1, 23, 24, 25, -1,
|
1098
|
-
27, -1, -1, 30, -1, 32, 33, 34, 35, 36,
|
1099
|
-
37, 38, 39, 6, -1, 8, -1, -1, -1, 12,
|
1100
|
-
13, 14, 15, 16, 17, 18, 19, 20, 21, -1,
|
1056
|
+
3, 67, 176, 176, 99, 2, 195, 106, 0, 42,
|
1057
|
+
95, 145, 15, 7, 0, 31, 76, 29, 166, 11,
|
1058
|
+
193, 98, 34, 39, 29, 11, 198, 5, 0, 34,
|
1059
|
+
115, 165, 117, 7, 94, 38, 39, 40, 41, 138,
|
1060
|
+
43, 44, 190, 191, 22, 219, 219, 21, 25, 7,
|
1061
|
+
290, 291, 10, 130, 243, 150, 89, 90, 298, 92,
|
1062
|
+
120, 21, 122, 96, 67, 125, 23, 64, 240, 129,
|
1063
|
+
27, 74, 244, 22, 169, 7, 171, 17, 35, 21,
|
1064
|
+
83, 84, 85, 86, 87, 88, 23, 23, 262, 262,
|
1065
|
+
27, 27, 29, 29, 186, 21, 39, 189, 35, 35,
|
1066
|
+
103, 104, 6, 4, 8, 29, 172, 22, 0, 112,
|
1067
|
+
34, 29, 16, 21, 21, 19, 34, 290, 291, 11,
|
1068
|
+
123, 107, 14, 42, 297, 298, 10, 5, 32, 21,
|
1069
|
+
5, 23, 135, 37, 38, 27, 139, 10, 34, 22,
|
1070
|
+
126, 33, 34, 35, 147, 64, 31, 29, 29, 34,
|
1071
|
+
21, 11, 34, 34, 14, 21, 3, 160, 21, 145,
|
1072
|
+
163, 21, 239, 23, 167, 5, 158, 27, 30, 172,
|
1073
|
+
89, 90, 28, 33, 34, 35, 179, 96, 26, 165,
|
1074
|
+
25, 100, 5, 29, 5, 29, 105, 5, 10, 192,
|
1075
|
+
176, 5, 111, 196, 113, 114, 188, 116, 201, 118,
|
1076
|
+
277, 8, 26, 195, 5, 124, 11, 193, 127, 16,
|
1077
|
+
148, 203, 19, 132, 295, 134, 139, 220, 135, 264,
|
1078
|
+
213, 267, 193, 226, 126, 32, 33, 160, 305, 12,
|
1079
|
+
37, 38, 15, 219, 17, 154, 278, 156, 257, 192,
|
1080
|
+
188, 24, 25, -1, -1, -1, -1, 30, -1, -1,
|
1081
|
+
-1, 243, 255, 36, 173, 258, -1, -1, 6, -1,
|
1082
|
+
8, 264, -1, -1, 267, 257, 14, 15, 16, 17,
|
1083
|
+
273, 19, -1, -1, -1, 23, 262, 25, -1, 27,
|
1084
|
+
-1, -1, 30, -1, 32, 33, -1, 35, -1, 37,
|
1085
|
+
38, -1, -1, -1, -1, -1, -1, -1, 301, -1,
|
1086
|
+
303, -1, -1, -1, 290, 291, -1, -1, -1, -1,
|
1087
|
+
3, 297, 298, 6, -1, 8, -1, -1, -1, 12,
|
1088
|
+
-1, 14, 15, 16, 17, -1, 19, -1, -1, 248,
|
1101
1089
|
23, 24, 25, -1, 27, -1, -1, 30, -1, 32,
|
1102
|
-
33,
|
1090
|
+
33, -1, 35, 36, 37, 38, 6, -1, 8, -1,
|
1091
|
+
-1, -1, 12, 13, 14, 15, 16, 17, 18, 19,
|
1092
|
+
20, 21, -1, 23, 24, 25, -1, 27, 28, -1,
|
1093
|
+
30, -1, 32, 33, 34, 35, 36, 37, 38, 39,
|
1094
|
+
-1, -1, -1, -1, -1, 304, 6, -1, 8, -1,
|
1095
|
+
309, -1, 12, 13, 14, 15, 16, 17, 18, 19,
|
1096
|
+
20, 21, -1, 23, 24, 25, -1, 27, 28, -1,
|
1097
|
+
30, -1, 32, 33, 34, 35, 36, 37, 38, 39,
|
1098
|
+
6, -1, 8, -1, -1, -1, 12, 13, 14, 15,
|
1099
|
+
16, 17, 18, 19, 20, 21, -1, 23, 24, 25,
|
1100
|
+
-1, 27, -1, -1, 30, -1, 32, 33, 34, 35,
|
1101
|
+
36, 37, 38, 39, 6, -1, 8, -1, -1, -1,
|
1102
|
+
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
|
1103
|
+
-1, 23, 24, 25, -1, 27, -1, -1, 30, -1,
|
1104
|
+
32, 33, 34, 35, 36, 37, 38, 6, -1, 8,
|
1105
|
+
9, -1, -1, 12, -1, 14, 15, 16, 17, -1,
|
1106
|
+
19, -1, -1, -1, 23, 24, 25, -1, 27, -1,
|
1107
|
+
29, 30, -1, 32, 33, -1, 35, 36, 37, 38,
|
1108
|
+
6, -1, 8, 9, -1, -1, 12, -1, 14, 15,
|
1109
|
+
16, 17, -1, 19, -1, -1, -1, 23, 24, 25,
|
1110
|
+
-1, 27, -1, 29, 30, -1, 32, 33, -1, 35,
|
1111
|
+
36, 37, 38, 6, -1, 8, 9, -1, -1, 12,
|
1112
|
+
-1, 14, 15, 16, 17, -1, 19, -1, -1, -1,
|
1113
|
+
23, 24, 25, -1, 27, -1, 29, 30, -1, 32,
|
1114
|
+
33, -1, 35, 36, 37, 38, 6, 7, 8, -1,
|
1103
1115
|
-1, -1, 12, -1, 14, 15, 16, 17, -1, 19,
|
1104
|
-
-1, -1, -1, 23,
|
1116
|
+
-1, -1, -1, 23, 24, 25, -1, 27, -1, -1,
|
1105
1117
|
30, -1, 32, 33, -1, 35, 36, 37, 38, 6,
|
1106
|
-
-1, 8,
|
1107
|
-
17, -1, 19,
|
1108
|
-
27, -1,
|
1118
|
+
-1, 8, -1, -1, -1, 12, -1, 14, 15, 16,
|
1119
|
+
17, -1, 19, 20, -1, -1, 23, 24, 25, -1,
|
1120
|
+
27, -1, -1, 30, -1, 32, 33, -1, 35, 36,
|
1109
1121
|
37, 38, 6, -1, 8, 9, -1, -1, 12, -1,
|
1110
1122
|
14, 15, 16, 17, -1, 19, -1, -1, -1, 23,
|
1111
|
-
|
1112
|
-
-1, 35, 36, 37, 38, 6,
|
1123
|
+
24, 25, -1, 27, -1, -1, 30, -1, 32, 33,
|
1124
|
+
-1, 35, 36, 37, 38, 6, -1, 8, -1, -1,
|
1113
1125
|
-1, 12, -1, 14, 15, 16, 17, -1, 19, -1,
|
1114
|
-
-1, -1, 23,
|
1115
|
-
|
1126
|
+
-1, -1, 23, 24, 25, -1, 27, -1, -1, 30,
|
1127
|
+
31, 32, 33, -1, 35, 36, 37, 38, 6, -1,
|
1116
1128
|
8, -1, -1, -1, 12, -1, 14, 15, 16, 17,
|
1117
|
-
-1, 19,
|
1129
|
+
-1, 19, -1, -1, -1, 23, 24, 25, -1, 27,
|
1118
1130
|
-1, -1, 30, -1, 32, 33, -1, 35, 36, 37,
|
1119
|
-
38, 6, -1, 8,
|
1120
|
-
15, 16, 17, -1, 19, -1, -1, -1, 23,
|
1121
|
-
|
1122
|
-
35, 36, 37, 38
|
1123
|
-
12, -1, 14, 15, 16, 17, -1, 19, -1, -1,
|
1124
|
-
-1, 23, -1, 25, -1, 27, -1, -1, 30, 31,
|
1125
|
-
32, 33, -1, 35, 36, 37, 38, 6, -1, 8,
|
1126
|
-
-1, -1, -1, 12, -1, 14, 15, 16, 17, -1,
|
1127
|
-
19, -1, -1, -1, 23, -1, 25, -1, 27, -1,
|
1128
|
-
-1, 30, -1, 32, 33, -1, 35, 36, 37, 38,
|
1129
|
-
6, -1, 8, -1, -1, -1, 12, -1, 14, 15,
|
1130
|
-
16, 17, -1, 19, -1, -1, -1, 23, -1, -1,
|
1131
|
-
-1, 27, -1, -1, 30, -1, 32, 33, -1, 35,
|
1132
|
-
36, 37, 38
|
1131
|
+
38, 6, -1, 8, -1, -1, -1, 12, -1, 14,
|
1132
|
+
15, 16, 17, -1, 19, -1, -1, -1, 23, 24,
|
1133
|
+
-1, -1, 27, -1, -1, 30, -1, 32, 33, -1,
|
1134
|
+
35, 36, 37, 38
|
1133
1135
|
};
|
1134
1136
|
|
1135
1137
|
/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
|
@@ -1141,32 +1143,33 @@ static const yytype_int8 yystos[] =
|
|
1141
1143
|
95, 96, 97, 98, 108, 110, 111, 114, 115, 118,
|
1142
1144
|
119, 120, 121, 122, 123, 124, 125, 126, 8, 16,
|
1143
1145
|
19, 32, 33, 37, 38, 6, 8, 12, 14, 15,
|
1144
|
-
16, 17, 19, 30, 32, 33, 36, 37, 38,
|
1145
|
-
81, 82, 86, 9, 25, 29, 53, 54, 57,
|
1146
|
-
82, 83, 84, 7, 77, 78, 79, 0, 44,
|
1147
|
-
80, 6, 8, 16, 19, 32, 37, 38, 80,
|
1148
|
-
80, 80, 77, 78, 80, 80, 25, 25, 77,
|
1149
|
-
29, 54, 5, 22, 58, 80, 21, 91, 79,
|
1150
|
-
49, 7, 80, 80, 80, 80, 80, 80, 77,
|
1151
|
-
77, 78, 17, 99, 78, 21, 99, 77, 78,
|
1152
|
-
80, 87, 88, 87, 21, 55, 77, 80, 59,
|
1153
|
-
80, 77, 58, 47, 92, 93, 39, 50, 51,
|
1154
|
-
80, 77, 77, 99, 77, 99, 77, 21, 21,
|
1155
|
-
|
1156
|
-
|
1157
|
-
93, 80, 31, 51, 55, 22, 104, 21, 21,
|
1158
|
-
77, 10, 96, 112, 113, 96, 102, 103, 80,
|
1159
|
-
|
1160
|
-
55, 29, 77, 12, 13, 14, 15, 18, 20,
|
1161
|
-
24, 25, 30, 34, 36, 39, 47, 61, 62,
|
1162
|
-
64, 65, 67, 68, 69, 73, 81, 80, 5,
|
1163
|
-
|
1164
|
-
|
1165
|
-
62, 66, 70, 71, 72, 74, 75, 76, 80,
|
1166
|
-
87, 31, 25, 29, 29, 77, 5, 80, 29,
|
1167
|
-
|
1168
|
-
|
1169
|
-
21, 61, 26, 52, 5, 61, 80, 77, 87,
|
1146
|
+
16, 17, 19, 24, 30, 32, 33, 36, 37, 38,
|
1147
|
+
47, 81, 82, 86, 9, 25, 29, 53, 54, 57,
|
1148
|
+
80, 82, 83, 84, 7, 77, 78, 79, 0, 44,
|
1149
|
+
48, 80, 6, 8, 16, 19, 32, 37, 38, 80,
|
1150
|
+
80, 80, 80, 77, 78, 80, 80, 25, 25, 77,
|
1151
|
+
82, 29, 54, 5, 22, 58, 80, 21, 91, 79,
|
1152
|
+
22, 49, 7, 80, 80, 80, 80, 80, 80, 77,
|
1153
|
+
78, 77, 78, 17, 99, 78, 21, 99, 77, 78,
|
1154
|
+
20, 80, 87, 88, 87, 21, 55, 77, 80, 59,
|
1155
|
+
60, 80, 77, 58, 47, 92, 93, 39, 50, 51,
|
1156
|
+
77, 80, 77, 77, 99, 77, 99, 77, 21, 21,
|
1157
|
+
3, 80, 100, 101, 77, 92, 77, 10, 87, 77,
|
1158
|
+
4, 77, 53, 58, 31, 60, 5, 55, 56, 5,
|
1159
|
+
29, 93, 80, 31, 51, 55, 22, 104, 21, 21,
|
1160
|
+
77, 77, 10, 96, 112, 113, 96, 102, 103, 80,
|
1161
|
+
100, 3, 80, 21, 106, 29, 106, 80, 109, 28,
|
1162
|
+
55, 55, 29, 77, 12, 13, 14, 15, 18, 20,
|
1163
|
+
21, 24, 25, 30, 34, 36, 39, 47, 61, 62,
|
1164
|
+
63, 64, 65, 67, 68, 69, 73, 81, 80, 5,
|
1165
|
+
103, 30, 116, 113, 103, 106, 106, 109, 67, 29,
|
1166
|
+
112, 80, 29, 102, 80, 96, 105, 107, 26, 56,
|
1167
|
+
28, 62, 66, 70, 71, 72, 74, 75, 76, 80,
|
1168
|
+
80, 87, 31, 25, 29, 29, 77, 5, 80, 29,
|
1169
|
+
105, 80, 28, 62, 29, 72, 80, 29, 76, 80,
|
1170
|
+
5, 10, 52, 80, 117, 87, 104, 5, 5, 61,
|
1171
|
+
62, 21, 61, 26, 52, 5, 61, 80, 77, 87,
|
1172
|
+
77
|
1170
1173
|
};
|
1171
1174
|
|
1172
1175
|
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
|
@@ -1182,15 +1185,15 @@ static const yytype_int8 yyr1[] =
|
|
1182
1185
|
71, 72, 73, 74, 74, 75, 75, 76, 77, 77,
|
1183
1186
|
78, 78, 79, 80, 80, 81, 81, 81, 81, 81,
|
1184
1187
|
81, 81, 81, 81, 82, 82, 82, 82, 82, 82,
|
1185
|
-
82, 83, 84, 84, 85, 86, 86, 87, 87,
|
1186
|
-
88, 89, 89, 89, 90, 91, 91, 92, 92,
|
1187
|
-
94, 94, 94, 94, 94, 94, 95, 96, 96,
|
1188
|
-
98, 99, 99, 99, 99, 100, 100, 101, 101,
|
1189
|
-
103, 103, 104, 104, 105, 106, 106, 107, 107,
|
1190
|
-
108, 109, 109, 110, 111, 112, 113, 113, 114,
|
1191
|
-
116, 116, 117, 117, 118, 118, 119, 119, 120,
|
1192
|
-
120, 120, 120, 120, 121, 122, 123, 124, 124,
|
1193
|
-
125, 126, 126
|
1188
|
+
82, 82, 83, 84, 84, 85, 86, 86, 87, 87,
|
1189
|
+
88, 88, 89, 89, 89, 90, 91, 91, 92, 92,
|
1190
|
+
93, 94, 94, 94, 94, 94, 94, 95, 96, 96,
|
1191
|
+
97, 98, 99, 99, 99, 99, 100, 100, 101, 101,
|
1192
|
+
102, 103, 103, 104, 104, 105, 106, 106, 107, 107,
|
1193
|
+
107, 108, 109, 109, 110, 111, 112, 113, 113, 114,
|
1194
|
+
115, 116, 116, 117, 117, 118, 118, 119, 119, 120,
|
1195
|
+
120, 120, 120, 120, 120, 121, 122, 123, 124, 124,
|
1196
|
+
125, 125, 126, 126
|
1194
1197
|
};
|
1195
1198
|
|
1196
1199
|
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
|
@@ -1206,15 +1209,15 @@ static const yytype_int8 yyr2[] =
|
|
1206
1209
|
2, 3, 3, 0, 1, 1, 2, 3, 0, 1,
|
1207
1210
|
1, 2, 3, 1, 1, 1, 1, 1, 1, 1,
|
1208
1211
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1209
|
-
1, 3, 5, 3, 6, 0, 1, 1, 2,
|
1210
|
-
3, 1, 1, 1, 3, 0, 3, 1, 2,
|
1211
|
-
1, 1, 1, 1, 1, 1, 1, 0, 1,
|
1212
|
-
6, 0, 3, 2, 2, 1, 3, 1, 2,
|
1213
|
-
1, 2, 0, 3, 6, 0, 3, 0, 1,
|
1214
|
-
6, 1, 3, 6, 7, 3, 1, 2, 7,
|
1215
|
-
0, 1, 1, 3, 1, 1, 6, 3, 1,
|
1216
|
-
1, 1, 1, 1, 4, 6, 6, 6, 4,
|
1217
|
-
4, 7, 4
|
1212
|
+
1, 1, 3, 5, 3, 6, 0, 1, 1, 2,
|
1213
|
+
1, 3, 1, 1, 1, 3, 0, 3, 1, 2,
|
1214
|
+
3, 1, 1, 1, 1, 1, 1, 1, 0, 1,
|
1215
|
+
4, 6, 0, 3, 2, 2, 1, 3, 1, 2,
|
1216
|
+
6, 1, 2, 0, 3, 6, 0, 3, 0, 1,
|
1217
|
+
2, 6, 1, 3, 6, 7, 3, 1, 2, 7,
|
1218
|
+
8, 0, 1, 1, 3, 1, 1, 6, 3, 1,
|
1219
|
+
1, 1, 1, 1, 1, 4, 6, 6, 6, 4,
|
1220
|
+
7, 4, 7, 4
|
1218
1221
|
};
|
1219
1222
|
|
1220
1223
|
|
@@ -1911,7 +1914,7 @@ yyreduce:
|
|
1911
1914
|
case 2: /* start: document */
|
1912
1915
|
#line 103 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1913
1916
|
{ rb_ivar_set(parser, rb_intern("@result"), yyvsp[0]); }
|
1914
|
-
#line
|
1917
|
+
#line 1918 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1915
1918
|
break;
|
1916
1919
|
|
1917
1920
|
case 3: /* document: definitions_list */
|
@@ -1928,19 +1931,19 @@ yyreduce:
|
|
1928
1931
|
}
|
1929
1932
|
yyval = MAKE_AST_NODE(Document, 3, line, col, yyvsp[0]);
|
1930
1933
|
}
|
1931
|
-
#line
|
1934
|
+
#line 1935 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1932
1935
|
break;
|
1933
1936
|
|
1934
1937
|
case 4: /* definitions_list: definition */
|
1935
1938
|
#line 119 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1936
1939
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
1937
|
-
#line
|
1940
|
+
#line 1941 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1938
1941
|
break;
|
1939
1942
|
|
1940
1943
|
case 5: /* definitions_list: definitions_list definition */
|
1941
1944
|
#line 120 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1942
1945
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
1943
|
-
#line
|
1946
|
+
#line 1947 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1944
1947
|
break;
|
1945
1948
|
|
1946
1949
|
case 11: /* operation_definition: operation_type operation_name_opt variable_definitions_opt directives_list_opt selection_set */
|
@@ -1956,7 +1959,7 @@ yyreduce:
|
|
1956
1959
|
yyvsp[0]
|
1957
1960
|
);
|
1958
1961
|
}
|
1959
|
-
#line
|
1962
|
+
#line 1963 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1960
1963
|
break;
|
1961
1964
|
|
1962
1965
|
case 12: /* operation_definition: LCURLY selection_list RCURLY */
|
@@ -1972,7 +1975,7 @@ yyreduce:
|
|
1972
1975
|
yyvsp[-1]
|
1973
1976
|
);
|
1974
1977
|
}
|
1975
|
-
#line
|
1978
|
+
#line 1979 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1976
1979
|
break;
|
1977
1980
|
|
1978
1981
|
case 13: /* operation_definition: LCURLY RCURLY */
|
@@ -1988,37 +1991,37 @@ yyreduce:
|
|
1988
1991
|
GraphQL_Language_Nodes_NONE
|
1989
1992
|
);
|
1990
1993
|
}
|
1991
|
-
#line
|
1994
|
+
#line 1995 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1992
1995
|
break;
|
1993
1996
|
|
1994
1997
|
case 17: /* operation_name_opt: %empty */
|
1995
1998
|
#line 172 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
1996
1999
|
{ yyval = Qnil; }
|
1997
|
-
#line
|
2000
|
+
#line 2001 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
1998
2001
|
break;
|
1999
2002
|
|
2000
2003
|
case 19: /* variable_definitions_opt: %empty */
|
2001
2004
|
#line 176 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2002
2005
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2003
|
-
#line
|
2006
|
+
#line 2007 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2004
2007
|
break;
|
2005
2008
|
|
2006
2009
|
case 20: /* variable_definitions_opt: LPAREN variable_definitions_list RPAREN */
|
2007
2010
|
#line 177 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2008
2011
|
{ yyval = yyvsp[-1]; }
|
2009
|
-
#line
|
2012
|
+
#line 2013 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2010
2013
|
break;
|
2011
2014
|
|
2012
2015
|
case 21: /* variable_definitions_list: variable_definition */
|
2013
2016
|
#line 180 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2014
2017
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2015
|
-
#line
|
2018
|
+
#line 2019 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2016
2019
|
break;
|
2017
2020
|
|
2018
2021
|
case 22: /* variable_definitions_list: variable_definitions_list variable_definition */
|
2019
2022
|
#line 181 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2020
2023
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2021
|
-
#line
|
2024
|
+
#line 2025 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2022
2025
|
break;
|
2023
2026
|
|
2024
2027
|
case 23: /* variable_definition: VAR_SIGN name COLON type default_value_opt */
|
@@ -2032,43 +2035,43 @@ yyreduce:
|
|
2032
2035
|
yyvsp[0]
|
2033
2036
|
);
|
2034
2037
|
}
|
2035
|
-
#line
|
2038
|
+
#line 2039 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2036
2039
|
break;
|
2037
2040
|
|
2038
2041
|
case 24: /* default_value_opt: %empty */
|
2039
2042
|
#line 195 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2040
2043
|
{ yyval = Qnil; }
|
2041
|
-
#line
|
2044
|
+
#line 2045 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2042
2045
|
break;
|
2043
2046
|
|
2044
2047
|
case 25: /* default_value_opt: EQUALS literal_value */
|
2045
2048
|
#line 196 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2046
2049
|
{ yyval = yyvsp[0]; }
|
2047
|
-
#line
|
2050
|
+
#line 2051 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2048
2051
|
break;
|
2049
2052
|
|
2050
2053
|
case 26: /* selection_list: selection */
|
2051
2054
|
#line 199 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2052
2055
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2053
|
-
#line
|
2056
|
+
#line 2057 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2054
2057
|
break;
|
2055
2058
|
|
2056
2059
|
case 27: /* selection_list: selection_list selection */
|
2057
2060
|
#line 200 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2058
2061
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2059
|
-
#line
|
2062
|
+
#line 2063 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2060
2063
|
break;
|
2061
2064
|
|
2062
2065
|
case 31: /* selection_set: LCURLY selection_list RCURLY */
|
2063
2066
|
#line 208 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2064
2067
|
{ yyval = yyvsp[-1]; }
|
2065
|
-
#line
|
2068
|
+
#line 2069 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2066
2069
|
break;
|
2067
2070
|
|
2068
2071
|
case 32: /* selection_set_opt: %empty */
|
2069
2072
|
#line 211 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2070
2073
|
{ yyval = rb_ary_new(); }
|
2071
|
-
#line
|
2074
|
+
#line 2075 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2072
2075
|
break;
|
2073
2076
|
|
2074
2077
|
case 34: /* field: name COLON name arguments_opt directives_list_opt selection_set_opt */
|
@@ -2084,7 +2087,7 @@ yyreduce:
|
|
2084
2087
|
yyvsp[0] // subselections
|
2085
2088
|
);
|
2086
2089
|
}
|
2087
|
-
#line
|
2090
|
+
#line 2091 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2088
2091
|
break;
|
2089
2092
|
|
2090
2093
|
case 35: /* field: name arguments_opt directives_list_opt selection_set_opt */
|
@@ -2100,31 +2103,31 @@ yyreduce:
|
|
2100
2103
|
yyvsp[0] // subselections
|
2101
2104
|
);
|
2102
2105
|
}
|
2103
|
-
#line
|
2106
|
+
#line 2107 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2104
2107
|
break;
|
2105
2108
|
|
2106
2109
|
case 36: /* arguments_opt: %empty */
|
2107
2110
|
#line 239 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2108
2111
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2109
|
-
#line
|
2112
|
+
#line 2113 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2110
2113
|
break;
|
2111
2114
|
|
2112
2115
|
case 37: /* arguments_opt: LPAREN arguments_list RPAREN */
|
2113
2116
|
#line 240 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2114
2117
|
{ yyval = yyvsp[-1]; }
|
2115
|
-
#line
|
2118
|
+
#line 2119 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2116
2119
|
break;
|
2117
2120
|
|
2118
2121
|
case 38: /* arguments_list: argument */
|
2119
2122
|
#line 243 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2120
2123
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2121
|
-
#line
|
2124
|
+
#line 2125 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2122
2125
|
break;
|
2123
2126
|
|
2124
2127
|
case 39: /* arguments_list: arguments_list argument */
|
2125
2128
|
#line 244 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2126
2129
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2127
|
-
#line
|
2130
|
+
#line 2131 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2128
2131
|
break;
|
2129
2132
|
|
2130
2133
|
case 40: /* argument: name COLON input_value */
|
@@ -2137,37 +2140,37 @@ yyreduce:
|
|
2137
2140
|
yyvsp[0]
|
2138
2141
|
);
|
2139
2142
|
}
|
2140
|
-
#line
|
2143
|
+
#line 2144 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2141
2144
|
break;
|
2142
2145
|
|
2143
2146
|
case 41: /* literal_value: FLOAT */
|
2144
2147
|
#line 257 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2145
2148
|
{ yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_f"), 0); }
|
2146
|
-
#line
|
2149
|
+
#line 2150 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2147
2150
|
break;
|
2148
2151
|
|
2149
2152
|
case 42: /* literal_value: INT */
|
2150
2153
|
#line 258 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2151
2154
|
{ yyval = rb_funcall(rb_ary_entry(yyvsp[0], 3), rb_intern("to_i"), 0); }
|
2152
|
-
#line
|
2155
|
+
#line 2156 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2153
2156
|
break;
|
2154
2157
|
|
2155
2158
|
case 43: /* literal_value: STRING */
|
2156
2159
|
#line 259 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2157
2160
|
{ yyval = rb_ary_entry(yyvsp[0], 3); }
|
2158
|
-
#line
|
2161
|
+
#line 2162 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2159
2162
|
break;
|
2160
2163
|
|
2161
2164
|
case 44: /* literal_value: TRUE_LITERAL */
|
2162
2165
|
#line 260 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2163
2166
|
{ yyval = Qtrue; }
|
2164
|
-
#line
|
2167
|
+
#line 2168 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2165
2168
|
break;
|
2166
2169
|
|
2167
2170
|
case 45: /* literal_value: FALSE_LITERAL */
|
2168
2171
|
#line 261 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2169
2172
|
{ yyval = Qfalse; }
|
2170
|
-
#line
|
2173
|
+
#line 2174 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2171
2174
|
break;
|
2172
2175
|
|
2173
2176
|
case 53: /* null_value: NULL_LITERAL */
|
@@ -2179,7 +2182,7 @@ yyreduce:
|
|
2179
2182
|
rb_ary_entry(yyvsp[0], 3)
|
2180
2183
|
);
|
2181
2184
|
}
|
2182
|
-
#line
|
2185
|
+
#line 2186 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2183
2186
|
break;
|
2184
2187
|
|
2185
2188
|
case 54: /* variable: VAR_SIGN name */
|
@@ -2191,31 +2194,31 @@ yyreduce:
|
|
2191
2194
|
rb_ary_entry(yyvsp[0], 3)
|
2192
2195
|
);
|
2193
2196
|
}
|
2194
|
-
#line
|
2197
|
+
#line 2198 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2195
2198
|
break;
|
2196
2199
|
|
2197
2200
|
case 55: /* list_value: LBRACKET RBRACKET */
|
2198
2201
|
#line 289 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2199
2202
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2200
|
-
#line
|
2203
|
+
#line 2204 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2201
2204
|
break;
|
2202
2205
|
|
2203
2206
|
case 56: /* list_value: LBRACKET list_value_list RBRACKET */
|
2204
2207
|
#line 290 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2205
2208
|
{ yyval = yyvsp[-1]; }
|
2206
|
-
#line
|
2209
|
+
#line 2210 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2207
2210
|
break;
|
2208
2211
|
|
2209
2212
|
case 57: /* list_value_list: input_value */
|
2210
2213
|
#line 293 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2211
2214
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2212
|
-
#line
|
2215
|
+
#line 2216 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2213
2216
|
break;
|
2214
2217
|
|
2215
2218
|
case 58: /* list_value_list: list_value_list input_value */
|
2216
2219
|
#line 294 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2217
2220
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2218
|
-
#line
|
2221
|
+
#line 2222 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2219
2222
|
break;
|
2220
2223
|
|
2221
2224
|
case 65: /* enum_value: enum_name */
|
@@ -2227,7 +2230,7 @@ yyreduce:
|
|
2227
2230
|
rb_ary_entry(yyvsp[0], 3)
|
2228
2231
|
);
|
2229
2232
|
}
|
2230
|
-
#line
|
2233
|
+
#line 2234 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2231
2234
|
break;
|
2232
2235
|
|
2233
2236
|
case 66: /* object_value: LCURLY object_value_list_opt RCURLY */
|
@@ -2239,25 +2242,25 @@ yyreduce:
|
|
2239
2242
|
yyvsp[-1]
|
2240
2243
|
);
|
2241
2244
|
}
|
2242
|
-
#line
|
2245
|
+
#line 2246 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2243
2246
|
break;
|
2244
2247
|
|
2245
2248
|
case 67: /* object_value_list_opt: %empty */
|
2246
2249
|
#line 322 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2247
2250
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2248
|
-
#line
|
2251
|
+
#line 2252 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2249
2252
|
break;
|
2250
2253
|
|
2251
2254
|
case 69: /* object_value_list: object_value_field */
|
2252
2255
|
#line 326 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2253
2256
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2254
|
-
#line
|
2257
|
+
#line 2258 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2255
2258
|
break;
|
2256
2259
|
|
2257
2260
|
case 70: /* object_value_list: object_value_list object_value_field */
|
2258
2261
|
#line 327 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2259
2262
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2260
|
-
#line
|
2263
|
+
#line 2264 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2261
2264
|
break;
|
2262
2265
|
|
2263
2266
|
case 71: /* object_value_field: name COLON input_value */
|
@@ -2270,7 +2273,7 @@ yyreduce:
|
|
2270
2273
|
yyvsp[0]
|
2271
2274
|
);
|
2272
2275
|
}
|
2273
|
-
#line
|
2276
|
+
#line 2277 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2274
2277
|
break;
|
2275
2278
|
|
2276
2279
|
case 72: /* object_literal_value: LCURLY object_literal_value_list_opt RCURLY */
|
@@ -2282,25 +2285,25 @@ yyreduce:
|
|
2282
2285
|
yyvsp[-1]
|
2283
2286
|
);
|
2284
2287
|
}
|
2285
|
-
#line
|
2288
|
+
#line 2289 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2286
2289
|
break;
|
2287
2290
|
|
2288
2291
|
case 73: /* object_literal_value_list_opt: %empty */
|
2289
2292
|
#line 350 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2290
2293
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2291
|
-
#line
|
2294
|
+
#line 2295 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2292
2295
|
break;
|
2293
2296
|
|
2294
2297
|
case 75: /* object_literal_value_list: object_literal_value_field */
|
2295
2298
|
#line 354 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2296
2299
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2297
|
-
#line
|
2300
|
+
#line 2301 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2298
2301
|
break;
|
2299
2302
|
|
2300
2303
|
case 76: /* object_literal_value_list: object_literal_value_list object_literal_value_field */
|
2301
2304
|
#line 355 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2302
2305
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2303
|
-
#line
|
2306
|
+
#line 2307 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2304
2307
|
break;
|
2305
2308
|
|
2306
2309
|
case 77: /* object_literal_value_field: name COLON literal_value */
|
@@ -2313,25 +2316,25 @@ yyreduce:
|
|
2313
2316
|
yyvsp[0]
|
2314
2317
|
);
|
2315
2318
|
}
|
2316
|
-
#line
|
2319
|
+
#line 2320 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2317
2320
|
break;
|
2318
2321
|
|
2319
2322
|
case 78: /* directives_list_opt: %empty */
|
2320
2323
|
#line 369 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2321
2324
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2322
|
-
#line
|
2325
|
+
#line 2326 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2323
2326
|
break;
|
2324
2327
|
|
2325
2328
|
case 80: /* directives_list: directive */
|
2326
2329
|
#line 373 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2327
2330
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2328
|
-
#line
|
2331
|
+
#line 2332 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2329
2332
|
break;
|
2330
2333
|
|
2331
2334
|
case 81: /* directives_list: directives_list directive */
|
2332
2335
|
#line 374 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2333
2336
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2334
|
-
#line
|
2337
|
+
#line 2338 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2335
2338
|
break;
|
2336
2339
|
|
2337
2340
|
case 82: /* directive: DIR_SIGN name arguments_opt */
|
@@ -2344,11 +2347,11 @@ yyreduce:
|
|
2344
2347
|
yyvsp[0]
|
2345
2348
|
);
|
2346
2349
|
}
|
2347
|
-
#line
|
2350
|
+
#line 2351 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2348
2351
|
break;
|
2349
2352
|
|
2350
|
-
case
|
2351
|
-
#line
|
2353
|
+
case 102: /* fragment_spread: ELLIPSIS name_without_on directives_list_opt */
|
2354
|
+
#line 412 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2352
2355
|
{
|
2353
2356
|
yyval = MAKE_AST_NODE(FragmentSpread, 4,
|
2354
2357
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2357,11 +2360,11 @@ yyreduce:
|
|
2357
2360
|
yyvsp[0]
|
2358
2361
|
);
|
2359
2362
|
}
|
2360
|
-
#line
|
2363
|
+
#line 2364 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2361
2364
|
break;
|
2362
2365
|
|
2363
|
-
case
|
2364
|
-
#line
|
2366
|
+
case 103: /* inline_fragment: ELLIPSIS ON type directives_list_opt selection_set */
|
2367
|
+
#line 422 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2365
2368
|
{
|
2366
2369
|
yyval = MAKE_AST_NODE(InlineFragment, 5,
|
2367
2370
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2371,11 +2374,11 @@ yyreduce:
|
|
2371
2374
|
yyvsp[0]
|
2372
2375
|
);
|
2373
2376
|
}
|
2374
|
-
#line
|
2377
|
+
#line 2378 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2375
2378
|
break;
|
2376
2379
|
|
2377
|
-
case
|
2378
|
-
#line
|
2380
|
+
case 104: /* inline_fragment: ELLIPSIS directives_list_opt selection_set */
|
2381
|
+
#line 431 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2379
2382
|
{
|
2380
2383
|
yyval = MAKE_AST_NODE(InlineFragment, 5,
|
2381
2384
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2385,11 +2388,11 @@ yyreduce:
|
|
2385
2388
|
yyvsp[0]
|
2386
2389
|
);
|
2387
2390
|
}
|
2388
|
-
#line
|
2391
|
+
#line 2392 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2389
2392
|
break;
|
2390
2393
|
|
2391
|
-
case
|
2392
|
-
#line
|
2394
|
+
case 105: /* fragment_definition: FRAGMENT fragment_name_opt ON type directives_list_opt selection_set */
|
2395
|
+
#line 442 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2393
2396
|
{
|
2394
2397
|
yyval = MAKE_AST_NODE(FragmentDefinition, 6,
|
2395
2398
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2400,29 +2403,29 @@ yyreduce:
|
|
2400
2403
|
yyvsp[0]
|
2401
2404
|
);
|
2402
2405
|
}
|
2403
|
-
#line
|
2406
|
+
#line 2407 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2404
2407
|
break;
|
2405
2408
|
|
2406
|
-
case
|
2407
|
-
#line
|
2409
|
+
case 106: /* fragment_name_opt: %empty */
|
2410
|
+
#line 454 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2408
2411
|
{ yyval = Qnil; }
|
2409
|
-
#line
|
2412
|
+
#line 2413 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2410
2413
|
break;
|
2411
2414
|
|
2412
|
-
case
|
2413
|
-
#line
|
2415
|
+
case 107: /* fragment_name_opt: name_without_on */
|
2416
|
+
#line 455 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2414
2417
|
{ yyval = rb_ary_entry(yyvsp[0], 3); }
|
2415
|
-
#line
|
2418
|
+
#line 2419 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2416
2419
|
break;
|
2417
2420
|
|
2418
|
-
case
|
2419
|
-
#line
|
2421
|
+
case 109: /* type: nullable_type BANG */
|
2422
|
+
#line 459 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2420
2423
|
{ yyval = MAKE_AST_NODE(NonNullType, 3, rb_funcall(yyvsp[-1], rb_intern("line"), 0), rb_funcall(yyvsp[-1], rb_intern("col"), 0), yyvsp[-1]); }
|
2421
|
-
#line
|
2424
|
+
#line 2425 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2422
2425
|
break;
|
2423
2426
|
|
2424
|
-
case
|
2425
|
-
#line
|
2427
|
+
case 110: /* nullable_type: name */
|
2428
|
+
#line 462 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2426
2429
|
{
|
2427
2430
|
yyval = MAKE_AST_NODE(TypeName, 3,
|
2428
2431
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2430,11 +2433,11 @@ yyreduce:
|
|
2430
2433
|
rb_ary_entry(yyvsp[0], 3)
|
2431
2434
|
);
|
2432
2435
|
}
|
2433
|
-
#line
|
2436
|
+
#line 2437 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2434
2437
|
break;
|
2435
2438
|
|
2436
|
-
case
|
2437
|
-
#line
|
2439
|
+
case 111: /* nullable_type: LBRACKET type RBRACKET */
|
2440
|
+
#line 469 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2438
2441
|
{
|
2439
2442
|
yyval = MAKE_AST_NODE(ListType, 3,
|
2440
2443
|
rb_funcall(yyvsp[-1], rb_intern("line"), 0),
|
@@ -2442,11 +2445,11 @@ yyreduce:
|
|
2442
2445
|
yyvsp[-1]
|
2443
2446
|
);
|
2444
2447
|
}
|
2445
|
-
#line
|
2448
|
+
#line 2449 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2446
2449
|
break;
|
2447
2450
|
|
2448
|
-
case
|
2449
|
-
#line
|
2451
|
+
case 115: /* schema_definition: SCHEMA directives_list_opt operation_type_definition_list_opt */
|
2452
|
+
#line 483 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2450
2453
|
{
|
2451
2454
|
yyval = MAKE_AST_NODE(SchemaDefinition, 6,
|
2452
2455
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2458,54 +2461,54 @@ yyreduce:
|
|
2458
2461
|
yyvsp[-1]
|
2459
2462
|
);
|
2460
2463
|
}
|
2461
|
-
#line
|
2464
|
+
#line 2465 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2462
2465
|
break;
|
2463
2466
|
|
2464
|
-
case
|
2465
|
-
#line
|
2467
|
+
case 116: /* operation_type_definition_list_opt: %empty */
|
2468
|
+
#line 496 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2466
2469
|
{ yyval = rb_hash_new(); }
|
2467
|
-
#line
|
2470
|
+
#line 2471 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2468
2471
|
break;
|
2469
2472
|
|
2470
|
-
case
|
2471
|
-
#line
|
2473
|
+
case 117: /* operation_type_definition_list_opt: LCURLY operation_type_definition_list RCURLY */
|
2474
|
+
#line 497 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2472
2475
|
{ yyval = yyvsp[-1]; }
|
2473
|
-
#line
|
2476
|
+
#line 2477 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2474
2477
|
break;
|
2475
2478
|
|
2476
|
-
case
|
2477
|
-
#line
|
2479
|
+
case 118: /* operation_type_definition_list: operation_type_definition */
|
2480
|
+
#line 500 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2478
2481
|
{
|
2479
2482
|
yyval = rb_hash_new();
|
2480
2483
|
rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
|
2481
2484
|
}
|
2482
|
-
#line
|
2485
|
+
#line 2486 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2483
2486
|
break;
|
2484
2487
|
|
2485
|
-
case
|
2486
|
-
#line
|
2488
|
+
case 119: /* operation_type_definition_list: operation_type_definition_list operation_type_definition */
|
2489
|
+
#line 504 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2487
2490
|
{
|
2488
2491
|
rb_hash_aset(yyval, rb_ary_entry(yyvsp[0], 0), rb_ary_entry(yyvsp[0], 1));
|
2489
2492
|
}
|
2490
|
-
#line
|
2493
|
+
#line 2494 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2491
2494
|
break;
|
2492
2495
|
|
2493
|
-
case
|
2494
|
-
#line
|
2496
|
+
case 120: /* operation_type_definition: operation_type COLON name */
|
2497
|
+
#line 509 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2495
2498
|
{
|
2496
2499
|
yyval = rb_ary_new_from_args(2, rb_ary_entry(yyvsp[-2], 3), rb_ary_entry(yyvsp[0], 3));
|
2497
2500
|
}
|
2498
|
-
#line
|
2501
|
+
#line 2502 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2499
2502
|
break;
|
2500
2503
|
|
2501
|
-
case
|
2502
|
-
#line
|
2504
|
+
case 128: /* description_opt: %empty */
|
2505
|
+
#line 524 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2503
2506
|
{ yyval = Qnil; }
|
2504
|
-
#line
|
2507
|
+
#line 2508 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2505
2508
|
break;
|
2506
2509
|
|
2507
|
-
case
|
2508
|
-
#line
|
2510
|
+
case 130: /* scalar_type_definition: description_opt SCALAR name directives_list_opt */
|
2511
|
+
#line 528 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2509
2512
|
{
|
2510
2513
|
yyval = MAKE_AST_NODE(ScalarTypeDefinition, 5,
|
2511
2514
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2516,11 +2519,11 @@ yyreduce:
|
|
2516
2519
|
yyvsp[0]
|
2517
2520
|
);
|
2518
2521
|
}
|
2519
|
-
#line
|
2522
|
+
#line 2523 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2520
2523
|
break;
|
2521
2524
|
|
2522
|
-
case
|
2523
|
-
#line
|
2525
|
+
case 131: /* object_type_definition: description_opt TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
|
2526
|
+
#line 540 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2524
2527
|
{
|
2525
2528
|
yyval = MAKE_AST_NODE(ObjectTypeDefinition, 7,
|
2526
2529
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2533,35 +2536,35 @@ yyreduce:
|
|
2533
2536
|
yyvsp[0]
|
2534
2537
|
);
|
2535
2538
|
}
|
2536
|
-
#line
|
2539
|
+
#line 2540 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2537
2540
|
break;
|
2538
2541
|
|
2539
|
-
case
|
2540
|
-
#line
|
2542
|
+
case 132: /* implements_opt: %empty */
|
2543
|
+
#line 554 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2541
2544
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2542
|
-
#line
|
2545
|
+
#line 2546 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2543
2546
|
break;
|
2544
2547
|
|
2545
|
-
case
|
2546
|
-
#line
|
2548
|
+
case 133: /* implements_opt: IMPLEMENTS AMP interfaces_list */
|
2549
|
+
#line 555 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2547
2550
|
{ yyval = yyvsp[0]; }
|
2548
|
-
#line
|
2551
|
+
#line 2552 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2549
2552
|
break;
|
2550
2553
|
|
2551
|
-
case
|
2552
|
-
#line
|
2554
|
+
case 134: /* implements_opt: IMPLEMENTS interfaces_list */
|
2555
|
+
#line 556 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2553
2556
|
{ yyval = yyvsp[0]; }
|
2554
|
-
#line
|
2557
|
+
#line 2558 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2555
2558
|
break;
|
2556
2559
|
|
2557
|
-
case
|
2558
|
-
#line
|
2560
|
+
case 135: /* implements_opt: IMPLEMENTS legacy_interfaces_list */
|
2561
|
+
#line 557 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2559
2562
|
{ yyval = yyvsp[0]; }
|
2560
|
-
#line
|
2563
|
+
#line 2564 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2561
2564
|
break;
|
2562
2565
|
|
2563
|
-
case
|
2564
|
-
#line
|
2566
|
+
case 136: /* interfaces_list: name */
|
2567
|
+
#line 560 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2565
2568
|
{
|
2566
2569
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3,
|
2567
2570
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2570,20 +2573,20 @@ yyreduce:
|
|
2570
2573
|
);
|
2571
2574
|
yyval = rb_ary_new_from_args(1, new_name);
|
2572
2575
|
}
|
2573
|
-
#line
|
2576
|
+
#line 2577 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2574
2577
|
break;
|
2575
2578
|
|
2576
|
-
case
|
2577
|
-
#line
|
2579
|
+
case 137: /* interfaces_list: interfaces_list AMP name */
|
2580
|
+
#line 568 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2578
2581
|
{
|
2579
2582
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3));
|
2580
2583
|
rb_ary_push(yyval, new_name);
|
2581
2584
|
}
|
2582
|
-
#line
|
2585
|
+
#line 2586 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2583
2586
|
break;
|
2584
2587
|
|
2585
|
-
case
|
2586
|
-
#line
|
2588
|
+
case 138: /* legacy_interfaces_list: name */
|
2589
|
+
#line 574 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2587
2590
|
{
|
2588
2591
|
VALUE new_name = MAKE_AST_NODE(TypeName, 3,
|
2589
2592
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2592,19 +2595,19 @@ yyreduce:
|
|
2592
2595
|
);
|
2593
2596
|
yyval = rb_ary_new_from_args(1, new_name);
|
2594
2597
|
}
|
2595
|
-
#line
|
2598
|
+
#line 2599 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2596
2599
|
break;
|
2597
2600
|
|
2598
|
-
case
|
2599
|
-
#line
|
2601
|
+
case 139: /* legacy_interfaces_list: legacy_interfaces_list name */
|
2602
|
+
#line 582 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2600
2603
|
{
|
2601
2604
|
rb_ary_push(yyval, MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3)));
|
2602
2605
|
}
|
2603
|
-
#line
|
2606
|
+
#line 2607 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2604
2607
|
break;
|
2605
2608
|
|
2606
|
-
case
|
2607
|
-
#line
|
2609
|
+
case 140: /* input_value_definition: description_opt name COLON type default_value_opt directives_list_opt */
|
2610
|
+
#line 587 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2608
2611
|
{
|
2609
2612
|
yyval = MAKE_AST_NODE(InputValueDefinition, 7,
|
2610
2613
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2617,35 +2620,35 @@ yyreduce:
|
|
2617
2620
|
yyvsp[0]
|
2618
2621
|
);
|
2619
2622
|
}
|
2620
|
-
#line
|
2623
|
+
#line 2624 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2621
2624
|
break;
|
2622
2625
|
|
2623
|
-
case
|
2624
|
-
#line
|
2626
|
+
case 141: /* input_value_definition_list: input_value_definition */
|
2627
|
+
#line 601 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2625
2628
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2626
|
-
#line
|
2629
|
+
#line 2630 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2627
2630
|
break;
|
2628
2631
|
|
2629
|
-
case
|
2630
|
-
#line
|
2632
|
+
case 142: /* input_value_definition_list: input_value_definition_list input_value_definition */
|
2633
|
+
#line 602 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2631
2634
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2632
|
-
#line
|
2635
|
+
#line 2636 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2633
2636
|
break;
|
2634
2637
|
|
2635
|
-
case
|
2636
|
-
#line
|
2638
|
+
case 143: /* arguments_definitions_opt: %empty */
|
2639
|
+
#line 605 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2637
2640
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2638
|
-
#line
|
2641
|
+
#line 2642 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2639
2642
|
break;
|
2640
2643
|
|
2641
|
-
case
|
2642
|
-
#line
|
2644
|
+
case 144: /* arguments_definitions_opt: LPAREN input_value_definition_list RPAREN */
|
2645
|
+
#line 606 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2643
2646
|
{ yyval = yyvsp[-1]; }
|
2644
|
-
#line
|
2647
|
+
#line 2648 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2645
2648
|
break;
|
2646
2649
|
|
2647
|
-
case
|
2648
|
-
#line
|
2650
|
+
case 145: /* field_definition: description_opt name arguments_definitions_opt COLON type directives_list_opt */
|
2651
|
+
#line 609 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2649
2652
|
{
|
2650
2653
|
yyval = MAKE_AST_NODE(FieldDefinition, 7,
|
2651
2654
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2658,41 +2661,41 @@ yyreduce:
|
|
2658
2661
|
yyvsp[0]
|
2659
2662
|
);
|
2660
2663
|
}
|
2661
|
-
#line
|
2664
|
+
#line 2665 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2662
2665
|
break;
|
2663
2666
|
|
2664
|
-
case
|
2665
|
-
#line
|
2667
|
+
case 146: /* field_definition_list_opt: %empty */
|
2668
|
+
#line 623 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2666
2669
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2667
|
-
#line
|
2670
|
+
#line 2671 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2668
2671
|
break;
|
2669
2672
|
|
2670
|
-
case
|
2671
|
-
#line
|
2673
|
+
case 147: /* field_definition_list_opt: LCURLY field_definition_list RCURLY */
|
2674
|
+
#line 624 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2672
2675
|
{ yyval = yyvsp[-1]; }
|
2673
|
-
#line
|
2676
|
+
#line 2677 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2674
2677
|
break;
|
2675
2678
|
|
2676
|
-
case
|
2677
|
-
#line
|
2679
|
+
case 148: /* field_definition_list: %empty */
|
2680
|
+
#line 627 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2678
2681
|
{ yyval = GraphQL_Language_Nodes_NONE; }
|
2679
|
-
#line
|
2682
|
+
#line 2683 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2680
2683
|
break;
|
2681
2684
|
|
2682
|
-
case
|
2683
|
-
#line
|
2685
|
+
case 149: /* field_definition_list: field_definition */
|
2686
|
+
#line 628 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2684
2687
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2685
|
-
#line
|
2688
|
+
#line 2689 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2686
2689
|
break;
|
2687
2690
|
|
2688
|
-
case
|
2689
|
-
#line
|
2691
|
+
case 150: /* field_definition_list: field_definition_list field_definition */
|
2692
|
+
#line 629 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2690
2693
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2691
|
-
#line
|
2694
|
+
#line 2695 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2692
2695
|
break;
|
2693
2696
|
|
2694
|
-
case
|
2695
|
-
#line
|
2697
|
+
case 151: /* interface_type_definition: description_opt INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
|
2698
|
+
#line 632 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2696
2699
|
{
|
2697
2700
|
yyval = MAKE_AST_NODE(InterfaceTypeDefinition, 7,
|
2698
2701
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2705,11 +2708,11 @@ yyreduce:
|
|
2705
2708
|
yyvsp[0]
|
2706
2709
|
);
|
2707
2710
|
}
|
2708
|
-
#line
|
2711
|
+
#line 2712 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2709
2712
|
break;
|
2710
2713
|
|
2711
|
-
case
|
2712
|
-
#line
|
2714
|
+
case 152: /* union_members: name */
|
2715
|
+
#line 646 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2713
2716
|
{
|
2714
2717
|
VALUE new_member = MAKE_AST_NODE(TypeName, 3,
|
2715
2718
|
rb_ary_entry(yyvsp[0], 1),
|
@@ -2718,19 +2721,19 @@ yyreduce:
|
|
2718
2721
|
);
|
2719
2722
|
yyval = rb_ary_new_from_args(1, new_member);
|
2720
2723
|
}
|
2721
|
-
#line
|
2724
|
+
#line 2725 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2722
2725
|
break;
|
2723
2726
|
|
2724
|
-
case
|
2725
|
-
#line
|
2727
|
+
case 153: /* union_members: union_members PIPE name */
|
2728
|
+
#line 654 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2726
2729
|
{
|
2727
2730
|
rb_ary_push(yyval, MAKE_AST_NODE(TypeName, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3)));
|
2728
2731
|
}
|
2729
|
-
#line
|
2732
|
+
#line 2733 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2730
2733
|
break;
|
2731
2734
|
|
2732
|
-
case
|
2733
|
-
#line
|
2735
|
+
case 154: /* union_type_definition: description_opt UNION name directives_list_opt EQUALS union_members */
|
2736
|
+
#line 659 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2734
2737
|
{
|
2735
2738
|
yyval = MAKE_AST_NODE(UnionTypeDefinition, 6,
|
2736
2739
|
rb_ary_entry(yyvsp[-4], 1),
|
@@ -2742,11 +2745,11 @@ yyreduce:
|
|
2742
2745
|
yyvsp[-2]
|
2743
2746
|
);
|
2744
2747
|
}
|
2745
|
-
#line
|
2748
|
+
#line 2749 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2746
2749
|
break;
|
2747
2750
|
|
2748
|
-
case
|
2749
|
-
#line
|
2751
|
+
case 155: /* enum_type_definition: description_opt ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
|
2752
|
+
#line 672 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2750
2753
|
{
|
2751
2754
|
yyval = MAKE_AST_NODE(EnumTypeDefinition, 6,
|
2752
2755
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2758,11 +2761,11 @@ yyreduce:
|
|
2758
2761
|
yyvsp[-1]
|
2759
2762
|
);
|
2760
2763
|
}
|
2761
|
-
#line
|
2764
|
+
#line 2765 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2762
2765
|
break;
|
2763
2766
|
|
2764
|
-
case
|
2765
|
-
#line
|
2767
|
+
case 156: /* enum_value_definition: description_opt enum_name directives_list_opt */
|
2768
|
+
#line 685 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2766
2769
|
{
|
2767
2770
|
yyval = MAKE_AST_NODE(EnumValueDefinition, 5,
|
2768
2771
|
rb_ary_entry(yyvsp[-1], 1),
|
@@ -2773,23 +2776,23 @@ yyreduce:
|
|
2773
2776
|
yyvsp[0]
|
2774
2777
|
);
|
2775
2778
|
}
|
2776
|
-
#line
|
2779
|
+
#line 2780 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2777
2780
|
break;
|
2778
2781
|
|
2779
|
-
case
|
2780
|
-
#line
|
2782
|
+
case 157: /* enum_value_definitions: enum_value_definition */
|
2783
|
+
#line 697 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2781
2784
|
{ yyval = rb_ary_new_from_args(1, yyvsp[0]); }
|
2782
|
-
#line
|
2785
|
+
#line 2786 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2783
2786
|
break;
|
2784
2787
|
|
2785
|
-
case
|
2786
|
-
#line
|
2788
|
+
case 158: /* enum_value_definitions: enum_value_definitions enum_value_definition */
|
2789
|
+
#line 698 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2787
2790
|
{ rb_ary_push(yyval, yyvsp[0]); }
|
2788
|
-
#line
|
2791
|
+
#line 2792 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2789
2792
|
break;
|
2790
2793
|
|
2791
|
-
case
|
2792
|
-
#line
|
2794
|
+
case 159: /* input_object_type_definition: description_opt INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
|
2795
|
+
#line 701 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2793
2796
|
{
|
2794
2797
|
yyval = MAKE_AST_NODE(InputObjectTypeDefinition, 6,
|
2795
2798
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2801,11 +2804,11 @@ yyreduce:
|
|
2801
2804
|
yyvsp[-1]
|
2802
2805
|
);
|
2803
2806
|
}
|
2804
|
-
#line
|
2807
|
+
#line 2808 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2805
2808
|
break;
|
2806
2809
|
|
2807
|
-
case
|
2808
|
-
#line
|
2810
|
+
case 160: /* directive_definition: description_opt DIRECTIVE DIR_SIGN name arguments_definitions_opt directive_repeatable_opt ON directive_locations */
|
2811
|
+
#line 714 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2809
2812
|
{
|
2810
2813
|
yyval = MAKE_AST_NODE(DirectiveDefinition, 7,
|
2811
2814
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -2818,35 +2821,35 @@ yyreduce:
|
|
2818
2821
|
yyvsp[0]
|
2819
2822
|
);
|
2820
2823
|
}
|
2821
|
-
#line
|
2824
|
+
#line 2825 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2822
2825
|
break;
|
2823
2826
|
|
2824
|
-
case
|
2825
|
-
#line
|
2827
|
+
case 161: /* directive_repeatable_opt: %empty */
|
2828
|
+
#line 728 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2826
2829
|
{ yyval = Qnil; }
|
2827
|
-
#line
|
2830
|
+
#line 2831 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2828
2831
|
break;
|
2829
2832
|
|
2830
|
-
case
|
2831
|
-
#line
|
2833
|
+
case 162: /* directive_repeatable_opt: REPEATABLE */
|
2834
|
+
#line 729 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2832
2835
|
{ yyval = Qtrue; }
|
2833
|
-
#line
|
2836
|
+
#line 2837 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2834
2837
|
break;
|
2835
2838
|
|
2836
|
-
case
|
2837
|
-
#line
|
2839
|
+
case 163: /* directive_locations: name */
|
2840
|
+
#line 732 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2838
2841
|
{ yyval = rb_ary_new_from_args(1, MAKE_AST_NODE(DirectiveLocation, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3))); }
|
2839
|
-
#line
|
2842
|
+
#line 2843 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2840
2843
|
break;
|
2841
2844
|
|
2842
|
-
case
|
2843
|
-
#line
|
2845
|
+
case 164: /* directive_locations: directive_locations PIPE name */
|
2846
|
+
#line 733 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2844
2847
|
{ rb_ary_push(yyval, MAKE_AST_NODE(DirectiveLocation, 3, rb_ary_entry(yyvsp[0], 1), rb_ary_entry(yyvsp[0], 2), rb_ary_entry(yyvsp[0], 3))); }
|
2845
|
-
#line
|
2848
|
+
#line 2849 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2846
2849
|
break;
|
2847
2850
|
|
2848
|
-
case
|
2849
|
-
#line
|
2851
|
+
case 167: /* schema_extension: EXTEND SCHEMA directives_list_opt LCURLY operation_type_definition_list RCURLY */
|
2852
|
+
#line 741 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2850
2853
|
{
|
2851
2854
|
yyval = MAKE_AST_NODE(SchemaExtension, 6,
|
2852
2855
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2858,11 +2861,11 @@ yyreduce:
|
|
2858
2861
|
yyvsp[-3]
|
2859
2862
|
);
|
2860
2863
|
}
|
2861
|
-
#line
|
2864
|
+
#line 2865 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2862
2865
|
break;
|
2863
2866
|
|
2864
|
-
case
|
2865
|
-
#line
|
2867
|
+
case 168: /* schema_extension: EXTEND SCHEMA directives_list */
|
2868
|
+
#line 752 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2866
2869
|
{
|
2867
2870
|
yyval = MAKE_AST_NODE(SchemaExtension, 6,
|
2868
2871
|
rb_ary_entry(yyvsp[-2], 1),
|
@@ -2873,11 +2876,11 @@ yyreduce:
|
|
2873
2876
|
yyvsp[0]
|
2874
2877
|
);
|
2875
2878
|
}
|
2876
|
-
#line
|
2879
|
+
#line 2880 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2877
2880
|
break;
|
2878
2881
|
|
2879
|
-
case
|
2880
|
-
#line
|
2882
|
+
case 175: /* scalar_type_extension: EXTEND SCALAR name directives_list */
|
2883
|
+
#line 771 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2881
2884
|
{
|
2882
2885
|
yyval = MAKE_AST_NODE(ScalarTypeExtension, 4,
|
2883
2886
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2886,11 +2889,11 @@ yyreduce:
|
|
2886
2889
|
yyvsp[0]
|
2887
2890
|
);
|
2888
2891
|
}
|
2889
|
-
#line
|
2892
|
+
#line 2893 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2890
2893
|
break;
|
2891
2894
|
|
2892
|
-
case
|
2893
|
-
#line
|
2895
|
+
case 176: /* object_type_extension: EXTEND TYPE_LITERAL name implements_opt directives_list_opt field_definition_list_opt */
|
2896
|
+
#line 781 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2894
2897
|
{
|
2895
2898
|
yyval = MAKE_AST_NODE(ObjectTypeExtension, 6,
|
2896
2899
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2901,11 +2904,11 @@ yyreduce:
|
|
2901
2904
|
yyvsp[0]
|
2902
2905
|
);
|
2903
2906
|
}
|
2904
|
-
#line
|
2907
|
+
#line 2908 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2905
2908
|
break;
|
2906
2909
|
|
2907
|
-
case
|
2908
|
-
#line
|
2910
|
+
case 177: /* interface_type_extension: EXTEND INTERFACE name implements_opt directives_list_opt field_definition_list_opt */
|
2911
|
+
#line 793 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2909
2912
|
{
|
2910
2913
|
yyval = MAKE_AST_NODE(InterfaceTypeExtension, 6,
|
2911
2914
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2916,11 +2919,11 @@ yyreduce:
|
|
2916
2919
|
yyvsp[0]
|
2917
2920
|
);
|
2918
2921
|
}
|
2919
|
-
#line
|
2922
|
+
#line 2923 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2920
2923
|
break;
|
2921
2924
|
|
2922
|
-
case
|
2923
|
-
#line
|
2925
|
+
case 178: /* union_type_extension: EXTEND UNION name directives_list_opt EQUALS union_members */
|
2926
|
+
#line 805 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2924
2927
|
{
|
2925
2928
|
yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
|
2926
2929
|
rb_ary_entry(yyvsp[-5], 1),
|
@@ -2930,11 +2933,11 @@ yyreduce:
|
|
2930
2933
|
yyvsp[-2]
|
2931
2934
|
);
|
2932
2935
|
}
|
2933
|
-
#line
|
2936
|
+
#line 2937 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2934
2937
|
break;
|
2935
2938
|
|
2936
|
-
case
|
2937
|
-
#line
|
2939
|
+
case 179: /* union_type_extension: EXTEND UNION name directives_list */
|
2940
|
+
#line 814 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2938
2941
|
{
|
2939
2942
|
yyval = MAKE_AST_NODE(UnionTypeExtension, 5,
|
2940
2943
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2944,11 +2947,11 @@ yyreduce:
|
|
2944
2947
|
yyvsp[0]
|
2945
2948
|
);
|
2946
2949
|
}
|
2947
|
-
#line
|
2950
|
+
#line 2951 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2948
2951
|
break;
|
2949
2952
|
|
2950
|
-
case
|
2951
|
-
#line
|
2953
|
+
case 180: /* enum_type_extension: EXTEND ENUM name directives_list_opt LCURLY enum_value_definitions RCURLY */
|
2954
|
+
#line 825 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2952
2955
|
{
|
2953
2956
|
yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
|
2954
2957
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -2958,11 +2961,11 @@ yyreduce:
|
|
2958
2961
|
yyvsp[-1]
|
2959
2962
|
);
|
2960
2963
|
}
|
2961
|
-
#line
|
2964
|
+
#line 2965 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2962
2965
|
break;
|
2963
2966
|
|
2964
|
-
case
|
2965
|
-
#line
|
2967
|
+
case 181: /* enum_type_extension: EXTEND ENUM name directives_list */
|
2968
|
+
#line 834 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2966
2969
|
{
|
2967
2970
|
yyval = MAKE_AST_NODE(EnumTypeExtension, 5,
|
2968
2971
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -2972,11 +2975,11 @@ yyreduce:
|
|
2972
2975
|
GraphQL_Language_Nodes_NONE
|
2973
2976
|
);
|
2974
2977
|
}
|
2975
|
-
#line
|
2978
|
+
#line 2979 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2976
2979
|
break;
|
2977
2980
|
|
2978
|
-
case
|
2979
|
-
#line
|
2981
|
+
case 182: /* input_object_type_extension: EXTEND INPUT name directives_list_opt LCURLY input_value_definition_list RCURLY */
|
2982
|
+
#line 845 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2980
2983
|
{
|
2981
2984
|
yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
|
2982
2985
|
rb_ary_entry(yyvsp[-6], 1),
|
@@ -2986,11 +2989,11 @@ yyreduce:
|
|
2986
2989
|
yyvsp[-1]
|
2987
2990
|
);
|
2988
2991
|
}
|
2989
|
-
#line
|
2992
|
+
#line 2993 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
2990
2993
|
break;
|
2991
2994
|
|
2992
|
-
case
|
2993
|
-
#line
|
2995
|
+
case 183: /* input_object_type_extension: EXTEND INPUT name directives_list */
|
2996
|
+
#line 854 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
2994
2997
|
{
|
2995
2998
|
yyval = MAKE_AST_NODE(InputObjectTypeExtension, 5,
|
2996
2999
|
rb_ary_entry(yyvsp[-3], 1),
|
@@ -3000,11 +3003,11 @@ yyreduce:
|
|
3000
3003
|
GraphQL_Language_Nodes_NONE
|
3001
3004
|
);
|
3002
3005
|
}
|
3003
|
-
#line
|
3006
|
+
#line 3007 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3004
3007
|
break;
|
3005
3008
|
|
3006
3009
|
|
3007
|
-
#line
|
3010
|
+
#line 3011 "graphql-c_parser/ext/graphql_c_parser_ext/parser.c"
|
3008
3011
|
|
3009
3012
|
default: break;
|
3010
3013
|
}
|
@@ -3228,7 +3231,7 @@ yyreturnlab:
|
|
3228
3231
|
return yyresult;
|
3229
3232
|
}
|
3230
3233
|
|
3231
|
-
#line
|
3234
|
+
#line 864 "graphql-c_parser/ext/graphql_c_parser_ext/parser.y"
|
3232
3235
|
|
3233
3236
|
|
3234
3237
|
// Custom functions
|
@@ -3275,7 +3278,11 @@ void initialize_node_class_variables() {
|
|
3275
3278
|
VALUE mGraphQL = rb_const_get_at(rb_cObject, rb_intern("GraphQL"));
|
3276
3279
|
VALUE mGraphQLLanguage = rb_const_get_at(mGraphQL, rb_intern("Language"));
|
3277
3280
|
VALUE mGraphQLLanguageNodes = rb_const_get_at(mGraphQLLanguage, rb_intern("Nodes"));
|
3278
|
-
|
3281
|
+
|
3282
|
+
GraphQL_Language_Nodes_NONE = rb_ary_new();
|
3283
|
+
rb_global_variable(&GraphQL_Language_Nodes_NONE);
|
3284
|
+
rb_ary_freeze(GraphQL_Language_Nodes_NONE);
|
3285
|
+
|
3279
3286
|
r_string_query = rb_str_new_cstr("query");
|
3280
3287
|
rb_global_variable(&r_string_query);
|
3281
3288
|
rb_str_freeze(r_string_query);
|