Avoid creating empty action methods in lexer (fixes #202)