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 whitespace, 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. © 1992, Cambridge University Press. All rights reserved.
Cite
CITATION STYLE
Hutton, G. (1992). Higher-order functions for parsing. Journal of Functional Programming, 2(3), 323–343. https://doi.org/10.1017/S0956796800000411
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.