[REBOL] Re: let's re-visit math oper. in a var.
From: petr:krenzelok:seznam:cz at: 4-Apr-2009 8:09
Graham Chiu napsal(a):
> If you wanted to write a single line calculator I would let the user
> input an entire arithmetic expression.
> Then parse it to make sure it was syntactically correct ( using the
> example from the parse documentation pages )
> And then 'do it.
>
Here's R2 desktop Demo section Calculator script. Pretty tiny, and does
the job: http://www.rebol.com/view/demos/calculator.r
-pekr-