Move lexer functions into the context *Lexer