graphql-c_parser 1.0.8 → 1.1.1
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/graphql_c_parser_ext.c +3 -3
- data/ext/graphql_c_parser_ext/graphql_c_parser_ext.h +1 -0
- data/ext/graphql_c_parser_ext/lexer.c +372 -317
- data/ext/graphql_c_parser_ext/lexer.h +1 -1
- data/lib/graphql/c_parser/version.rb +1 -1
- data/lib/graphql/c_parser.rb +40 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce3db30ea33e3358c671556d5a3d4d8338e578da71948bd0dcd924a24b8fa23
|
4
|
+
data.tar.gz: d80041b89bdadc5a83a60e352a68b4ace5b18de7eb34dabec09a6f180d13989d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f85e41f5361db1ca4d9025ea239069127b3535c20ac2f2afde1c79a89b019bf953a221eafe65739d2ebd9bf8f479aa37ab3ef520d1e3df0c30c0401291a0e92
|
7
|
+
data.tar.gz: c1f171a7ca8f49304a58e4b0fb4acab15ce51e9f51c39ff5817df31e385478488e87a854915cc666bc672b5741d6ecaf9916a8e02c4c059fae186c4a30960bc1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#include "graphql_c_parser_ext.h"
|
2
2
|
|
3
|
-
VALUE
|
4
|
-
return tokenize(query_string);
|
3
|
+
VALUE GraphQL_CParser_Lexer_tokenize_with_c_internal(VALUE self, VALUE query_string, VALUE fstring_identifiers, VALUE reject_numbers_followed_by_names, VALUE max_tokens) {
|
4
|
+
return tokenize(query_string, RTEST(fstring_identifiers), RTEST(reject_numbers_followed_by_names), FIX2INT(max_tokens));
|
5
5
|
}
|
6
6
|
|
7
7
|
VALUE GraphQL_CParser_Parser_c_parse(VALUE self) {
|
@@ -13,7 +13,7 @@ void Init_graphql_c_parser_ext() {
|
|
13
13
|
VALUE GraphQL = rb_define_module("GraphQL");
|
14
14
|
VALUE CParser = rb_define_module_under(GraphQL, "CParser");
|
15
15
|
VALUE Lexer = rb_define_module_under(CParser, "Lexer");
|
16
|
-
rb_define_singleton_method(Lexer, "
|
16
|
+
rb_define_singleton_method(Lexer, "tokenize_with_c_internal", GraphQL_CParser_Lexer_tokenize_with_c_internal, 4);
|
17
17
|
setup_static_token_variables();
|
18
18
|
|
19
19
|
VALUE Parser = rb_define_class_under(CParser, "Parser", rb_cObject);
|