bug-libmatheval
[Top][All Lists]
Advanced

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

Re: [bug-libmatheval] "reverse alphanumerical" variables optional featur


From: Aleksandar Samardžić
Subject: Re: [bug-libmatheval] "reverse alphanumerical" variables optional feature possible?
Date: Thu, 9 Jan 2014 18:25:18 +0100
User-agent: Mutt/1.5.22 (2013-10-16)

On Thu, Jan 09, 2014 at 06:44:20AM +0100, Joey wrote:
>
>   [ ... ]
> 
> In the program I'm currently working on, https://github.com/ozette/roloc, I
> want to be able to do this for example:
> 
>    RED+00FF00
> 
>    [ ... ]
>

Hi Joey,

As Lex is doing greedy parsing, if you want to separate parsing just
6-digit hexadecimal numbers from the rest, I think it is doable to
change libmatheval lexer to do what you want (on the other side, I'd
agree with Marin that it's not good idea to allow for variables starting
with numbers - albeit this may be doable with some changes in the parser
too).  So if you would be interested in this, can you get in touch with
me in private in about 10 days or so (I'm off at the moment)?

Regards,
Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]