ruby_parser 3.12.0 → 3.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.autotest +18 -29
- data/History.rdoc +283 -0
- data/Manifest.txt +12 -4
- data/README.rdoc +4 -3
- data/Rakefile +189 -51
- data/bin/ruby_parse +3 -1
- data/bin/ruby_parse_extract_error +19 -36
- data/compare/normalize.rb +76 -4
- data/debugging.md +190 -0
- data/gauntlet.md +106 -0
- data/lib/rp_extensions.rb +14 -42
- data/lib/rp_stringscanner.rb +20 -51
- data/lib/ruby20_parser.rb +4659 -4218
- data/lib/ruby20_parser.y +953 -602
- data/lib/ruby21_parser.rb +4723 -4308
- data/lib/ruby21_parser.y +956 -605
- data/lib/ruby22_parser.rb +4762 -4337
- data/lib/ruby22_parser.y +960 -612
- data/lib/ruby23_parser.rb +4761 -4342
- data/lib/ruby23_parser.y +961 -613
- data/lib/ruby24_parser.rb +4791 -4341
- data/lib/ruby24_parser.y +968 -612
- data/lib/ruby25_parser.rb +4791 -4341
- data/lib/ruby25_parser.y +968 -612
- data/lib/ruby26_parser.rb +7287 -0
- data/lib/ruby26_parser.y +2749 -0
- data/lib/ruby27_parser.rb +8517 -0
- data/lib/ruby27_parser.y +3346 -0
- data/lib/ruby30_parser.rb +8751 -0
- data/lib/ruby30_parser.y +3472 -0
- data/lib/ruby3_parser.yy +3476 -0
- data/lib/ruby_lexer.rb +611 -826
- data/lib/ruby_lexer.rex +48 -40
- data/lib/ruby_lexer.rex.rb +122 -46
- data/lib/ruby_lexer_strings.rb +638 -0
- data/lib/ruby_parser.rb +38 -34
- data/lib/ruby_parser.yy +1710 -704
- data/lib/ruby_parser_extras.rb +987 -553
- data/test/test_ruby_lexer.rb +1718 -1539
- data/test/test_ruby_parser.rb +3957 -2164
- data/test/test_ruby_parser_extras.rb +39 -4
- data/tools/munge.rb +250 -0
- data/tools/ripper.rb +44 -0
- data.tar.gz.sig +0 -0
- metadata +68 -47
- metadata.gz.sig +0 -0
- data/lib/ruby18_parser.rb +0 -5793
- data/lib/ruby18_parser.y +0 -1908
- data/lib/ruby19_parser.rb +0 -6185
- data/lib/ruby19_parser.y +0 -2116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad59e40690dfb746fea4399e13d05f97b43cf562c2559c67d1f9b5868da86c5
|
4
|
+
data.tar.gz: 0c14605ecf34929f6d4865c20f085b6ef2a35533a70e530f261f9d04f44998cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa69e55ac577e55fa2945ef9c135b47359a646e654bc8cf9f2ead973852adb97350cf67ac5da549592ea583f4824cd5f6930a167fa19cf3f914cb6d6888093d
|
7
|
+
data.tar.gz: 0c13eb02ffaf3b3c60ef358be2fa8f70b951e947170d3eeb8a94e5c37bec5dc8282376e4ab3f03de99e49b6e2aac2aa13169b31c30de1067e1a290c1fd65803a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.autotest
CHANGED
@@ -7,20 +7,20 @@ require 'autotest/rcov' if ENV['RCOV']
|
|
7
7
|
Autotest.add_hook :initialize do |at|
|
8
8
|
at.extra_files << "../../sexp_processor/dev/lib/pt_testcase.rb"
|
9
9
|
at.libs << ":../../sexp_processor/dev/lib"
|
10
|
-
at.add_exception "unit"
|
11
|
-
at.add_exception "coverage"
|
12
|
-
at.add_exception "coverage.info"
|
13
10
|
at.add_exception ".diff"
|
11
|
+
at.add_exception ".rdoc"
|
12
|
+
at.add_exception ".yml"
|
13
|
+
at.add_exception ".txt"
|
14
14
|
at.add_exception ".output"
|
15
|
-
at.add_exception "
|
16
|
-
at.add_exception "
|
17
|
-
at.add_exception "
|
18
|
-
at.add_exception "
|
19
|
-
at.add_exception "
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
15
|
+
at.add_exception "bin"
|
16
|
+
at.add_exception "compare"
|
17
|
+
at.add_exception "coverage"
|
18
|
+
at.add_exception "coverage.info"
|
19
|
+
at.add_exception "misc"
|
20
|
+
|
21
|
+
Dir["lib/ruby??_parser.{rb,y}"].each do |f|
|
22
|
+
at.add_exception f
|
23
|
+
end
|
24
24
|
|
25
25
|
Dir["gauntlet*"].each do |f|
|
26
26
|
at.add_exception f
|
@@ -30,12 +30,12 @@ Autotest.add_hook :initialize do |at|
|
|
30
30
|
at.testlib = "minitest/autorun"
|
31
31
|
|
32
32
|
at.add_mapping(/^lib\/.*\.y$/) do |f, _|
|
33
|
-
g = File.basename(f, ".y").gsub("_", "_?").gsub(/
|
33
|
+
g = File.basename(f, ".y").gsub("_", "_?").gsub(/2\d/, '')
|
34
34
|
at.files_matching %r%^test/.*#{g}.rb$%
|
35
35
|
end
|
36
36
|
|
37
37
|
at.add_mapping(/^lib\/.*\.yy$/) do |f, _|
|
38
|
-
g = File.basename(f, ".yy").gsub("_", "_?")
|
38
|
+
g = File.basename(f, ".yy").gsub("_", "_?")
|
39
39
|
at.files_matching %r%^test/.*#{g}.rb$%
|
40
40
|
end
|
41
41
|
|
@@ -52,27 +52,16 @@ Autotest.add_hook :initialize do |at|
|
|
52
52
|
at.files_matching(/test_.*rb$/)
|
53
53
|
end
|
54
54
|
|
55
|
-
%w(TestEnvironment TestStackState).each do |klass|
|
55
|
+
%w(TestEnvironment TestStackState TestValueExpr).each do |klass|
|
56
56
|
at.extra_class_map[klass] = "test/test_ruby_parser_extras.rb"
|
57
57
|
end
|
58
58
|
|
59
|
-
|
60
|
-
|
59
|
+
Dir["lib/ruby??_parser.rb"].each do |s|
|
60
|
+
n = s[/\d+/]
|
61
|
+
at.extra_class_map["TestRubyParserV#{n}"] = "test/test_ruby_parser.rb"
|
61
62
|
end
|
62
63
|
end
|
63
64
|
|
64
65
|
Autotest.add_hook :run_command do |at, _|
|
65
66
|
system "rake parser lexer DEBUG=1"
|
66
67
|
end
|
67
|
-
|
68
|
-
class Autotest
|
69
|
-
def ruby
|
70
|
-
File.expand_path "~/.multiruby/install/1.9.3-p194/bin/ruby"
|
71
|
-
end
|
72
|
-
end if ENV["R19"]
|
73
|
-
|
74
|
-
class Autotest
|
75
|
-
def ruby
|
76
|
-
File.expand_path "~/.multiruby/install/2.0.0-p195/bin/ruby"
|
77
|
-
end
|
78
|
-
end if ENV["R20"]
|
data/History.rdoc
CHANGED
@@ -1,3 +1,286 @@
|
|
1
|
+
=== 3.18.1 / 2021-11-10
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* All parser tests are now explicitly testing line numbers at every level.
|
6
|
+
|
7
|
+
* 3 bug fixes:
|
8
|
+
|
9
|
+
* Fixed endless method with noargs. (mitsuru)
|
10
|
+
* Fixed line numbers on some yield forms.
|
11
|
+
* Handle and clearly report if unifdef is missing.
|
12
|
+
|
13
|
+
=== 3.18.0 / 2021-10-27
|
14
|
+
|
15
|
+
Holy crap... 58 commits! 2.7 and 3.0 are feature complete. Strings
|
16
|
+
& heredocs have been rewritten.
|
17
|
+
|
18
|
+
* 9 major enhancements:
|
19
|
+
|
20
|
+
* !!! Rewrote lexer (and friends) for strings, heredocs, and %*[] constructs.
|
21
|
+
* Massive overhaul on line numbers.
|
22
|
+
* Freeze input! Finally!!! No more modifying the input string for heredocs.
|
23
|
+
* Overhauled RPStringScanner. Removed OLD compatibility methods!
|
24
|
+
* Removed Sexp methods: value, to_sym, add, add_all, node_type, values.
|
25
|
+
* value moved to sexp_processor.
|
26
|
+
* Removed String#grep monkey-patch.
|
27
|
+
* Removed String#lineno monkey-patch.
|
28
|
+
* Removed string_to_pos, charpos, etc hacks for ancient ruby versions.
|
29
|
+
* Removed unread_many... NO! NO EDITING THE INPUT STRING!
|
30
|
+
|
31
|
+
* 31 minor enhancements:
|
32
|
+
|
33
|
+
* 2.7/3.0: many more pattern edge cases
|
34
|
+
* 2.7: Added `mlhs = rhs rescue expr`
|
35
|
+
* 2.7: refactored destructured args (`|(k,v)|`) and unfactored(?!) case_body/args.
|
36
|
+
* 3.0: excessed_comma
|
37
|
+
* 3.0: finished most everything: endless methods, patterns, etc.
|
38
|
+
* 3.0: refactored / added new pattern changes
|
39
|
+
* Added RubyLexer#in_heredoc? (ie, is there old_ss ?)
|
40
|
+
* Added RubyLexer#old_ss and old_lineno and removed much of SSStack(ish).
|
41
|
+
* Added Symbol#end_with? when necessary
|
42
|
+
* Added TALLY and DEBUG options for ss.getch and ss.scan
|
43
|
+
* Added ignore_body_comments to make parser productions more clear.
|
44
|
+
* Added support for no_kwarg (eg `def f(**nil)`).
|
45
|
+
* Added support for no_kwarg in blocks (eg `f { |**nil| }`).
|
46
|
+
* Augmented generated parser files to have frozen_string_literal comments and fixed tests.
|
47
|
+
* Broke out 3.0 parser into its own to ease development.
|
48
|
+
* Bumped dependencies on sexp_processor and oedipus_lex.
|
49
|
+
* Clean generated 3.x files.
|
50
|
+
* Extracted all string scanner methods to their own module.
|
51
|
+
* Fixed some precedence decls.
|
52
|
+
* Implemented most of pattern matching for 2.7+.
|
53
|
+
* Improve lex_state= to report location in verbose debug mode.
|
54
|
+
* Made it easier to debug with a particular version of ruby via rake.
|
55
|
+
* Make sure ripper uses the same version of ruby we specified.
|
56
|
+
* Moved all string/heredoc/etc code to ruby_lexer_strings.rb
|
57
|
+
* Remove warning from newer bisons.
|
58
|
+
* Sprinkled in some frozen_string_literal, but mostly helped by oedipus bump.
|
59
|
+
* Switch to comparing against ruby binary since ripper is buggy.
|
60
|
+
* bugs task should try both bug*.rb and bad*.rb.
|
61
|
+
* endless methods
|
62
|
+
* f_any_kwrest refactoring.
|
63
|
+
* refactored defn/defs
|
64
|
+
|
65
|
+
* 15 bug fixes:
|
66
|
+
|
67
|
+
* Cleaned a bunch of old hacks. Initializing RubyLexer w/ Parser is cleaner now.
|
68
|
+
* Corrected some lex_state errors in process_token_keyword.
|
69
|
+
* Fixed ancient ruby2 change (use #lines) in ruby_parse_extract_error.
|
70
|
+
* Fixed bug where else without rescue only raises on 2.6+
|
71
|
+
* Fixed caller for getch and scan when DEBUG=1
|
72
|
+
* Fixed comments in the middle of message cascades.
|
73
|
+
* Fixed differences w/ symbol productions against ruby 2.7.
|
74
|
+
* Fixed dsym to use string_contents production.
|
75
|
+
* Fixed error in bdot2/3 in some edge cases. Fixed p_alt line.
|
76
|
+
* Fixed heredoc dedenting in the presence of empty lines. (mvz)
|
77
|
+
* Fixed some leading whitespace / comment processing
|
78
|
+
* Fixed up how class/module/defn/defs comments were collected.
|
79
|
+
* Overhauled ripper.rb to deal with buggy ripper w/ yydebug.
|
80
|
+
* Removed dsym from literal.
|
81
|
+
* Removed tUBANG lexeme but kept it distinct as a method name (eg: `def !@`).
|
82
|
+
|
83
|
+
=== 3.17.0 / 2021-08-03
|
84
|
+
|
85
|
+
* 1 minor enhancement:
|
86
|
+
|
87
|
+
* Added support for arg forwarding (eg `def f(...); m(...); end`) (presidentbeef)
|
88
|
+
|
89
|
+
=== 3.16.0 / 2021-05-15
|
90
|
+
|
91
|
+
* 1 major enhancement:
|
92
|
+
|
93
|
+
* Added tentative 3.0 support.
|
94
|
+
|
95
|
+
* 3 minor enhancements:
|
96
|
+
|
97
|
+
* Added lexing for "beginless range" (bdots).
|
98
|
+
* Added parsing for bdots.
|
99
|
+
* Updated rake compare task to download xz files, bumped versions, etc
|
100
|
+
|
101
|
+
* 4 bug fixes:
|
102
|
+
|
103
|
+
* Bump rake dependency to >= 10, < 15. (presidentbeef)
|
104
|
+
* Bump sexp_processor dependency to 4.15.1+. (pravi)
|
105
|
+
* Fixed minor state mismatch at the end of parsing to make diffing a little cleaner.
|
106
|
+
* Fixed normalizer to deal with new bison token syntax
|
107
|
+
|
108
|
+
=== 3.15.1 / 2021-01-10
|
109
|
+
|
110
|
+
* 1 bug fix:
|
111
|
+
|
112
|
+
* Bumped ruby version to include < 4 (trunk).
|
113
|
+
|
114
|
+
=== 3.15.0 / 2020-08-31
|
115
|
+
|
116
|
+
* 1 major enhancement:
|
117
|
+
|
118
|
+
* Added tentative 2.7 support.
|
119
|
+
|
120
|
+
* 1 minor enhancement:
|
121
|
+
|
122
|
+
* Improved ruby_parse_extract_error's handling of moving slow files out.
|
123
|
+
|
124
|
+
* 22 bug fixes:
|
125
|
+
|
126
|
+
* Bumped ruby version to include 3.0 (trunk).
|
127
|
+
* Fix an error related to empty ensure bodies. (presidentbeef)
|
128
|
+
* Fix handling of bad magic encoding comment.
|
129
|
+
* Fixed SystemStackError when parsing a huoooge hash, caused by a splat arg.
|
130
|
+
* Fixed a number of errors parsing do blocks in strange edge cases.
|
131
|
+
* Fixed a string backslash lexing bug when the string is an invalid encoding. (nijikon, gmcgibbon)
|
132
|
+
* Fixed bug assigning line number to some arg nodes.
|
133
|
+
* Fixed bug concatinating string literals with differing encodings.
|
134
|
+
* Fixed bug lexing heredoc w/ nasty mix of \r\n and \n.
|
135
|
+
* Fixed bug lexing multiple codepoints in \u{0000 1111 2222} forms.
|
136
|
+
* Fixed bug setting line numbers in empty xstrings in some contexts.
|
137
|
+
* Fixed edge case on call w/ begin + do block as an arg.
|
138
|
+
* Fixed handling of UTF BOM.
|
139
|
+
* Fixed handling of lexer state across string interpolation braces.
|
140
|
+
* Fixed infinite loop when lexing backslash+cr+newline (aka dos-files)
|
141
|
+
* Fixed lambda + do block edge case.
|
142
|
+
* Fixed lexing of some ?\M... and ?\C... edge cases.
|
143
|
+
* Fixed more do/brace block edge case failures.
|
144
|
+
* Fixed parsing bug where splat was used in the middle of a list.
|
145
|
+
* Fixed parsing of interpolation in heredoc-like strings. (presidentbeef)
|
146
|
+
* Fixed parsing some esoteric edge cases in op_asgn.
|
147
|
+
* Fixed unicode processing in ident chars so now they better mix.
|
148
|
+
|
149
|
+
=== 3.14.2 / 2020-02-06
|
150
|
+
|
151
|
+
* 1 minor enhancement:
|
152
|
+
|
153
|
+
* Cleaned up call_args and removed arg_blk_pass from ruby_parser_extras.rb! Yay!
|
154
|
+
|
155
|
+
=== 3.14.1 / 2019-10-29
|
156
|
+
|
157
|
+
* 1 minor enhancement:
|
158
|
+
|
159
|
+
* Declared that ruby_parser supports ruby 2.2 and up.
|
160
|
+
|
161
|
+
* 3 bug fixes:
|
162
|
+
|
163
|
+
* Fixed a problem with %W with a null-byte terminator. (wtf?) (spohlenz)
|
164
|
+
* Fixed line numbering for command (eg methods without parentheses) arguments. (mvz)
|
165
|
+
* Fixed lineno on new dxstrs. (presidentbeef)
|
166
|
+
|
167
|
+
=== 3.14.0 / 2019-09-24
|
168
|
+
|
169
|
+
* 8 minor enhancements:
|
170
|
+
|
171
|
+
* Added Sexp#line_min & new line number debugging feature.
|
172
|
+
* Allow bin/ruby_parse to use RP_TIMEOUT to tweak default timeout for large files & slow debugging modes.
|
173
|
+
* Did you know that custom inspect can't be > 65 chars? 65! Me neither. Fixed.
|
174
|
+
* For now, value_expr == remove_begin.
|
175
|
+
* Improved error messages for unterminated regexps.
|
176
|
+
* Moved all STR_* consts into State::Values and made them State instances.
|
177
|
+
* Overhauled RubyLexer::State + Values to allow for completely separate groups of States.
|
178
|
+
* RubyParserExtras#remove_begin removes nested begins and patches line numbers.
|
179
|
+
|
180
|
+
* 22 bug fixes:
|
181
|
+
|
182
|
+
* Changed EOF signaling to return [false, false] per doco.
|
183
|
+
* Changed RubyParserStuff#remove_begin to keep inner line number, if any. (mvz)
|
184
|
+
* Differentiated between lambda call and stabby proc. Added :lambda sexp. (whitequark)
|
185
|
+
* Extended State#== to check equal? first as an optimization.
|
186
|
+
* Fixed a bug in tab indent width.
|
187
|
+
* Fixed a line numbering bug for assignables.
|
188
|
+
* Fixed a line numbering bug for defns w/ nil bodies.
|
189
|
+
* Fixed another missing line number, driven out by ruby_to_ruby bootstrap.
|
190
|
+
* Fixed dedenting squiggle heredocs if interpolation is in the mix. (mvz)
|
191
|
+
* Fixed differentiation of `{ |a| ... }` vs `{ |a,| ... }`. Fixes #236 (whitequark).
|
192
|
+
* Fixed lex_state for symbols.
|
193
|
+
* Fixed lex_state for tSTRING_END and tREGEXP_END.
|
194
|
+
* Fixed line numbers for BEGIN block. (mvz)
|
195
|
+
* Fixed op_asgn1 w/ command_call having array instead of arglist. (mvz)
|
196
|
+
* Fixed parsing of () in a command-call (eg p).
|
197
|
+
* Fixed remaining missing line numbers by forcing extra checks during test and blowing up. They may still be wrong (esp after heredocs, ugh), but they're there! Special thank you to mvz for pushing on this and providing tests and PRs.
|
198
|
+
* Fixed some lex_state versioning issues with closing braces/bracket on ruby<25.
|
199
|
+
* Keep carriage return escapes in heredocs. (mvz)
|
200
|
+
* Massive overhaul of line number code.
|
201
|
+
* More line number fixes and extra tests from mvz. Thank you!
|
202
|
+
* Parsing BEGIN block when not at top level should raise an error. (mvz)
|
203
|
+
* Removed irb task from Rakefile as it has been pushed up to Hoe and doubles up here.
|
204
|
+
|
205
|
+
=== 3.13.1 / 2019-03-25
|
206
|
+
|
207
|
+
* 1 major enhancement:
|
208
|
+
|
209
|
+
* Overhauled RubyLexer#lex_state to allow for multi-state value.
|
210
|
+
|
211
|
+
* 5 minor enhancements:
|
212
|
+
|
213
|
+
* Added RubyParser#current so scripts can poke around inside.
|
214
|
+
* Cleaned up and modernized bin/ruby_parse_extract_error.
|
215
|
+
* Removed RubyLexer#in_lex_state? in favor of State#=~ and #==.
|
216
|
+
* Renamed RubyLexer#in_arg_state? to is_after_operator?.
|
217
|
+
* Replaced all use of :expr_<*> symbols w/ bitfields.
|
218
|
+
|
219
|
+
* 15 bug fixes:
|
220
|
+
|
221
|
+
* Added tests to show #233 already fixed.
|
222
|
+
* Fixed a lexer state bug dealing with complex edge case in hash key w/ interpolated symbol and an array value. Not a great fix. (presidentbeef)
|
223
|
+
* Fixed a number of lex_state check problems.
|
224
|
+
* Fixed alias and undef keyword data.
|
225
|
+
* Fixed bug normalizing to utf-8 on tail of dstr (post-interpolation). (mvz)
|
226
|
+
* Fixed handling of hex chars for bare unicode escape. (mvz)
|
227
|
+
* Fixed handling of invalid string octals more gracefully. Needs generalization.
|
228
|
+
* Fixed lexing of regexps w/ backslashed unicode. I hope.
|
229
|
+
* Fixed parse_percent for EXPR_FITEM edge cases. Fixed bug #125.
|
230
|
+
* Fixed parsing of op_asgn on constants (eg ::X ||= 1).
|
231
|
+
* Fixed precedence of rescue modifier on assignments. (mvz/whitequark)
|
232
|
+
* Fixed some EXPR_FNAME edge cases.
|
233
|
+
* Fixed using unicode in gvars. Fixed bug 202. (331299)
|
234
|
+
* Handle invalid string literals more gracefully.
|
235
|
+
* Minor fix lexing %s[]
|
236
|
+
|
237
|
+
=== 3.13.0 / 2019-03-12
|
238
|
+
|
239
|
+
* 3 major enhancements:
|
240
|
+
|
241
|
+
* Removed 1.8 and 1.9 support. Moved to ruby_parser-legacy gem.
|
242
|
+
* Added tentative 2.6 support.
|
243
|
+
* Updated ruby_parser.yy to ruby 2.4 architecture.
|
244
|
+
|
245
|
+
* 22 minor enhancements:
|
246
|
+
|
247
|
+
* Added debug3 and cmp3 rake tasks that use the above tools.
|
248
|
+
* Added tLONELY to compare/normalize.rb
|
249
|
+
* Added tools/munge.rb, tools/ripper.rb, and debugging.md
|
250
|
+
* 2.6: Added trailing .. and ... support.
|
251
|
+
* Extended StackState to log more state changes, making debugging easier.
|
252
|
+
* Extended StackState#store to take an initial value.
|
253
|
+
* Improved logging / debugging in StackState.
|
254
|
+
* Improved normalization and parser compare tasks.
|
255
|
+
* Improved tools/munge.rb output.
|
256
|
+
* In f_arglist, track in_kwarg if no parens.
|
257
|
+
* In process_newline_or_comment, handle NL if in_kwarg there vs normal.
|
258
|
+
* Refactored normalized values to WORDLIST.
|
259
|
+
* Refactored parser: push up to relop and rel_expr.
|
260
|
+
* Removed Keyword.keyword18.
|
261
|
+
* Removed RubyLexer version attr_accessors.
|
262
|
+
* Removed long dead deprecations internal to RubyParserStuff.
|
263
|
+
* Removed version arg to RubyLexer#initialize (default nil + no-op).
|
264
|
+
* Renamed Keyword.keyword19 to Keyword.keyword.
|
265
|
+
* Renamed process_bracing to process_brace_close
|
266
|
+
* Renamed process_curly_brace to process_brace_open
|
267
|
+
* Report first parse error message if all parser versions fail, not last.
|
268
|
+
* Updated parser to track against 2.6.
|
269
|
+
|
270
|
+
* 11 bug fixes:
|
271
|
+
|
272
|
+
* Fix some shift/reduce errors.
|
273
|
+
* Fixed BEGIN blocks having different arg value that END blocks. (mvz)
|
274
|
+
* Fixed all reported unused non-terminals/rules.
|
275
|
+
* Fixed bug 272.
|
276
|
+
* Fixed bug in interpolated symbol lists. (strviola)
|
277
|
+
* Fixed bug where block shadow arguments were not registered as lvars. (akimd)
|
278
|
+
* Fixed bug where kwsplat args weren't treated as lvars. (mvz)
|
279
|
+
* Fixed lex_state and other internals in many cases.
|
280
|
+
* Fixed shebang in compare/normalize.rb to use env. Avoids rubygems freaking.
|
281
|
+
* Fixed some more internal state bugs.
|
282
|
+
* Fixed tRCURLY -> tSTRING_DEND for interpolation brace closes.
|
283
|
+
|
1
284
|
=== 3.12.0 / 2018-12-04
|
2
285
|
|
3
286
|
* 3 minor enhancements:
|
data/Manifest.txt
CHANGED
@@ -6,13 +6,11 @@ Rakefile
|
|
6
6
|
bin/ruby_parse
|
7
7
|
bin/ruby_parse_extract_error
|
8
8
|
compare/normalize.rb
|
9
|
+
debugging.md
|
10
|
+
gauntlet.md
|
9
11
|
lib/.document
|
10
12
|
lib/rp_extensions.rb
|
11
13
|
lib/rp_stringscanner.rb
|
12
|
-
lib/ruby18_parser.rb
|
13
|
-
lib/ruby18_parser.y
|
14
|
-
lib/ruby19_parser.rb
|
15
|
-
lib/ruby19_parser.y
|
16
14
|
lib/ruby20_parser.rb
|
17
15
|
lib/ruby20_parser.y
|
18
16
|
lib/ruby21_parser.rb
|
@@ -25,12 +23,22 @@ lib/ruby24_parser.rb
|
|
25
23
|
lib/ruby24_parser.y
|
26
24
|
lib/ruby25_parser.rb
|
27
25
|
lib/ruby25_parser.y
|
26
|
+
lib/ruby26_parser.rb
|
27
|
+
lib/ruby26_parser.y
|
28
|
+
lib/ruby27_parser.rb
|
29
|
+
lib/ruby27_parser.y
|
30
|
+
lib/ruby30_parser.rb
|
31
|
+
lib/ruby30_parser.y
|
32
|
+
lib/ruby3_parser.yy
|
28
33
|
lib/ruby_lexer.rb
|
29
34
|
lib/ruby_lexer.rex
|
30
35
|
lib/ruby_lexer.rex.rb
|
36
|
+
lib/ruby_lexer_strings.rb
|
31
37
|
lib/ruby_parser.rb
|
32
38
|
lib/ruby_parser.yy
|
33
39
|
lib/ruby_parser_extras.rb
|
34
40
|
test/test_ruby_lexer.rb
|
35
41
|
test/test_ruby_parser.rb
|
36
42
|
test/test_ruby_parser_extras.rb
|
43
|
+
tools/munge.rb
|
44
|
+
tools/ripper.rb
|
data/README.rdoc
CHANGED
@@ -7,9 +7,9 @@ rdoc :: http://docs.seattlerb.org/ruby_parser
|
|
7
7
|
== DESCRIPTION:
|
8
8
|
|
9
9
|
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
|
10
|
-
racc--which does by default use a C extension).
|
11
|
-
|
12
|
-
|
10
|
+
racc--which does by default use a C extension). It outputs
|
11
|
+
s-expressions which can be manipulated and converted back to ruby via
|
12
|
+
the ruby2ruby gem.
|
13
13
|
|
14
14
|
As an example:
|
15
15
|
|
@@ -32,6 +32,7 @@ Tested against 801,039 files from the latest of all rubygems (as of 2013-05):
|
|
32
32
|
* 1.8 parser is at 99.9739% accuracy, 3.651 sigma
|
33
33
|
* 1.9 parser is at 99.9940% accuracy, 4.013 sigma
|
34
34
|
* 2.0 parser is at 99.9939% accuracy, 4.008 sigma
|
35
|
+
* 2.6 parser is at 99.9972% accuracy, 4.191 sigma
|
35
36
|
|
36
37
|
== FEATURES/PROBLEMS:
|
37
38
|
|