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.
@@ -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
- if $3 && $v then
198
- puts "lex_state: #{$1.upcase} -> #{$2.upcase} at #{$3}"
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: #{$1.upcase} -> #{$2.upcase}"
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.14.2
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-02-07 00:00:00.000000000 Z
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.21'
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.21'
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: '2.2'
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.0.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