yarp 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -1
- data/README.md +4 -3
- data/config.yml +332 -52
- data/docs/configuration.md +1 -0
- data/docs/ruby_api.md +2 -0
- data/docs/serialization.md +1 -1
- data/docs/testing.md +2 -2
- data/ext/yarp/api_node.c +703 -136
- data/ext/yarp/extension.c +73 -24
- data/ext/yarp/extension.h +2 -2
- data/include/yarp/ast.h +331 -137
- data/include/yarp/node.h +10 -0
- data/include/yarp/unescape.h +4 -2
- data/include/yarp/util/yp_newline_list.h +3 -0
- data/include/yarp/version.h +2 -2
- data/include/yarp.h +10 -0
- data/lib/yarp/desugar_visitor.rb +267 -0
- data/lib/yarp/ffi.rb +27 -1
- data/lib/yarp/lex_compat.rb +93 -25
- data/lib/yarp/mutation_visitor.rb +683 -0
- data/lib/yarp/node.rb +3042 -508
- data/lib/yarp/serialize.rb +198 -126
- data/lib/yarp.rb +48 -2
- data/src/node.c +421 -185
- data/src/prettyprint.c +262 -80
- data/src/serialize.c +410 -270
- data/src/token_type.c +2 -2
- data/src/unescape.c +69 -51
- data/src/util/yp_newline_list.c +10 -0
- data/src/yarp.c +1208 -458
- data/yarp.gemspec +3 -1
- metadata +4 -2
data/yarp.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "yarp"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.9.0"
|
6
6
|
spec.authors = ["Shopify"]
|
7
7
|
spec.email = ["ruby@shopify.com"]
|
8
8
|
|
@@ -59,8 +59,10 @@ Gem::Specification.new do |spec|
|
|
59
59
|
"include/yarp/util/yp_strpbrk.h",
|
60
60
|
"include/yarp/version.h",
|
61
61
|
"lib/yarp.rb",
|
62
|
+
"lib/yarp/desugar_visitor.rb",
|
62
63
|
"lib/yarp/ffi.rb",
|
63
64
|
"lib/yarp/lex_compat.rb",
|
65
|
+
"lib/yarp/mutation_visitor.rb",
|
64
66
|
"lib/yarp/node.rb",
|
65
67
|
"lib/yarp/pack.rb",
|
66
68
|
"lib/yarp/ripper_compat.rb",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yarp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -64,8 +64,10 @@ files:
|
|
64
64
|
- include/yarp/util/yp_strpbrk.h
|
65
65
|
- include/yarp/version.h
|
66
66
|
- lib/yarp.rb
|
67
|
+
- lib/yarp/desugar_visitor.rb
|
67
68
|
- lib/yarp/ffi.rb
|
68
69
|
- lib/yarp/lex_compat.rb
|
70
|
+
- lib/yarp/mutation_visitor.rb
|
69
71
|
- lib/yarp/node.rb
|
70
72
|
- lib/yarp/pack.rb
|
71
73
|
- lib/yarp/ripper_compat.rb
|