JavaScript interpreter/evaluator class?
Does anyone know of a way to parse JavaScript expressions in Java? I
am working on a report writer and one of the requirements is a formula
facility. The best thing would be to be able to enter JavaScript
expressions and have them evaluated. Does a class exist to do this?
I've done some searching but haven't found anything. Thanks all!
KC Wong - 31 Aug 2004 04:43 GMT
> JavaScript interpreter/evaluator class?
>
[quoted text clipped - 3 lines]
> expressions and have them evaluated. Does a class exist to do this?
> I've done some searching but haven't found anything. Thanks all!
http://groups.google.com/groups?q=Javascript+parser&hl=en&lr=&ie=UTF-8&selm=02-0
1-114%40comp.compilers&rnum=1
None - 31 Aug 2004 04:52 GMT
Thank you very much, I don't know how I missed that! Looks like
exactly what I needed!
>> JavaScript interpreter/evaluator class?
>>
[quoted text clipped - 5 lines]
>
>http://groups.google.com/groups?q=Javascript+parser&hl=en&lr=&ie=UTF-8&selm=02-0
1-114%40comp.compilers&rnum=1
Martin Honnen - 31 Aug 2004 13:59 GMT
> JavaScript interpreter/evaluator class?
>
> Does anyone know of a way to parse JavaScript expressions in Java? I
> am working on a report writer and one of the requirements is a formula
> facility. The best thing would be to be able to enter JavaScript
> expressions and have them evaluated. Does a class exist to do this?
There is the Rhino implementation from Mozilla.org, check
http://www.mozilla.org/rhino/

Signature
Martin Honnen
http://JavaScript.FAQTs.com/