summaryrefslogtreecommitdiff
path: root/ext/ripper/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-04 05:33:53 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-04 05:33:53 +0000
commit6a24d7ed9b5cbe0d7caa74869aa83cd8a412394d (patch)
treefb23c103d55ff1a99b0d24ea79239f3afd5ce61f /ext/ripper/lib
parent73a9963ddffe4108b67918df7647a1f05914a2f9 (diff)
* ext/ripper/lib/ripper/filter.rb: ripper/tokenizer -> ripper/lexer. [ruby-dev:25632]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/lib')
-rw-r--r--ext/ripper/lib/ripper/filter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ripper/lib/ripper/filter.rb b/ext/ripper/lib/ripper/filter.rb
index 061bf10..99c1118 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/tokenizer'
+require 'ripper/lexer'
class Ripper
@@ -17,14 +17,14 @@ class Ripper
class Filter
def initialize(src, filename = '-', lineno = 1)
- @__parser = Tokenizer.new(src, filename, lineno)
+ @__lexer = Lexer.new(src, filename, lineno)
@__line = nil
@__col = nil
end
# The file name of the input.
def filename
- @__parser.filename
+ @__lexer.filename
end
# The line number of the current token.
@@ -45,7 +45,7 @@ class Ripper
# It is passed to the next event handler (as of Enumerable#inject).
def parse(init = nil)
data = init
- @__parser.parse.each do |pos, event, tok|
+ @__lexer.lex.each do |pos, event, tok|
@__line, @__col = *pos
data = if respond_to?(event, true)
then __send__(event, tok, data)