simple lexer/tokenizer in native Ruby