Re: [EXTERN] Re: Re: Definition of tokens in GP language
Bill Allombert <[email protected]> Sat, 25 Oct 2025 12:46:41 +0200
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <aPyqkdsOkOrx_2fg@seventeen> |
On Sat, Oct 25, 2025 at 11:37:29AM +0200, Hong-Phuc Bui wrote: > Before I try to do something impossible: did someone try to rewrite the lexer in lex? Ah ah! Good idea. In fact, I did it already. See gp2c, file src/lang.l https://pari.math.u-bordeaux.fr/cgi-bin/cgitweb.cgi?p=gp2c.git;a=blob_plain;f=src/lang.l;hb=HEAD but it fails in some corner cases, I need to fix it: echo "3!==6"| gp2c stdin:1: syntax error, unexpected '=' Errors found: aborting... Cheers, Bill.