Skip to main content

Lexing and Parsing

  • Chapter
Expert F# 2.0

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Editor information

Clay Andres Steve Anglin Mark Beckner Ewan Buckingham Gary Cornell Jonathan Gennick Jonathan Hassell Michelle Lowman Matthew Moodie Duncan Parkes Jeffrey Pepper Frank Pohlmann Douglas Pundick Ben Renow-Clarke Dominic Shakeshaft Matt Wade Tom Welsh Anita Castro Tiffany Taylor

Rights and permissions

Reprints 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

Publish with us

Policies and ethics