> Does anyone know if the FPC compiler/libraries can generate an AST (Abstract
> Syntax Tree) in memory (like a DOM) so that one could spit out a PascalML
> XML file (not sure if a DTD or XML-Schema for such a thing exists btw) and
> then be able to do static code analysis and metrics, refactoring, convertion
> to XML-based flow charts languages, convertion to 3D code explorers (say as
> an X3D [VRML3.0] scene) etc.?
>
> For example, if there was a C parser that could spit out XML from C headers,
> one could easier generate wrappers for those C headers for Pascal, Java,
> .NET etc.
The problem with C headers is not that you can't read them. It is more that
they don't specify the stuff they describe on a sufficiently high enough
level to convert it into other languages. And every header writing person
thinks up different solution.
So you could render C headers to "some" XML, but the problem is that you
can't generate much from that XML. It is like trying to recreate food from
already digested food.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives