kirancodes.me
To Proof Maintenance & Beyond!

Predictive Parser Combinators Need four Values to Report Errors

Andrew S. Partridge, David Wright

Abstract

Abstract A combinator-based parser is a parser constructed directly from a BNF grammar, using higher-order functions (combinators) to model the alternative and sequencing operations of BNF. This paper describes a method for constructing parser combinators that can be used to build efficient predictive parsers which accurately report the cause of parsing errors. The method uses parsers that return values (parse trees or error indications) decorated with one of four tags.

Related papers