Good luck with the project.

I don't know if you're aware of this website[/url], but it has a Pascal version of Lex and Yacc which you may find useful.