Head First Lexical Analysis(1)
In general, lexical analysis is the process that transform the input source program to token stream, which later will be used by parser to produce syntax tree. Nowadays, a technique called Parser Combinator may blur the boundary between parsers and lexers. However, how to use a Parser Combinator efficiently still demands a good knowledge of lexers. Besides, a Parser Combinator is LL(k), that means you have to manually eliminate left recursion....