mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/ripper/lib/ripper/filter.rb: require ripper/tokenizer.
* ext/ripper/lib/ripper/filter.rb (parse): argument is optional. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
580a9e70e2
commit
493bcc9b64
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Oct 10 02:49:14 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* ext/ripper/lib/ripper/filter.rb: require ripper/tokenizer.
|
||||||
|
|
||||||
|
* ext/ripper/lib/ripper/filter.rb (parse): argument is optional.
|
||||||
|
|
||||||
Sun Oct 10 02:43:13 2004 Minero Aoki <aamine@loveruby.net>
|
Sun Oct 10 02:43:13 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* parse.y [ripper]: \n between two comments disappeared.
|
* parse.y [ripper]: \n between two comments disappeared.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# For details of Ruby License, see ruby/COPYING.
|
# For details of Ruby License, see ruby/COPYING.
|
||||||
#
|
#
|
||||||
|
|
||||||
require 'ripper/core'
|
require 'ripper/tokenizer'
|
||||||
|
|
||||||
class Ripper
|
class Ripper
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ class Ripper
|
||||||
|
|
||||||
# Starts parsing. _init_ is a data accumulator.
|
# Starts parsing. _init_ is a data accumulator.
|
||||||
# It is passed to the next event handler (as of Enumerable#inject).
|
# It is passed to the next event handler (as of Enumerable#inject).
|
||||||
def parse(init)
|
def parse(init = nil)
|
||||||
data = init
|
data = init
|
||||||
@__parser.parse.each do |pos, event, tok|
|
@__parser.parse.each do |pos, event, tok|
|
||||||
@__line, @__col = *pos
|
@__line, @__col = *pos
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue