Method: TokenLexer#initialize
- Defined in:
- lib/rflex.rb
#initialize(type, regexp) ⇒ TokenLexer
Returns a new instance of TokenLexer.
12 13 14 15 16 17 |
# File 'lib/rflex.rb', line 12 def initialize type, regexp @type = type @regexp = regexp @blockType = nil @block = nil end |