I have almost always used a handwritten lexer as it seemed about the same 
amount of work and the end result is much smaller and easier to understand and 
lexers for different languages are not all that different so once you've 
written one it is pretty easy to write another; and somehow lex or flex 
interface never felt quite right.

On Feb 27, 2012, at 8:03 PM, Nick LaForge <nicklafo...@gmail.com> wrote:

> Are you certain you want to use Lex?  If no, you may like this
> fascinating and instructive lecture by Rob Pike, which solves a lexing
> problem using Golang: http://www.youtube.com/watch?v=HxaD_trXwRE
> 
> If you have "The Unix Programming Environment" handy, you will also
> find a lucid tutorial of Lex and Yacc both (in the later chapters).
> 
> Nick
> 
> On 2/27/12, arn...@skeeve.com <arn...@skeeve.com> wrote:
>> O'Reilly's "lex & yacc" is somewhat more user-friendly a reference than
>> the dragon book, although the latter certainly has its value. :-)
>> 
>> Arnold
>> 
>> 
> 

Reply via email to