Skip to main content Accessibility help
×
Home

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)
Corresponding
E-mail address:

Abstract

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.


Type
Articles
Copyright
Copyright © Cambridge University Press 1992

Access options

Get access to the full version of this content by using one of the access options below.

References

Aho, A., Sethi, R. and Ullman, J. 1986. Compilers – Principles, Techniques and Tools. Addison-Wesley.Google Scholar
Fairbairn, J. 1986. Making Form Follow Function. Glasgow University.Google Scholar
Frost, R. and Launchbury, J. 1988. Constructing Natural Language Interpreters in Lazy Functional Languages. Glasgow University.Google Scholar
Hudak, P. and Wadler, P. (eds). 1990. Report on the Programming Language Haskell. Glasgow University-Yale University.Google Scholar
Hutton, G. 1989. Parsing using combinators. In Proc. Glasgow Workshop on Functional Programming. August 1989, Springer Workshops in Computing, Springer-Verlag.Google Scholar
Johnsson, T. 1987. Attribute grammars as a functional programming paradigm. In Proc. FPCA 87, Vol. 274 of Lecture Notes in Computer Science. Springer-Verlag.Google Scholar
Landin, P. 1966. The Next 700 Programming Languages. Comm. ACM, 9 (Mar.).CrossRefGoogle Scholar
Wadler, P. 1985. How to Replace Failure by a List of Successes. In Proc. FPCA 85, Vol. 201 of Lecture Notes in Computer Science. Springer-Verlag.Google Scholar
Wadler, P. 1990. Comprehending Mondads. In Proc. FPCA 90.Google Scholar
Submit a response

Discussions

No Discussions have been published for this article.

Altmetric attention score


Full text views

Full text views reflects PDF downloads, PDFs sent to Google Drive, Dropbox and Kindle and HTML full text views.

Total number of HTML views: 0
Total number of PDF views: 52 *
View data table for this chart

* Views captured on Cambridge Core between September 2016 - 5th December 2020. This data will be updated every 24 hours.

Hostname: page-component-b4dcdd7-jwbp8 Total loading time: 0.782 Render date: 2020-12-05T23:28:08.536Z Query parameters: { "hasAccess": "0", "openAccess": "0", "isLogged": "0", "lang": "en" } Feature Flags last update: Sat Dec 05 2020 23:01:17 GMT+0000 (Coordinated Universal Time) Feature Flags: { "metrics": true, "metricsAbstractViews": false, "peerReview": true, "crossMark": true, "comments": true, "relatedCommentaries": true, "subject": true, "clr": false, "languageSwitch": true }

Send article to Kindle

To send this article to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about sending to your Kindle. Find out more about sending to your Kindle.

Note you can select to send to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be sent to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Higher-order functions for parsing*
Available formats
×

Send article to Dropbox

To send this article to your Dropbox account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your <service> account. Find out more about sending content to Dropbox.

Higher-order functions for parsing*
Available formats
×

Send article to Google Drive

To send this article to your Google Drive account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your <service> account. Find out more about sending content to Google Drive.

Higher-order functions for parsing*
Available formats
×
×

Reply to: Submit a response


Your details


Conflicting interests

Do you have any conflicting interests? *