Syntax errors while lexing stop grammar compilation process (fixes #308)