[fpc-pascal] Read comments via fcl-passrc

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 23 12:43:56 CEST 2018


On Mon, 23 Apr 2018 12:24:26 +0200
Michael Fuchs <freepascal at ypa-software.de> wrote:

> Hi,
> 
> while working with fcl-passrc I search for a possibility to get the
> comments of a source file in the parsed tree.
> 
> I found TPasTreeContainer.NeedComments but it does nothing.

Set that to true. Then create the parser.
Read Parser.SavedComments on every CreateElement.

Mattias



More information about the fpc-pascal mailing list