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,
fsyacc, that come with the F# distribution. A typical scenario when these techniques and tools can come in handy is the following:
The typical task is to parse the user input into your internal representation by breaking down the input string into a sequence of tokens (a process called lexical analysis) and then constructing an instance of your internal representation based on a ...