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.
This is what I did when I added a line calculator to my applet that does prescribing .. to allow the users to calculate doses. On Sat, Apr 4, 2009 at 12:17 PM, Tim Johnson <[email protected]> wrote: > > On Friday 03 April 2009, Gregg Irwin wrote: > >> I think the biggest <click> in my head was when I finally understood >> that there is no code in REBOL, there is only data that is evaluated. > =A0Very lispish..... "Rebol is the Blue Pill" > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > --=20 Graham Chiu http://www.synapsedirect.com Synapse - the use from anywhere EMR. -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
