Skip to main content
Book cover

Expert F# pp 461–489Cite as

Lexing and Parsing

  • Chapter
  • 361 Accesses

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

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   84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   54.99
Price excludes VAT (USA)
  • Durable hardcover 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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics