Abstract
In this chapter, you’ll take a closer look at lexing and parsing, topics introduced briefly in Chapters 9 and 11. In particular we introduce the lexer and parser generators, fslex and fsyacc, that come with the F# distribution. A typical scenario when these techniques and tools can come in handy is the following:
-
You want to read “user-readable” input that has a well-defined syntax.
-
You have a type (often an abstract syntax tree [AST] type) to represent this input.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 Don Syme, Adam Granicz, and Antonio Cisternino
About this chapter
Cite this chapter
Syme, D., Granicz, A., Cisternino, A. (2007). Lexing and Parsing. In: Expert F#. Apress. https://doi.org/10.1007/978-1-4302-0285-1_16
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0285-1_16
Publisher Name: Apress
Print ISBN: 978-1-59059-850-4
Online ISBN: 978-1-4302-0285-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)