graphql-c_parser 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/graphql_c_parser_ext/lexer.c +88 -90
- data/ext/graphql_c_parser_ext/parser.c +584 -549
- data/lib/graphql/c_parser/version.rb +1 -1
- data/lib/graphql/c_parser.rb +5 -1
- metadata +3 -7
@@ -776,7 +776,6 @@ typedef struct Meta {
|
|
776
776
|
char *query_cstr;
|
777
777
|
char *pe;
|
778
778
|
VALUE tokens;
|
779
|
-
VALUE previous_token;
|
780
779
|
int dedup_identifiers;
|
781
780
|
int reject_numbers_followed_by_names;
|
782
781
|
int preceeded_by_number;
|
@@ -867,12 +866,13 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
867
866
|
if (meta->reject_numbers_followed_by_names && meta->preceeded_by_number) {
|
868
867
|
VALUE mGraphQL = rb_const_get_at(rb_cObject, rb_intern("GraphQL"));
|
869
868
|
VALUE mCParser = rb_const_get_at(mGraphQL, rb_intern("CParser"));
|
869
|
+
VALUE prev_token = rb_ary_entry(meta->tokens, -1);
|
870
870
|
VALUE exception = rb_funcall(
|
871
871
|
mCParser, rb_intern("prepare_number_name_parse_error"), 5,
|
872
872
|
LONG2NUM(meta->line),
|
873
873
|
LONG2NUM(meta->col),
|
874
874
|
rb_str_new_cstr(meta->query_cstr),
|
875
|
-
rb_ary_entry(
|
875
|
+
rb_ary_entry(prev_token, 3),
|
876
876
|
rb_utf8_str_new(ts, te - ts)
|
877
877
|
);
|
878
878
|
rb_exc_raise(exception);
|
@@ -951,21 +951,18 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
951
951
|
}
|
952
952
|
}
|
953
953
|
|
954
|
-
VALUE token = rb_ary_new_from_args(
|
954
|
+
VALUE token = rb_ary_new_from_args(5,
|
955
955
|
token_sym,
|
956
956
|
rb_int2inum(meta->line),
|
957
957
|
rb_int2inum(meta->col),
|
958
958
|
token_content,
|
959
|
-
meta->previous_token,
|
960
959
|
INT2FIX(200 + (int)tt)
|
961
960
|
);
|
962
961
|
|
963
|
-
// COMMENTs are retained as `previous_token` but aren't pushed to the normal token list
|
964
962
|
if (tt != COMMENT) {
|
965
963
|
rb_ary_push(meta->tokens, token);
|
966
964
|
}
|
967
965
|
meta->preceeded_by_number = this_token_is_number;
|
968
|
-
meta->previous_token = token;
|
969
966
|
}
|
970
967
|
// Bump the column counter for the next token
|
971
968
|
meta->col += te - ts;
|
@@ -975,17 +972,18 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
975
972
|
VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_followed_by_names, int max_tokens) {
|
976
973
|
int cs = 0;
|
977
974
|
int act = 0;
|
978
|
-
char *p =
|
979
|
-
|
975
|
+
char *p = StringValuePtr(query_rbstr);
|
976
|
+
long query_len = RSTRING_LEN(query_rbstr);
|
977
|
+
char *pe = p + query_len;
|
980
978
|
char *eof = pe;
|
981
979
|
char *ts = 0;
|
982
980
|
char *te = 0;
|
983
981
|
VALUE tokens = rb_ary_new();
|
984
|
-
struct Meta meta_s = {1, 1, p, pe, tokens,
|
982
|
+
struct Meta meta_s = {1, 1, p, pe, tokens, fstring_identifiers, reject_numbers_followed_by_names, 0, max_tokens, 0};
|
985
983
|
Meta *meta = &meta_s;
|
986
984
|
|
987
985
|
|
988
|
-
#line
|
986
|
+
#line 987 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
989
987
|
{
|
990
988
|
cs = (int)graphql_c_lexer_start;
|
991
989
|
ts = 0;
|
@@ -993,10 +991,10 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
993
991
|
act = 0;
|
994
992
|
}
|
995
993
|
|
996
|
-
#line
|
994
|
+
#line 407 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
997
995
|
|
998
996
|
|
999
|
-
#line
|
997
|
+
#line 998 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1000
998
|
{
|
1001
999
|
unsigned int _trans = 0;
|
1002
1000
|
const char * _keys;
|
@@ -1011,7 +1009,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1011
1009
|
#line 1 "NONE"
|
1012
1010
|
{ts = p;}}
|
1013
1011
|
|
1014
|
-
#line
|
1012
|
+
#line 1013 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1015
1013
|
|
1016
1014
|
|
1017
1015
|
break;
|
@@ -1049,7 +1047,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1049
1047
|
#line 1 "NONE"
|
1050
1048
|
{te = p+1;}}
|
1051
1049
|
|
1052
|
-
#line
|
1050
|
+
#line 1051 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1053
1051
|
|
1054
1052
|
|
1055
1053
|
break;
|
@@ -1062,7 +1060,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1062
1060
|
emit(RCURLY, ts, te, meta); }
|
1063
1061
|
}}
|
1064
1062
|
|
1065
|
-
#line
|
1063
|
+
#line 1064 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1066
1064
|
|
1067
1065
|
|
1068
1066
|
break;
|
@@ -1075,7 +1073,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1075
1073
|
emit(LCURLY, ts, te, meta); }
|
1076
1074
|
}}
|
1077
1075
|
|
1078
|
-
#line
|
1076
|
+
#line 1077 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1079
1077
|
|
1080
1078
|
|
1081
1079
|
break;
|
@@ -1088,7 +1086,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1088
1086
|
emit(RPAREN, ts, te, meta); }
|
1089
1087
|
}}
|
1090
1088
|
|
1091
|
-
#line
|
1089
|
+
#line 1090 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1092
1090
|
|
1093
1091
|
|
1094
1092
|
break;
|
@@ -1101,7 +1099,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1101
1099
|
emit(LPAREN, ts, te, meta); }
|
1102
1100
|
}}
|
1103
1101
|
|
1104
|
-
#line
|
1102
|
+
#line 1103 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1105
1103
|
|
1106
1104
|
|
1107
1105
|
break;
|
@@ -1114,7 +1112,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1114
1112
|
emit(RBRACKET, ts, te, meta); }
|
1115
1113
|
}}
|
1116
1114
|
|
1117
|
-
#line
|
1115
|
+
#line 1116 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1118
1116
|
|
1119
1117
|
|
1120
1118
|
break;
|
@@ -1127,7 +1125,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1127
1125
|
emit(LBRACKET, ts, te, meta); }
|
1128
1126
|
}}
|
1129
1127
|
|
1130
|
-
#line
|
1128
|
+
#line 1129 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1131
1129
|
|
1132
1130
|
|
1133
1131
|
break;
|
@@ -1140,7 +1138,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1140
1138
|
emit(COLON, ts, te, meta); }
|
1141
1139
|
}}
|
1142
1140
|
|
1143
|
-
#line
|
1141
|
+
#line 1142 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1144
1142
|
|
1145
1143
|
|
1146
1144
|
break;
|
@@ -1153,7 +1151,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1153
1151
|
emit(BLOCK_STRING, ts, te, meta); }
|
1154
1152
|
}}
|
1155
1153
|
|
1156
|
-
#line
|
1154
|
+
#line 1155 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1157
1155
|
|
1158
1156
|
|
1159
1157
|
break;
|
@@ -1166,7 +1164,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1166
1164
|
emit(QUOTED_STRING, ts, te, meta); }
|
1167
1165
|
}}
|
1168
1166
|
|
1169
|
-
#line
|
1167
|
+
#line 1168 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1170
1168
|
|
1171
1169
|
|
1172
1170
|
break;
|
@@ -1179,7 +1177,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1179
1177
|
emit(VAR_SIGN, ts, te, meta); }
|
1180
1178
|
}}
|
1181
1179
|
|
1182
|
-
#line
|
1180
|
+
#line 1181 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1183
1181
|
|
1184
1182
|
|
1185
1183
|
break;
|
@@ -1192,7 +1190,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1192
1190
|
emit(DIR_SIGN, ts, te, meta); }
|
1193
1191
|
}}
|
1194
1192
|
|
1195
|
-
#line
|
1193
|
+
#line 1194 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1196
1194
|
|
1197
1195
|
|
1198
1196
|
break;
|
@@ -1205,7 +1203,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1205
1203
|
emit(ELLIPSIS, ts, te, meta); }
|
1206
1204
|
}}
|
1207
1205
|
|
1208
|
-
#line
|
1206
|
+
#line 1207 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1209
1207
|
|
1210
1208
|
|
1211
1209
|
break;
|
@@ -1218,7 +1216,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1218
1216
|
emit(EQUALS, ts, te, meta); }
|
1219
1217
|
}}
|
1220
1218
|
|
1221
|
-
#line
|
1219
|
+
#line 1220 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1222
1220
|
|
1223
1221
|
|
1224
1222
|
break;
|
@@ -1231,7 +1229,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1231
1229
|
emit(BANG, ts, te, meta); }
|
1232
1230
|
}}
|
1233
1231
|
|
1234
|
-
#line
|
1232
|
+
#line 1233 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1235
1233
|
|
1236
1234
|
|
1237
1235
|
break;
|
@@ -1244,7 +1242,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1244
1242
|
emit(PIPE, ts, te, meta); }
|
1245
1243
|
}}
|
1246
1244
|
|
1247
|
-
#line
|
1245
|
+
#line 1246 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1248
1246
|
|
1249
1247
|
|
1250
1248
|
break;
|
@@ -1257,7 +1255,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1257
1255
|
emit(AMP, ts, te, meta); }
|
1258
1256
|
}}
|
1259
1257
|
|
1260
|
-
#line
|
1258
|
+
#line 1259 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1261
1259
|
|
1262
1260
|
|
1263
1261
|
break;
|
@@ -1274,7 +1272,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1274
1272
|
}
|
1275
1273
|
}}
|
1276
1274
|
|
1277
|
-
#line
|
1275
|
+
#line 1276 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1278
1276
|
|
1279
1277
|
|
1280
1278
|
break;
|
@@ -1287,7 +1285,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1287
1285
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1288
1286
|
}}
|
1289
1287
|
|
1290
|
-
#line
|
1288
|
+
#line 1289 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1291
1289
|
|
1292
1290
|
|
1293
1291
|
break;
|
@@ -1300,7 +1298,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1300
1298
|
emit(INT, ts, te, meta); }
|
1301
1299
|
}}
|
1302
1300
|
|
1303
|
-
#line
|
1301
|
+
#line 1302 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1304
1302
|
|
1305
1303
|
|
1306
1304
|
break;
|
@@ -1313,7 +1311,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1313
1311
|
emit(FLOAT, ts, te, meta); }
|
1314
1312
|
}}
|
1315
1313
|
|
1316
|
-
#line
|
1314
|
+
#line 1315 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1317
1315
|
|
1318
1316
|
|
1319
1317
|
break;
|
@@ -1326,7 +1324,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1326
1324
|
emit(BLOCK_STRING, ts, te, meta); }
|
1327
1325
|
}}
|
1328
1326
|
|
1329
|
-
#line
|
1327
|
+
#line 1328 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1330
1328
|
|
1331
1329
|
|
1332
1330
|
break;
|
@@ -1339,7 +1337,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1339
1337
|
emit(QUOTED_STRING, ts, te, meta); }
|
1340
1338
|
}}
|
1341
1339
|
|
1342
|
-
#line
|
1340
|
+
#line 1341 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1343
1341
|
|
1344
1342
|
|
1345
1343
|
break;
|
@@ -1352,7 +1350,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1352
1350
|
emit(IDENTIFIER, ts, te, meta); }
|
1353
1351
|
}}
|
1354
1352
|
|
1355
|
-
#line
|
1353
|
+
#line 1354 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1356
1354
|
|
1357
1355
|
|
1358
1356
|
break;
|
@@ -1365,7 +1363,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1365
1363
|
emit(COMMENT, ts, te, meta); }
|
1366
1364
|
}}
|
1367
1365
|
|
1368
|
-
#line
|
1366
|
+
#line 1367 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1369
1367
|
|
1370
1368
|
|
1371
1369
|
break;
|
@@ -1381,7 +1379,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1381
1379
|
}
|
1382
1380
|
}}
|
1383
1381
|
|
1384
|
-
#line
|
1382
|
+
#line 1383 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1385
1383
|
|
1386
1384
|
|
1387
1385
|
break;
|
@@ -1394,7 +1392,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1394
1392
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1395
1393
|
}}
|
1396
1394
|
|
1397
|
-
#line
|
1395
|
+
#line 1396 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1398
1396
|
|
1399
1397
|
|
1400
1398
|
break;
|
@@ -1408,7 +1406,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1408
1406
|
emit(INT, ts, te, meta); }
|
1409
1407
|
}}
|
1410
1408
|
|
1411
|
-
#line
|
1409
|
+
#line 1410 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1412
1410
|
|
1413
1411
|
|
1414
1412
|
break;
|
@@ -1422,7 +1420,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1422
1420
|
emit(FLOAT, ts, te, meta); }
|
1423
1421
|
}}
|
1424
1422
|
|
1425
|
-
#line
|
1423
|
+
#line 1424 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1426
1424
|
|
1427
1425
|
|
1428
1426
|
break;
|
@@ -1436,7 +1434,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1436
1434
|
emit(UNKNOWN_CHAR, ts, te, meta); }
|
1437
1435
|
}}
|
1438
1436
|
|
1439
|
-
#line
|
1437
|
+
#line 1438 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1440
1438
|
|
1441
1439
|
|
1442
1440
|
break;
|
@@ -1602,7 +1600,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1602
1600
|
}}
|
1603
1601
|
}
|
1604
1602
|
|
1605
|
-
#line
|
1603
|
+
#line 1604 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1606
1604
|
|
1607
1605
|
|
1608
1606
|
break;
|
@@ -1612,13 +1610,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1612
1610
|
#line 1 "NONE"
|
1613
1611
|
{te = p+1;}}
|
1614
1612
|
|
1615
|
-
#line
|
1613
|
+
#line 1614 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1616
1614
|
|
1617
1615
|
{
|
1618
1616
|
#line 56 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1619
1617
|
{act = 3;}}
|
1620
1618
|
|
1621
|
-
#line
|
1619
|
+
#line 1620 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1622
1620
|
|
1623
1621
|
|
1624
1622
|
break;
|
@@ -1628,13 +1626,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1628
1626
|
#line 1 "NONE"
|
1629
1627
|
{te = p+1;}}
|
1630
1628
|
|
1631
|
-
#line
|
1629
|
+
#line 1630 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1632
1630
|
|
1633
1631
|
{
|
1634
1632
|
#line 57 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1635
1633
|
{act = 4;}}
|
1636
1634
|
|
1637
|
-
#line
|
1635
|
+
#line 1636 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1638
1636
|
|
1639
1637
|
|
1640
1638
|
break;
|
@@ -1644,13 +1642,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1644
1642
|
#line 1 "NONE"
|
1645
1643
|
{te = p+1;}}
|
1646
1644
|
|
1647
|
-
#line
|
1645
|
+
#line 1646 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1648
1646
|
|
1649
1647
|
{
|
1650
1648
|
#line 58 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1651
1649
|
{act = 5;}}
|
1652
1650
|
|
1653
|
-
#line
|
1651
|
+
#line 1652 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1654
1652
|
|
1655
1653
|
|
1656
1654
|
break;
|
@@ -1660,13 +1658,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1660
1658
|
#line 1 "NONE"
|
1661
1659
|
{te = p+1;}}
|
1662
1660
|
|
1663
|
-
#line
|
1661
|
+
#line 1662 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1664
1662
|
|
1665
1663
|
{
|
1666
1664
|
#line 59 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1667
1665
|
{act = 6;}}
|
1668
1666
|
|
1669
|
-
#line
|
1667
|
+
#line 1668 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1670
1668
|
|
1671
1669
|
|
1672
1670
|
break;
|
@@ -1676,13 +1674,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1676
1674
|
#line 1 "NONE"
|
1677
1675
|
{te = p+1;}}
|
1678
1676
|
|
1679
|
-
#line
|
1677
|
+
#line 1678 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1680
1678
|
|
1681
1679
|
{
|
1682
1680
|
#line 60 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1683
1681
|
{act = 7;}}
|
1684
1682
|
|
1685
|
-
#line
|
1683
|
+
#line 1684 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1686
1684
|
|
1687
1685
|
|
1688
1686
|
break;
|
@@ -1692,13 +1690,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1692
1690
|
#line 1 "NONE"
|
1693
1691
|
{te = p+1;}}
|
1694
1692
|
|
1695
|
-
#line
|
1693
|
+
#line 1694 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1696
1694
|
|
1697
1695
|
{
|
1698
1696
|
#line 61 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1699
1697
|
{act = 8;}}
|
1700
1698
|
|
1701
|
-
#line
|
1699
|
+
#line 1700 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1702
1700
|
|
1703
1701
|
|
1704
1702
|
break;
|
@@ -1708,13 +1706,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1708
1706
|
#line 1 "NONE"
|
1709
1707
|
{te = p+1;}}
|
1710
1708
|
|
1711
|
-
#line
|
1709
|
+
#line 1710 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1712
1710
|
|
1713
1711
|
{
|
1714
1712
|
#line 62 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1715
1713
|
{act = 9;}}
|
1716
1714
|
|
1717
|
-
#line
|
1715
|
+
#line 1716 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1718
1716
|
|
1719
1717
|
|
1720
1718
|
break;
|
@@ -1724,13 +1722,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1724
1722
|
#line 1 "NONE"
|
1725
1723
|
{te = p+1;}}
|
1726
1724
|
|
1727
|
-
#line
|
1725
|
+
#line 1726 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1728
1726
|
|
1729
1727
|
{
|
1730
1728
|
#line 63 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1731
1729
|
{act = 10;}}
|
1732
1730
|
|
1733
|
-
#line
|
1731
|
+
#line 1732 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1734
1732
|
|
1735
1733
|
|
1736
1734
|
break;
|
@@ -1740,13 +1738,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1740
1738
|
#line 1 "NONE"
|
1741
1739
|
{te = p+1;}}
|
1742
1740
|
|
1743
|
-
#line
|
1741
|
+
#line 1742 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1744
1742
|
|
1745
1743
|
{
|
1746
1744
|
#line 64 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1747
1745
|
{act = 11;}}
|
1748
1746
|
|
1749
|
-
#line
|
1747
|
+
#line 1748 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1750
1748
|
|
1751
1749
|
|
1752
1750
|
break;
|
@@ -1756,13 +1754,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1756
1754
|
#line 1 "NONE"
|
1757
1755
|
{te = p+1;}}
|
1758
1756
|
|
1759
|
-
#line
|
1757
|
+
#line 1758 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1760
1758
|
|
1761
1759
|
{
|
1762
1760
|
#line 65 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1763
1761
|
{act = 12;}}
|
1764
1762
|
|
1765
|
-
#line
|
1763
|
+
#line 1764 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1766
1764
|
|
1767
1765
|
|
1768
1766
|
break;
|
@@ -1772,13 +1770,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1772
1770
|
#line 1 "NONE"
|
1773
1771
|
{te = p+1;}}
|
1774
1772
|
|
1775
|
-
#line
|
1773
|
+
#line 1774 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1776
1774
|
|
1777
1775
|
{
|
1778
1776
|
#line 66 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1779
1777
|
{act = 13;}}
|
1780
1778
|
|
1781
|
-
#line
|
1779
|
+
#line 1780 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1782
1780
|
|
1783
1781
|
|
1784
1782
|
break;
|
@@ -1788,13 +1786,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1788
1786
|
#line 1 "NONE"
|
1789
1787
|
{te = p+1;}}
|
1790
1788
|
|
1791
|
-
#line
|
1789
|
+
#line 1790 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1792
1790
|
|
1793
1791
|
{
|
1794
1792
|
#line 67 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1795
1793
|
{act = 14;}}
|
1796
1794
|
|
1797
|
-
#line
|
1795
|
+
#line 1796 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1798
1796
|
|
1799
1797
|
|
1800
1798
|
break;
|
@@ -1804,13 +1802,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1804
1802
|
#line 1 "NONE"
|
1805
1803
|
{te = p+1;}}
|
1806
1804
|
|
1807
|
-
#line
|
1805
|
+
#line 1806 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1808
1806
|
|
1809
1807
|
{
|
1810
1808
|
#line 68 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1811
1809
|
{act = 15;}}
|
1812
1810
|
|
1813
|
-
#line
|
1811
|
+
#line 1812 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1814
1812
|
|
1815
1813
|
|
1816
1814
|
break;
|
@@ -1820,13 +1818,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1820
1818
|
#line 1 "NONE"
|
1821
1819
|
{te = p+1;}}
|
1822
1820
|
|
1823
|
-
#line
|
1821
|
+
#line 1822 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1824
1822
|
|
1825
1823
|
{
|
1826
1824
|
#line 69 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1827
1825
|
{act = 16;}}
|
1828
1826
|
|
1829
|
-
#line
|
1827
|
+
#line 1828 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1830
1828
|
|
1831
1829
|
|
1832
1830
|
break;
|
@@ -1836,13 +1834,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1836
1834
|
#line 1 "NONE"
|
1837
1835
|
{te = p+1;}}
|
1838
1836
|
|
1839
|
-
#line
|
1837
|
+
#line 1838 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1840
1838
|
|
1841
1839
|
{
|
1842
1840
|
#line 70 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1843
1841
|
{act = 17;}}
|
1844
1842
|
|
1845
|
-
#line
|
1843
|
+
#line 1844 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1846
1844
|
|
1847
1845
|
|
1848
1846
|
break;
|
@@ -1852,13 +1850,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1852
1850
|
#line 1 "NONE"
|
1853
1851
|
{te = p+1;}}
|
1854
1852
|
|
1855
|
-
#line
|
1853
|
+
#line 1854 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1856
1854
|
|
1857
1855
|
{
|
1858
1856
|
#line 71 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1859
1857
|
{act = 18;}}
|
1860
1858
|
|
1861
|
-
#line
|
1859
|
+
#line 1860 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1862
1860
|
|
1863
1861
|
|
1864
1862
|
break;
|
@@ -1868,13 +1866,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1868
1866
|
#line 1 "NONE"
|
1869
1867
|
{te = p+1;}}
|
1870
1868
|
|
1871
|
-
#line
|
1869
|
+
#line 1870 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1872
1870
|
|
1873
1871
|
{
|
1874
1872
|
#line 72 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1875
1873
|
{act = 19;}}
|
1876
1874
|
|
1877
|
-
#line
|
1875
|
+
#line 1876 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1878
1876
|
|
1879
1877
|
|
1880
1878
|
break;
|
@@ -1884,13 +1882,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1884
1882
|
#line 1 "NONE"
|
1885
1883
|
{te = p+1;}}
|
1886
1884
|
|
1887
|
-
#line
|
1885
|
+
#line 1886 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1888
1886
|
|
1889
1887
|
{
|
1890
1888
|
#line 73 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1891
1889
|
{act = 20;}}
|
1892
1890
|
|
1893
|
-
#line
|
1891
|
+
#line 1892 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1894
1892
|
|
1895
1893
|
|
1896
1894
|
break;
|
@@ -1900,13 +1898,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1900
1898
|
#line 1 "NONE"
|
1901
1899
|
{te = p+1;}}
|
1902
1900
|
|
1903
|
-
#line
|
1901
|
+
#line 1902 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1904
1902
|
|
1905
1903
|
{
|
1906
1904
|
#line 74 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1907
1905
|
{act = 21;}}
|
1908
1906
|
|
1909
|
-
#line
|
1907
|
+
#line 1908 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1910
1908
|
|
1911
1909
|
|
1912
1910
|
break;
|
@@ -1916,13 +1914,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1916
1914
|
#line 1 "NONE"
|
1917
1915
|
{te = p+1;}}
|
1918
1916
|
|
1919
|
-
#line
|
1917
|
+
#line 1918 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1920
1918
|
|
1921
1919
|
{
|
1922
1920
|
#line 82 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1923
1921
|
{act = 29;}}
|
1924
1922
|
|
1925
|
-
#line
|
1923
|
+
#line 1924 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1926
1924
|
|
1927
1925
|
|
1928
1926
|
break;
|
@@ -1932,13 +1930,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1932
1930
|
#line 1 "NONE"
|
1933
1931
|
{te = p+1;}}
|
1934
1932
|
|
1935
|
-
#line
|
1933
|
+
#line 1934 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1936
1934
|
|
1937
1935
|
{
|
1938
1936
|
#line 83 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1939
1937
|
{act = 30;}}
|
1940
1938
|
|
1941
|
-
#line
|
1939
|
+
#line 1940 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1942
1940
|
|
1943
1941
|
|
1944
1942
|
break;
|
@@ -1948,13 +1946,13 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1948
1946
|
#line 1 "NONE"
|
1949
1947
|
{te = p+1;}}
|
1950
1948
|
|
1951
|
-
#line
|
1949
|
+
#line 1950 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1952
1950
|
|
1953
1951
|
{
|
1954
1952
|
#line 91 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1955
1953
|
{act = 38;}}
|
1956
1954
|
|
1957
|
-
#line
|
1955
|
+
#line 1956 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1958
1956
|
|
1959
1957
|
|
1960
1958
|
break;
|
@@ -1974,7 +1972,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1974
1972
|
#line 1 "NONE"
|
1975
1973
|
{ts = 0;}}
|
1976
1974
|
|
1977
|
-
#line
|
1975
|
+
#line 1976 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.c"
|
1978
1976
|
|
1979
1977
|
|
1980
1978
|
break;
|
@@ -1987,7 +1985,7 @@ VALUE tokenize(VALUE query_rbstr, int fstring_identifiers, int reject_numbers_fo
|
|
1987
1985
|
_out: {}
|
1988
1986
|
}
|
1989
1987
|
|
1990
|
-
#line
|
1988
|
+
#line 408 "graphql-c_parser/ext/graphql_c_parser_ext/lexer.rl"
|
1991
1989
|
|
1992
1990
|
|
1993
1991
|
return tokens;
|