A lexical scanner implementation based off a talk by Rob Pike