John R. Hogerhuis wrote: > The hard part is coming up with the state machine. Once you have that, lex and/or yacc are highly recommended...