A simple game interpreter and parser written in lex and yacc