pass the lexer itself to actions