[fpc-pascal] Access to compiler's internal data structures

Sven Barth pascaldragon at googlemail.com
Sat Sep 1 12:08:20 CEST 2012


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




More information about the fpc-pascal mailing list