class String
Public Instance Methods
lexer_counter(symbol)
click to toggle source
# File libs/lexer.rb, line 349 def lexer_counter(symbol) raise Lexr::NoLexerError.new("no lexer defined") if @lex.nil? @lex.counter(symbol) end
lexer_parse(lexer)
click to toggle source
lexer_parse
will parse the string using the lexer object passed
# File libs/lexer.rb, line 344 def lexer_parse(lexer) @lex=lexer.new(self) @lex.parse end