On Sat, 14 Sep 2019, Ryan Joseph via lazarus wrote:

A follow up. I built the parsepp.pp program and used it to parse a file. Everything seems to work except it tries to follow include macros (that
would be nice to turn off since it requires compiler flags to work
properly) and += operators are causing errors.  Why doesn’t it know c
style operators?

It mimics FPC in behaviour.

By default, FPC also does not allow C style operators.

You need to provide the -Sc command-line flag to the parser or set the appropriate flag manually on the parser object.

Normally this should do it:

parsepp -Sc yourfile.

the parser understands all directives and compiler flags that FPC itself
understands. So you can just do
parsepp -Sc yourfile. -Fi../your/include/dir


Michael.
-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to