[fpc-pascal] Read comments via fcl-passrc

Michalis Kamburelis michalis.kambi at gmail.com
Mon Apr 23 14:42:49 CEST 2018


Michael Van Canneyt <michael at freepascal.org> wrote:

>
>
> On Mon, 23 Apr 2018, Michael Fuchs wrote:
>
> > Am 23.04.2018 um 12:43 schrieb Mattias Gaertner:
> >>> I found TPasTreeContainer.NeedComments but it does nothing.
> >>
> >> Set that to true. Then create the parser.
> >
> > Ok, so I can not use the function ParseSource from unit PParser anymore
> > and have to write my own one?
> >
> >> Read Parser.SavedComments on every CreateElement.
> >
> > Can I save the comments in the DocComment property of every element or
> > is this used somewhere else?
>
> It's normally not used; The idea is to use this in a pasdoc->fpdoc
> converter.
>

Or the PasDoc inplementation itself :) I want to one day migrate PasDoc
code to just use fcl-passrc parser. Currently PasDoc uses custom parser,
that reads only interface.

Thanks for making this available.

Regards,
Michalis

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180423/984cf1e5/attachment.html>


More information about the fpc-pascal mailing list