Abstract
In combinator parsing, the text of parsers resembles BNF notation. We present the basic method, and show how it may be extended to more practical parsers. We address the special problems of layout, and parsers with separate lexical and syntactic phases. In particular, an elegant new way of handling the offside rule is given. Many examples and comments are included.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Alfred Aho, Ravi Sethi and Jeffrey Ullman. Compilers - Principles, Techniques and Tools. Addison-Wesley, 1986.
Philip Wadler. How to Replace Failure by a List of Successes. FPCA 85, LNCS 201, 1985.
John Fairbairn. Making Form Follow Function. Glasgow University, 1986.
Richard Frost and John Launchbury. Constructing Natural Language Interpreters in Lazy Functional Languages. Glasgow University, 1988.
John Launchbury. Parsing in a Functional Language using Higher Order Cornbinators. Glasgow University, 1988. ( Unpublished )
Peter Landin. The Next 700 Programming Languages. CACM Vol. 9, March 1966.
Geraint Jones. Programming in occam. Prentice-Hall International, 1987.
Paul Hudak and Philip Wadler (editors). Report on the Programming Language Haskell. Glasgow University and Yale University. 1989. ( Draft )
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1990 British Computer Society
About this paper
Cite this paper
Hutton, G. (1990). Parsing Using Combinators. In: Davis, K., Hughes, J. (eds) Functional Programming. Workshops in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-3166-3_24
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3166-3_24
Publisher Name: Springer, London
Print ISBN: 978-3-540-19609-9
Online ISBN: 978-1-4471-3166-3
eBook Packages: Springer Book Archive