Parse Your Options

Autor: Doaitse Swierstra, Atze Dijkstra
Rok vydání: 2013
Předmět:
Zdroj: Lecture Notes in Computer Science ISBN: 9783642403545
The Beauty of Functional Code
DOI: 10.1007/978-3-642-40355-2_16
Popis: We describe the development of a couple of combinators which can be used to run applicative style parsers in an interleaved way. In the presentation we advocate a scheme for choosing identifier names which clearly shows the types of the values involved, and how to compose them into the desired result. We finish with describing how the combinators can be used to parse command line arguments and files containing options.
Databáze: OpenAIRE