Hostname: page-component-77f85d65b8-lfk5g Total loading time: 0 Render date: 2026-04-21T22:24:25.867Z Has data issue: false hasContentIssue false

Predictive parser combinators need four values to report errors

Published online by Cambridge University Press:  07 November 2008

Andrew Partridge
Affiliation:
Department of Computer Science, University of TasmaniaGPO Box 252C, Hobart, Tasmania 7001, Australia (e-mail: {A.S.Partridge, D.A.Wright}@cs.utas.edu.au)
David Wright
Affiliation:
Department of Computer Science, University of TasmaniaGPO Box 252C, Hobart, Tasmania 7001, Australia (e-mail: {A.S.Partridge, D.A.Wright}@cs.utas.edu.au)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 1996
Submit a response

Discussions

No Discussions have been published for this article.