Lex / flex examples suggested order of ingestion: txt2html.l - make text file ready for inclusion in html "pre" tags wordcount.l - example from flex man page calc.l - postfix calculator html2txt1.l - create text representation from html source, increasingly fancy html2txt2.l html2txt3.l pascal.l - example from flex man page then, look at hw2/scanner.l