Patents
US 5,487,147 A#365902 Most CitedExpiredUnited States (USPTO)Utility

Generation of error messages and error recovery for an LL(1) parser

81Forward Citations (#365902 Global)
2.7/yrCitation Velocity (#1116478 Global)
12.05Citation PageRank (#779258 Global)
13Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

The syntactic definition of a grammar for language statements is the basis for a method for automatically generating error messages and error recovery for the language statements. The grammar is used to produce a parser, an error message generator, and error recovery for the language statements. The error message generator is produced automatically along with a parser and provides an indication of alternative valid input symbols. The method also produces the automatic generation of expected symbols lists to achieve error message generation goals. The error recovery routines are also produced automatically along with a parser and provide an indication of where valid parsing continues in the event of error detection in the language statements. The method also uses the dynamic generation of sets of synchronization symbols to achieve error recovery goals.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 81.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for dynamically producing a set of synchronizing symbols, said method comprising the steps of: creating a copy of a parsing stack, said parsing stack being produced by a parser operating consistently with a set of grammar rules to create said stack; adding a bottom of stack indicator to the set of synchronizing symbols; scanning said stack to determine if the symbol at the top of the stack is the bottom of stack indicator and terminate synchronizing symbol accumulation if it is, otherwise, continue processing by: determining if the symbol at the top of the stack is a nonterminal

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Crookes et al., Building Syntax Graphs from Syntax Equations: A Case Study in Modular Programming, Software Practice & Experience, vol. 13(12), Dec. 1983, pp. 1129 1139.
  • Crookes et al., Building Syntax Graphs from Syntax Equations: A Case Study in Modular Programming, Software-Practice & Experience, vol. 13(12), Dec. 1983, pp. 1129-1139.
  • Sippu et al., A Syntax Error Handling Technique and Its Experimental Analysis, ACM Transactions on Programming Languages & Systems, vol. 5, No. 4, Oct. 1983, pp. 656 679.
  • Sippu et al., A Syntax-Error-Handling Technique and Its Experimental Analysis, ACM Transactions on Programming Languages & Systems, vol. 5, No. 4, Oct. 1983, pp. 656-679.
  • Spenke et al., A Language Independent Error Recovery Method for LL(1) Parsers, Software Practice & Experience, vol. 14(11), Nov. 1984, pp. 1095 1107.