[Lazarus] Using FPC parser/tokenizer for code formatting

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat May 29 22:28:55 CEST 2010


Michael Van Canneyt schrieb:

> 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.

A nice idea, but what about verification of the result? Not getting 
exceptions is not necessarily a sign of a properly working parser, with 
decent error recovery.

DoDi





More information about the Lazarus mailing list