Re: [EXTERN] Re: Re: Re: Re: Re: Definition of tokens in GP language
Bill Allombert <[email protected]> Thu, 30 Oct 2025 16:23:36 +0100
| Newsgroups | gmane.comp.mathematics.pari.devel |
|---|---|
| Message-ID | <aQOC-IpbcyuCVg8b@seventeen> |
On Thu, Oct 30, 2025 at 03:20:20PM +0100, Hong-Phuc Bui wrote: > Hi, > > is it your intension, that the lexer in lang.l does not contain binary operators such as '*' or '+' in, > for example, '12 + 34.5'? Yes, any unmatched character is a token on its own, which is then accepted by the parser. There is no need to duplicate the logic in lang.l. Cheers, Bill.