Python Lex-Yacc
Getting Started with PLY
The Hello World of PLY - A Simple Calculator
Part 1 Tokenizing Input with Lex
Part 2 Parsing Tokenized Input with Yacc