Abstract
In this chapter, you take a closer look at lexing and parsing, topics introduced briefly in Chapters 9 and 11. In particular, the chapter introduces 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2010 Don Syme, Adam Granicz, and Antonio Cisternino
About this chapter
Cite this chapter
Syme, D., Granicz, A., Cisternino, A. (2010). Lexing and Parsing. In: Andres, C., et al. Expert F# 2.0. Apress. https://doi.org/10.1007/978-1-4302-2432-7_16
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2432-7_16
Publisher Name: Apress
Print ISBN: 978-1-4302-2431-0
Online ISBN: 978-1-4302-2432-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)