On 01.09.2012 12:05, Sven Barth wrote:
On 31.08.2012 20:48, Kenneth Cochran wrote:
First I'll say I know very little about the inner workings of an actual
compiler. I took a course on formal language theory ages ago so I do
have some understanding of the theory. Lately my interests have been
pulling me toward projects that either benefit from or depend on static
analysis. So I'm finding myself in need of a parser for object pascal.
I'm wondering if fpc exposes any of the output (syntax trees, graphs,
etc) from the parser that could be consumed by an external tool?
While the responses of the others are all good and well your original
questions wasn't answered: no, the compiler does not provide such a
possibility.
Though you could take a look at the tree.log provided when you add the
option "-vp". But be warned: this output is only intended for debugging
and its structure can change from one revision to the next without warning.
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal