1
0
Fork 0
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:
aamine 2004-10-09 17:49:41 +00:00
parent 580a9e70e2
commit 493bcc9b64
2 changed files with 8 additions and 2 deletions

View file

@ -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>
* parse.y [ripper]: \n between two comments disappeared.

View file

@ -8,7 +8,7 @@
# For details of Ruby License, see ruby/COPYING.
#
require 'ripper/core'
require 'ripper/tokenizer'
class Ripper
@ -43,7 +43,7 @@ class Ripper
# Starts parsing. _init_ is a data accumulator.
# It is passed to the next event handler (as of Enumerable#inject).
def parse(init)
def parse(init = nil)
data = init
@__parser.parse.each do |pos, event, tok|
@__line, @__col = *pos