This is an excerpt from my ongoing book project on Alex and Happy — which are Haskell tools for building parsers and lexers. The code examples are available here on GitHub. In this chapter we discuss how to parse two features of programming language grammars: strings and comments. Given the text /* This whole section commented out /* A sample program */ */ "Bo\"bcat" cat cat cat "/*Comment*/" cat