Report errors that occur while lexing a grammar (fixes #262)