My recommendation for a project like this would be SimpleParse <http://simpleparse.sourceforge.net> Some examples are here <http://simpleparse.sourceforge.net/simpleparse_grammars.html> and <http://www-128.ibm.com/developerworks/linux/library/l-simple.html> /Jean Brouwers