A method is considered for diagnosing syntax errors arising in the operation of an Earley syntax analysis algorithm. A method is described for determining the error context. A method is also given for the semantic interpretation of errors, which is based on the correspondence between labeled rules in the initial grammar and the terminal characters.
展开▼