parser 2.6.5.0 → 2.7.0.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 -0
- data/README.md +7 -0
- data/doc/AST_FORMAT.md +346 -20
- data/lib/parser.rb +3 -1
- data/lib/parser/ast/processor.rb +15 -0
- data/lib/parser/base.rb +19 -0
- data/lib/parser/builders/default.rb +245 -12
- data/lib/parser/context.rb +4 -0
- data/lib/parser/current.rb +4 -4
- data/lib/parser/current_arg_stack.rb +43 -0
- data/lib/parser/lexer.rl +93 -94
- data/lib/parser/lexer/dedenter.rb +48 -49
- data/lib/parser/{lexer/max_numparam_stack.rb → max_numparam_stack.rb} +10 -4
- data/lib/parser/messages.rb +34 -29
- data/lib/parser/meta.rb +6 -2
- data/lib/parser/ruby27.y +488 -35
- data/lib/parser/static_environment.rb +10 -0
- data/lib/parser/variables_stack.rb +32 -0
- data/lib/parser/version.rb +1 -1
- data/test/helper.rb +1 -0
- data/test/test_lexer.rb +7 -66
- data/test/test_parser.rb +1776 -123
- metadata +5 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- whitequark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|
@@ -193,6 +193,7 @@ files:
|
|
193
193
|
- lib/parser/color.rb
|
194
194
|
- lib/parser/context.rb
|
195
195
|
- lib/parser/current.rb
|
196
|
+
- lib/parser/current_arg_stack.rb
|
196
197
|
- lib/parser/deprecation.rb
|
197
198
|
- lib/parser/diagnostic.rb
|
198
199
|
- lib/parser/diagnostic/engine.rb
|
@@ -201,10 +202,10 @@ files:
|
|
201
202
|
- lib/parser/lexer/dedenter.rb
|
202
203
|
- lib/parser/lexer/explanation.rb
|
203
204
|
- lib/parser/lexer/literal.rb
|
204
|
-
- lib/parser/lexer/max_numparam_stack.rb
|
205
205
|
- lib/parser/lexer/stack_state.rb
|
206
206
|
- lib/parser/macruby.rb
|
207
207
|
- lib/parser/macruby.y
|
208
|
+
- lib/parser/max_numparam_stack.rb
|
208
209
|
- lib/parser/messages.rb
|
209
210
|
- lib/parser/meta.rb
|
210
211
|
- lib/parser/rewriter.rb
|
@@ -259,6 +260,7 @@ files:
|
|
259
260
|
- lib/parser/static_environment.rb
|
260
261
|
- lib/parser/syntax_error.rb
|
261
262
|
- lib/parser/tree_rewriter.rb
|
263
|
+
- lib/parser/variables_stack.rb
|
262
264
|
- lib/parser/version.rb
|
263
265
|
- parser.gemspec
|
264
266
|
- test/bug_163/fixtures/input.rb
|