yarp 0.12.0 → 0.13.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 +29 -8
- data/CONTRIBUTING.md +2 -2
- data/Makefile +5 -5
- data/README.md +11 -12
- data/config.yml +6 -2
- data/docs/build_system.md +21 -21
- data/docs/building.md +4 -4
- data/docs/configuration.md +25 -21
- data/docs/design.md +2 -2
- data/docs/encoding.md +17 -17
- data/docs/fuzzing.md +4 -4
- data/docs/heredocs.md +3 -3
- data/docs/mapping.md +94 -94
- data/docs/ripper.md +4 -4
- data/docs/ruby_api.md +11 -11
- data/docs/serialization.md +17 -16
- data/docs/testing.md +6 -6
- data/ext/prism/api_node.c +4725 -0
- data/ext/{yarp → prism}/api_pack.c +82 -82
- data/ext/{yarp → prism}/extconf.rb +13 -13
- data/ext/{yarp → prism}/extension.c +175 -168
- data/ext/prism/extension.h +18 -0
- data/include/prism/ast.h +1932 -0
- data/include/prism/defines.h +45 -0
- data/include/prism/diagnostic.h +231 -0
- data/include/{yarp/enc/yp_encoding.h → prism/enc/pm_encoding.h} +40 -40
- data/include/prism/node.h +41 -0
- data/include/prism/pack.h +141 -0
- data/include/{yarp → prism}/parser.h +143 -142
- data/include/prism/regexp.h +19 -0
- data/include/prism/unescape.h +48 -0
- data/include/prism/util/pm_buffer.h +51 -0
- data/include/{yarp/util/yp_char.h → prism/util/pm_char.h} +20 -20
- data/include/{yarp/util/yp_constant_pool.h → prism/util/pm_constant_pool.h} +26 -22
- data/include/{yarp/util/yp_list.h → prism/util/pm_list.h} +21 -21
- data/include/prism/util/pm_memchr.h +14 -0
- data/include/{yarp/util/yp_newline_list.h → prism/util/pm_newline_list.h} +11 -11
- data/include/prism/util/pm_state_stack.h +24 -0
- data/include/{yarp/util/yp_string.h → prism/util/pm_string.h} +20 -20
- data/include/prism/util/pm_string_list.h +25 -0
- data/include/{yarp/util/yp_strpbrk.h → prism/util/pm_strpbrk.h} +7 -7
- data/include/prism/version.h +4 -0
- data/include/prism.h +82 -0
- data/lib/prism/compiler.rb +465 -0
- data/lib/prism/debug.rb +157 -0
- data/lib/{yarp/desugar_visitor.rb → prism/desugar_compiler.rb} +4 -2
- data/lib/prism/dispatcher.rb +2051 -0
- data/lib/prism/dsl.rb +750 -0
- data/lib/{yarp → prism}/ffi.rb +66 -67
- data/lib/{yarp → prism}/lex_compat.rb +40 -43
- data/lib/{yarp/mutation_visitor.rb → prism/mutation_compiler.rb} +3 -3
- data/lib/{yarp → prism}/node.rb +2012 -2593
- data/lib/prism/node_ext.rb +55 -0
- data/lib/prism/node_inspector.rb +68 -0
- data/lib/{yarp → prism}/pack.rb +1 -1
- data/lib/{yarp → prism}/parse_result/comments.rb +1 -1
- data/lib/{yarp → prism}/parse_result/newlines.rb +1 -1
- data/lib/prism/parse_result.rb +266 -0
- data/lib/{yarp → prism}/pattern.rb +14 -14
- data/lib/{yarp → prism}/ripper_compat.rb +5 -5
- data/lib/{yarp → prism}/serialize.rb +12 -7
- data/lib/prism/visitor.rb +470 -0
- data/lib/prism.rb +64 -0
- data/lib/yarp.rb +2 -614
- data/src/diagnostic.c +213 -208
- data/src/enc/pm_big5.c +52 -0
- data/src/enc/pm_euc_jp.c +58 -0
- data/src/enc/{yp_gbk.c → pm_gbk.c} +16 -16
- data/src/enc/pm_shift_jis.c +56 -0
- data/src/enc/{yp_tables.c → pm_tables.c} +69 -69
- data/src/enc/{yp_unicode.c → pm_unicode.c} +40 -40
- data/src/enc/pm_windows_31j.c +56 -0
- data/src/node.c +1293 -1233
- data/src/pack.c +247 -247
- data/src/prettyprint.c +1479 -1479
- data/src/{yarp.c → prism.c} +5205 -5083
- data/src/regexp.c +132 -132
- data/src/serialize.c +1121 -1121
- data/src/token_type.c +169 -167
- data/src/unescape.c +106 -87
- data/src/util/pm_buffer.c +103 -0
- data/src/util/{yp_char.c → pm_char.c} +72 -72
- data/src/util/{yp_constant_pool.c → pm_constant_pool.c} +85 -64
- data/src/util/{yp_list.c → pm_list.c} +10 -10
- data/src/util/{yp_memchr.c → pm_memchr.c} +6 -4
- data/src/util/{yp_newline_list.c → pm_newline_list.c} +21 -21
- data/src/util/{yp_state_stack.c → pm_state_stack.c} +4 -4
- data/src/util/{yp_string.c → pm_string.c} +38 -38
- data/src/util/pm_string_list.c +29 -0
- data/src/util/{yp_strncasecmp.c → pm_strncasecmp.c} +1 -1
- data/src/util/{yp_strpbrk.c → pm_strpbrk.c} +8 -8
- data/yarp.gemspec +68 -59
- metadata +70 -61
- data/ext/yarp/api_node.c +0 -4728
- data/ext/yarp/extension.h +0 -18
- data/include/yarp/ast.h +0 -1929
- data/include/yarp/defines.h +0 -45
- data/include/yarp/diagnostic.h +0 -226
- data/include/yarp/node.h +0 -42
- data/include/yarp/pack.h +0 -141
- data/include/yarp/regexp.h +0 -19
- data/include/yarp/unescape.h +0 -44
- data/include/yarp/util/yp_buffer.h +0 -51
- data/include/yarp/util/yp_memchr.h +0 -14
- data/include/yarp/util/yp_state_stack.h +0 -24
- data/include/yarp/util/yp_string_list.h +0 -25
- data/include/yarp/version.h +0 -4
- data/include/yarp.h +0 -82
- data/src/enc/yp_big5.c +0 -52
- data/src/enc/yp_euc_jp.c +0 -58
- data/src/enc/yp_shift_jis.c +0 -56
- data/src/enc/yp_windows_31j.c +0 -56
- data/src/util/yp_buffer.c +0 -101
- data/src/util/yp_string_list.c +0 -29
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yarp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.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-09-
|
11
|
+
date: 2023-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
15
15
|
- ruby@shopify.com
|
16
16
|
executables: []
|
17
17
|
extensions:
|
18
|
-
- ext/
|
18
|
+
- ext/prism/extconf.rb
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- CHANGELOG.md
|
@@ -37,73 +37,82 @@ files:
|
|
37
37
|
- docs/ruby_api.md
|
38
38
|
- docs/serialization.md
|
39
39
|
- docs/testing.md
|
40
|
-
- ext/
|
41
|
-
- ext/
|
42
|
-
- ext/
|
43
|
-
- ext/
|
44
|
-
- ext/
|
45
|
-
- include/
|
46
|
-
- include/
|
47
|
-
- include/
|
48
|
-
- include/
|
49
|
-
- include/
|
50
|
-
- include/
|
51
|
-
- include/
|
52
|
-
- include/
|
53
|
-
- include/
|
54
|
-
- include/
|
55
|
-
- include/
|
56
|
-
- include/
|
57
|
-
- include/
|
58
|
-
- include/
|
59
|
-
- include/
|
60
|
-
- include/
|
61
|
-
- include/
|
62
|
-
- include/
|
63
|
-
- include/
|
64
|
-
- include/
|
65
|
-
- include/
|
40
|
+
- ext/prism/api_node.c
|
41
|
+
- ext/prism/api_pack.c
|
42
|
+
- ext/prism/extconf.rb
|
43
|
+
- ext/prism/extension.c
|
44
|
+
- ext/prism/extension.h
|
45
|
+
- include/prism.h
|
46
|
+
- include/prism/ast.h
|
47
|
+
- include/prism/defines.h
|
48
|
+
- include/prism/diagnostic.h
|
49
|
+
- include/prism/enc/pm_encoding.h
|
50
|
+
- include/prism/node.h
|
51
|
+
- include/prism/pack.h
|
52
|
+
- include/prism/parser.h
|
53
|
+
- include/prism/regexp.h
|
54
|
+
- include/prism/unescape.h
|
55
|
+
- include/prism/util/pm_buffer.h
|
56
|
+
- include/prism/util/pm_char.h
|
57
|
+
- include/prism/util/pm_constant_pool.h
|
58
|
+
- include/prism/util/pm_list.h
|
59
|
+
- include/prism/util/pm_memchr.h
|
60
|
+
- include/prism/util/pm_newline_list.h
|
61
|
+
- include/prism/util/pm_state_stack.h
|
62
|
+
- include/prism/util/pm_string.h
|
63
|
+
- include/prism/util/pm_string_list.h
|
64
|
+
- include/prism/util/pm_strpbrk.h
|
65
|
+
- include/prism/version.h
|
66
|
+
- lib/prism.rb
|
67
|
+
- lib/prism/compiler.rb
|
68
|
+
- lib/prism/debug.rb
|
69
|
+
- lib/prism/desugar_compiler.rb
|
70
|
+
- lib/prism/dispatcher.rb
|
71
|
+
- lib/prism/dsl.rb
|
72
|
+
- lib/prism/ffi.rb
|
73
|
+
- lib/prism/lex_compat.rb
|
74
|
+
- lib/prism/mutation_compiler.rb
|
75
|
+
- lib/prism/node.rb
|
76
|
+
- lib/prism/node_ext.rb
|
77
|
+
- lib/prism/node_inspector.rb
|
78
|
+
- lib/prism/pack.rb
|
79
|
+
- lib/prism/parse_result.rb
|
80
|
+
- lib/prism/parse_result/comments.rb
|
81
|
+
- lib/prism/parse_result/newlines.rb
|
82
|
+
- lib/prism/pattern.rb
|
83
|
+
- lib/prism/ripper_compat.rb
|
84
|
+
- lib/prism/serialize.rb
|
85
|
+
- lib/prism/visitor.rb
|
66
86
|
- lib/yarp.rb
|
67
|
-
- lib/yarp/desugar_visitor.rb
|
68
|
-
- lib/yarp/ffi.rb
|
69
|
-
- lib/yarp/lex_compat.rb
|
70
|
-
- lib/yarp/mutation_visitor.rb
|
71
|
-
- lib/yarp/node.rb
|
72
|
-
- lib/yarp/pack.rb
|
73
|
-
- lib/yarp/parse_result/comments.rb
|
74
|
-
- lib/yarp/parse_result/newlines.rb
|
75
|
-
- lib/yarp/pattern.rb
|
76
|
-
- lib/yarp/ripper_compat.rb
|
77
|
-
- lib/yarp/serialize.rb
|
78
87
|
- src/diagnostic.c
|
79
|
-
- src/enc/
|
80
|
-
- src/enc/
|
81
|
-
- src/enc/
|
82
|
-
- src/enc/
|
83
|
-
- src/enc/
|
84
|
-
- src/enc/
|
85
|
-
- src/enc/
|
88
|
+
- src/enc/pm_big5.c
|
89
|
+
- src/enc/pm_euc_jp.c
|
90
|
+
- src/enc/pm_gbk.c
|
91
|
+
- src/enc/pm_shift_jis.c
|
92
|
+
- src/enc/pm_tables.c
|
93
|
+
- src/enc/pm_unicode.c
|
94
|
+
- src/enc/pm_windows_31j.c
|
86
95
|
- src/node.c
|
87
96
|
- src/pack.c
|
88
97
|
- src/prettyprint.c
|
98
|
+
- src/prism.c
|
89
99
|
- src/regexp.c
|
90
100
|
- src/serialize.c
|
91
101
|
- src/token_type.c
|
92
102
|
- src/unescape.c
|
93
|
-
- src/util/
|
94
|
-
- src/util/
|
95
|
-
- src/util/
|
96
|
-
- src/util/
|
97
|
-
- src/util/
|
98
|
-
- src/util/
|
99
|
-
- src/util/
|
100
|
-
- src/util/
|
101
|
-
- src/util/
|
102
|
-
- src/util/
|
103
|
-
- src/util/
|
104
|
-
- src/yarp.c
|
103
|
+
- src/util/pm_buffer.c
|
104
|
+
- src/util/pm_char.c
|
105
|
+
- src/util/pm_constant_pool.c
|
106
|
+
- src/util/pm_list.c
|
107
|
+
- src/util/pm_memchr.c
|
108
|
+
- src/util/pm_newline_list.c
|
109
|
+
- src/util/pm_state_stack.c
|
110
|
+
- src/util/pm_string.c
|
111
|
+
- src/util/pm_string_list.c
|
112
|
+
- src/util/pm_strncasecmp.c
|
113
|
+
- src/util/pm_strpbrk.c
|
105
114
|
- yarp.gemspec
|
106
|
-
homepage: https://github.com/ruby/
|
115
|
+
homepage: https://github.com/ruby/prism
|
107
116
|
licenses:
|
108
117
|
- MIT
|
109
118
|
metadata:
|
@@ -126,5 +135,5 @@ requirements: []
|
|
126
135
|
rubygems_version: 3.4.1
|
127
136
|
signing_key:
|
128
137
|
specification_version: 4
|
129
|
-
summary:
|
138
|
+
summary: Prism Ruby parser
|
130
139
|
test_files: []
|