This little book is a very good introduction and reference for both lex and yacc (and the GNU tools flex and bison). It is very well organized making for a very useful desk reference. This is the best introduction to lex and yacc that I have found. A must own for any programmer with language processing needs.