This tutorial is brilliant. It explains the usage of lex and yacc very clearly. The second part of this video tutorial is here:<p><a href="https://www.youtube.com/watch?v=__-wUHG2rfM" rel="nofollow">https://www.youtube.com/watch?v=__-wUHG2rfM</a><p>The source code for this tutorial can be downloaded from GitHub:<p>Part1: <a href="https://github.com/jengelsma/lex-tutorial" rel="nofollow">https://github.com/jengelsma/lex-tutorial</a><p>Part2: <a href="https://github.com/jengelsma/yacc-tutorial" rel="nofollow">https://github.com/jengelsma/yacc-tutorial</a>