graphql-c_parser 1.0.1 → 1.0.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/graphql_c_parser_ext.c +2 -2
- data/ext/graphql_c_parser_ext/lexer.c +92 -89
- data/ext/graphql_c_parser_ext/parser.c +11 -2
- data/lib/graphql/c_parser/version.rb +1 -1
- data/lib/graphql/c_parser.rb +34 -0
- metadata +3 -5
- data/ext/graphql_c_parser_ext/lexer.rl +0 -403
- data/ext/graphql_c_parser_ext/parser.y +0 -942
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c3979cfbf6798e07cc891a6cf8533180789418b08bd78833ddd36c62be3c5df
|
4
|
+
data.tar.gz: fd9292270962ab840a442a3847fa125282ec697abbc7a60fa8a1c98e3668d70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdf683b34458dde0e924c542b6e182a0157abf907fe2973fbb6d546888a4c01b5aa7c512f8ff8b45d5ee7136a8ebef2d00eeb1a50337071a5d0051fa688fbd03
|
7
|
+
data.tar.gz: 7da22594195af48a315eefca9705c68e58f6290bcdc773581815e606ae84d9521d703d2537fbeb88e66d11105f24ae03fa5bdaf3380d4089e66df349a52f4705
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#include "graphql_c_parser_ext.h"
|
2
2
|
|
3
|
-
VALUE
|
3
|
+
VALUE GraphQL_CParser_Lexer_tokenize_with_c(VALUE self, VALUE query_string) {
|
4
4
|
return tokenize(query_string);
|
5
5
|
}
|
6
6
|
|
@@ -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", GraphQL_CParser_Lexer_tokenize_with_c, 1);
|
17
17
|
setup_static_token_variables();
|
18
18
|
|
19
19
|
VALUE Parser = rb_define_class_under(CParser, "Parser", rb_cObject);
|