Visitor to check a grammar for consistency. This visitor should be
applied on a grammar right after parsing, before any other
visitors.
author: Robert Grimm version: $Revision: 1.1 $
Print the specified error message. Calling this method also sets
the error flag.
Parameters: msg - The error message. Parameters: n - The offending node.