Charles Greathouse on Sat, 19 Aug 2023 22:23:38 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Are there lint and/or formatter for PARI/GP?


I think gp2c has an option -G to output GP, which would presumably handle formatting. I’m not aware of a GP linter.

On Sat, Aug 19, 2023 at 1:05 PM <hermann@stamm-wilbrandt.de> wrote:
I am working with PARI/GP scripts a lot, sometimes because they are even
faster than C++ with libgmpxx ("halfgcd()" vs. "halfgcdii()"), mostly
because everything can be done very compact and fast, and because
PariDroid is with me on sartphone on hikes with dog.

For C++ I use cpplint and cppcheck for linting, and they provide
warnings about missing spaces, ... which I modify source manually until
clean.

For Python I use "pylint", and "black" for formatting (cool software).

I really would like to lint or format PARI/GP scripts, but understand if
those are not available.


Regards,

Hermann.