Robert Klemme <bob.news / gmx.net> wrote:
> 
> Well, the proper way would be to write a parser for a macro language.  You
> can get quite far with a simple hack like the one attached, although that
> does only support nested macro invocations without using () for sub
> macros.  (Reason is that you can't parse nested brackets with regular
> expressions.)

I wonder how adaptable camlp4 is.

martin