summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 17:49:41 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 17:49:41 +0000
commit493bcc9b6475f5e2abc5548474bfac50f0fe4294 (patch)
treeed281d387c784707c2cc2382962b14ca1f278bcf
parent580a9e70e2a35d1c5de6632d7d434c206173e1fe (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--ext/ripper/lib/ripper/filter.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 29b631c865..d56cf4bab6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/ext/ripper/lib/ripper/filter.rb b/ext/ripper/lib/ripper/filter.rb
index d1c7c4a45e..061bf109d0 100644
--- a/ext/ripper/lib/ripper/filter.rb
+++ b/ext/ripper/lib/ripper/filter.rb
@@ -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