Example01 Processing Line-Based Input, pp. 462 On-Demand Reading of Files, pp. 463 Using Regular Expressions, pp. 464 Example02 Listing 16-1. Replacing Characters with Their HTML Equivalents: text2htmllex.fsl, pp. 464 Listing 16-2. Replacing Characters with Their HTML Equivalents: text2html.fs, pp. 464 Example03 Listing 16-3. simpleTokensLex.fsl: Lexing Simple Tokens: Integers, Floats, and Identifiers, pp. 468 Tracking Position Information Correctly, pp. 470 Handling Comments and Strings, pp. 471 Example04 Listing 16-4. Recursive-Descent Parser for Polynomials, pp. 473 Example05 Listing 16-5. kittyAst.fs: Defining the AST for Kitty Programs, pp. 478 Listing 16-6. kittyLexer.fsl: Lexer for Kitty, pp. 479 Listing 16-7. kittyParser.fsy: Parser for Kitty, pp. 480 Putting It Together, pp. 484 Example06 Binary Parsing and Pickling Using Combinators, pp. 486