'Get number of recognition errors (lexer, parser, tree parser).  Each
recognizer tracks its own number.  So parser and lexer each have
separate count.  Does not count the spurious errors found between
an error and next valid token match
See also reportError()'

def getNumberOfSyntaxErrors(self):

    return self._state.syntaxErrors
