On 2010-05-30 21:46, Florian Klaempfl wrote:
Hans-Peter Diettrich schrieb:
Florian Klaempfl schrieb:
I doubt this, just one example: ptconst.pas: it parses typed
constants. Due being tailored for the compiler, it reads the constants
and writes them without any second pass to the output assembler list.
A generic parser needs to create first some kind of parse tree and
this parse tree needs to be outputted in a second pass.
This is what virtual methods are good for.
Yes, one can always hack around such things but in general I'am very
pessimistic that using the fpc parser is possible without too much
drawbacks on the compiler and compiler development.
Considering the benefits, I still would like it done.

If only someone would come forward to name a price on it.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to