Class: PHPRB::Compiler::SimpleScanner

Inherits:
Scanner show all
Defined in:
lib/web/phprb.rb

Constant Summary

Constants inherited from Scanner

PHPRB::Compiler::Scanner::SplitRegexp

Instance Attribute Summary

Attributes inherited from Scanner

#stag

Instance Method Summary collapse

Methods inherited from Scanner

default_scanner=, #initialize, make_scanner, regist_scanner

Constructor Details

This class inherits a constructor from PHPRB::Compiler::Scanner

Instance Method Details

#scanObject



163
164
165
166
167
168
169
170
# File 'lib/web/phprb.rb', line 163

def scan
	@src.each do |line|
	  line.split(SplitRegexp).each do |token|
	    next if token.empty?
	    yield(token)
	  end
	end
end