Pure ruby lexer