Start of a lexical analyzer.  At least, groundwork for it...