[Lazarus] Using FPC parser/tokenizer for code formatting

Michael Van Canneyt michael at freepascal.org
Sun May 30 15:07:11 CEST 2010



On Sun, 30 May 2010, Marco van de Voort wrote:

> On Sat, May 29, 2010 at 06:05:26PM +0200, Michael Van Canneyt wrote:
>>> think something can be done there.  But I think it would yield more to
>>> integrating fcl-passrc into the testsuite, and thus document the boundery
>>> conditions of implemented constructs.
>>
>> Well, given the recent breakage because of the support for 'deprecated',
>> I started on a test file, but I think that a better and more fundamental
>> approach is needed. My idea was to create a large number of small files
>> with code fragments. The test application reads the fragments and puts
>> them in a unit (interface/implementation) and attempts to scan/parse it.
>> After that, it's just a matter of creating the code fragments.
>
> Different discussion. That is for new tests specific for fcl-passrc. I'm
> talking about stuffing the tests that we already have through it.

Ah. I misunderstood that.

But still, the test-app I have in mind could be used for that: just a matter
of configuring.

Michael.




More information about the Lazarus mailing list