On 13/12/2007, Tim Chase <[EMAIL PROTECTED]> wrote: > >> Oof! Fond as I am of promoting pyparsing, writing a Pascal > >> compiler (or even just syntax checker) is not a job I would > >> tackle lightly, much less suggest to a new Python developer. > > True enough...thus my weeks/months/years estimate for such an > undertaking :) > > But if not mentioned, you know the next question would be "how do > I create a regular expression to match valid Pascal programs?" >
Go track down the source code of an open source text editor that supports Pascal highlighting. Kate comes to mind. It's not written in Python, but it will have Pascal parsing code for the highlighter. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -- http://mail.python.org/mailman/listinfo/python-list