module Regexp::Scanner
def self.emit(type, token, text, ts, te)
def self.emit(type, token, text, ts, te) #puts " > emit: #{type}:#{token} '#{text}' [#{ts}..#{te}]" if @literal and type != :literal self.emit_literal end if @block @block.call type, token, text, ts, te end @tokens << [type, token, text, ts, te] end