[REBOL] Re: Evaluating a maths expression in a string?
From: al::bri::xtra::co::nz at: 30-Dec-2000 8:24
> I was thinking, the easiest hack might be to replace +,-,* and / with " +
,
- ", " * " etc
> Sure it's going to result in redundant spaces if they DO put in spaces but
it should work no?
You might have a problem with signed numbers:
1--1-+1
would come out as:
1 - - 1 - + 1
which is illegal.
IIRC, Gabriele had a maths parser which could be able to handle this
problem.
Andrew Martin
ICQ: 26227169 http://members.nbci.com/AndrewMartin/