[Lazarus] Parsing compiler directive with fcl-passrc
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun May 17 19:55:38 CEST 2020
On Sun, 17 May 2020 12:43:41 +0200
Simone Tacconi via lazarus <lazarus at lists.lazarus-ide.org> wrote:
> I know that in general, compiler directives are processed by the
> preprocessor before the parser. In my case I use fcl-passrc in a code
> analysis tool that I am building and I would need to detect
> directives during parsing. It's possible? In the PasTree unit I
> don't see data structures for comments / directives. Thanks.
You can override TPascalScanner.HandleDirective
Mattias
More information about the lazarus
mailing list