Hostname: page-component-6766d58669-bkrcr Total loading time: 0 Render date: 2026-05-21T11:36:32.546Z Has data issue: false hasContentIssue false

Higher-order functions for parsing*

Published online by Cambridge University Press:  07 November 2008

Graham Hutton
Affiliation:
Department of Computing Science, University of Glasgow (graham@cs.chalmers. se)
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.

In combinator parsing, the text of parsers resembles BNF notation. We present the basic method, and a number of extensions. We address the special problems presented by white-space, and parsers with separate lexical and syntactic phases. In particular, a combining form for handling the ‘offside rule’ is given. Other extensions to the basic method include an ‘into’ combining form with many useful applications, and a simple means by which combinator parsers can produce more informative error messages.

Information

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

Discussions

No Discussions have been published for this article.