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. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
