Study a [Go lexer](http://www.youtube.com/watch?v=HxaD_trXwRE) implementation, modify from rob pike's [code](https://code.google.com/p/rspace/source/browse/#hg%2Fslide%2Flex)