Hongyi Zhao on Tue, 10 Jan 2023 10:43:53 +0100


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

Re: Programmatically obtain a complete list of commands and keywords for updating the PARI/GP third-party IDE tools.


On Tue, Jan 10, 2023 at 5:22 PM Ruud H.G. van Tol <rvtol@isolution.nl> wrote:
>
>
> On 2023-01-10 10:04, Joël Bleuse wrote:
> > echo '?*' | gp -fq | sed -E '/^$/d;/RETURN/d;s/ +(\w)/\n\1/g' >
> > gpfunctions
>
> echo '?*' |gp -fq |perl -aE'/\bRETURN\b/ or push@R,@F;END{say for@R}'
> |sort|less
>
> shows:
>
> Catalan
> Col
> Colrev
> Euler
> I
> [...]
> znprimroot
> znstar
> znsubgroupgenerators
>
> For case-insensitive sort, add -f.

Nice. It does the trick. But Perl is my nightmare, and I'm always
confused by its strange syntax.

werner@X10DAi:~$ echo '?*' |gp -fq |perl -afE'/\bRETURN\b/ or
push@R,@F;END{say for@R}' |sort| tail
znchartoprimitive
znconreychar
znconreyconductor
znconreyexp
znconreylog
zncoppersmith
znlog
znorder
znprimroot
znstar


> -- Ruud

Best Regards,
Zhao