ruby_parser 3.14.2 → 3.15.0
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.tar.gz.sig +0 -0
- data/History.rdoc +35 -0
- data/Manifest.txt +2 -0
- data/Rakefile +28 -9
- data/bin/ruby_parse_extract_error +8 -3
- data/compare/normalize.rb +43 -3
- data/debugging.md +39 -0
- data/lib/ruby20_parser.rb +2722 -2702
- data/lib/ruby20_parser.y +91 -58
- data/lib/ruby21_parser.rb +2603 -2576
- data/lib/ruby21_parser.y +91 -58
- data/lib/ruby22_parser.rb +2729 -2715
- data/lib/ruby22_parser.y +91 -58
- data/lib/ruby23_parser.rb +2698 -2686
- data/lib/ruby23_parser.y +91 -58
- data/lib/ruby24_parser.rb +2699 -2670
- data/lib/ruby24_parser.y +91 -58
- data/lib/ruby25_parser.rb +2699 -2670
- data/lib/ruby25_parser.y +91 -58
- data/lib/ruby26_parser.rb +2699 -2670
- data/lib/ruby26_parser.y +91 -58
- data/lib/ruby27_parser.rb +7224 -0
- data/lib/ruby27_parser.y +2657 -0
- data/lib/ruby_lexer.rb +72 -40
- data/lib/ruby_lexer.rex +5 -6
- data/lib/ruby_lexer.rex.rb +6 -8
- data/lib/ruby_parser.rb +2 -0
- data/lib/ruby_parser.yy +93 -58
- data/lib/ruby_parser_extras.rb +49 -16
- data/test/test_ruby_lexer.rb +32 -16
- data/test/test_ruby_parser.rb +204 -3
- data/tools/munge.rb +9 -4
- metadata +12 -7
- metadata.gz.sig +0 -0
data/tools/munge.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/ruby -ws
|
1
|
+
#!/usr/bin/env ruby -ws
|
2
2
|
|
3
3
|
$v ||= false
|
4
4
|
|
@@ -118,6 +118,8 @@ def munge s
|
|
118
118
|
|
119
119
|
/@(\d+)(\s+|$)/, "",
|
120
120
|
/\$?@(\d+) */, "", # TODO: remove?
|
121
|
+
|
122
|
+
/_EXPR/, "",
|
121
123
|
]
|
122
124
|
|
123
125
|
renames.each_slice(2) do |(a, b)|
|
@@ -194,10 +196,13 @@ ARGF.each_line do |line|
|
|
194
196
|
# TODO: make pretty, but still informative w/ line numbers etc
|
195
197
|
puts line.gsub("true", "1").gsub("false", "0")
|
196
198
|
when /^lex_state: :?([\w|]+) -> :?([\w|]+)(?: (?:at|from) (.*))?/ then
|
197
|
-
|
198
|
-
|
199
|
+
a, b, c = $1.upcase, $2.upcase, $3
|
200
|
+
a.gsub! /EXPR_/, ""
|
201
|
+
b.gsub! /EXPR_/, ""
|
202
|
+
if c && $v then
|
203
|
+
puts "lex_state: #{a} -> #{b} at #{c}"
|
199
204
|
else
|
200
|
-
puts "lex_state: #{
|
205
|
+
puts "lex_state: #{a} -> #{b}"
|
201
206
|
end
|
202
207
|
when /debug|FUCK/ then
|
203
208
|
puts line.chomp
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
|
30
30
|
h7iEjga8iM1LbZUfiISZ+WrB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2020-
|
32
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: sexp_processor
|
@@ -113,14 +113,14 @@ dependencies:
|
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '3.
|
116
|
+
version: '3.22'
|
117
117
|
type: :development
|
118
118
|
prerelease: false
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '3.
|
123
|
+
version: '3.22'
|
124
124
|
description: |-
|
125
125
|
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
|
126
126
|
racc--which does by default use a C extension). It outputs
|
@@ -186,6 +186,8 @@ files:
|
|
186
186
|
- lib/ruby25_parser.y
|
187
187
|
- lib/ruby26_parser.rb
|
188
188
|
- lib/ruby26_parser.y
|
189
|
+
- lib/ruby27_parser.rb
|
190
|
+
- lib/ruby27_parser.y
|
189
191
|
- lib/ruby_lexer.rb
|
190
192
|
- lib/ruby_lexer.rex
|
191
193
|
- lib/ruby_lexer.rex.rb
|
@@ -211,16 +213,19 @@ require_paths:
|
|
211
213
|
- lib
|
212
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
213
215
|
requirements:
|
214
|
-
- - "
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '2.1'
|
219
|
+
- - "<"
|
215
220
|
- !ruby/object:Gem::Version
|
216
|
-
version: '
|
221
|
+
version: '3.1'
|
217
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
223
|
requirements:
|
219
224
|
- - ">="
|
220
225
|
- !ruby/object:Gem::Version
|
221
226
|
version: '0'
|
222
227
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
228
|
+
rubygems_version: 3.1.4
|
224
229
|
signing_key:
|
225
230
|
specification_version: 4
|
226
231
|
summary: ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc--which
|
metadata.gz.sig
CHANGED
Binary file
|