[Lazarus] Using FPC parser/tokenizer for code formatting

Adem listmember at letterboxes.org
Sun May 30 20:53:05 CEST 2010


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.




More information about the Lazarus mailing list