> for more than 10 years the latex world is waiting for a > parser, which works ...
TeX? I presume that the safest, if not very lightweight way would be to use TeX itself. Reimplementing crux of TeX as far as macro processing goes isn't that hard if one has TeXbook handy, but if one could just use TeX itself that should get rid of any questions about whether there are bugs in implementation etc. I presume there's a way for TeX to output a "canonical" list of all macros defined so far. Kuba