Re: Evaluate basic arithmatic in a string
From: John Harlow (sirsausage_at_hotmail.com)
Date: 04/02/04
- Next message: Québec: "debugger an eternal mystery (reload)"
- Previous message: David Morris: "Evaluate basic arithmatic in a string"
- In reply to: David Morris: "Evaluate basic arithmatic in a string"
- Next in thread: David Morris: "Re: Evaluate basic arithmatic in a string"
- Reply: David Morris: "Re: Evaluate basic arithmatic in a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 2 Apr 2004 09:54:43 -0500
> I have a string that contains the following value:
>
> "myValue += 5"
>
> I need, in Java, to be able to evaluate this expression.
Consider using http://www.mozilla.org/rhino/ - the eval() function does this
nicely.
Powerful stuff!
- Next message: Québec: "debugger an eternal mystery (reload)"
- Previous message: David Morris: "Evaluate basic arithmatic in a string"
- In reply to: David Morris: "Evaluate basic arithmatic in a string"
- Next in thread: David Morris: "Re: Evaluate basic arithmatic in a string"
- Reply: David Morris: "Re: Evaluate basic arithmatic in a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]