Can anyone let me know is it possible to parse any Javascript file
using Rhino? Is Rhino actually Javascript Parser which can parse any
JS file.
Hope to get a reply soon.
Thanks & Regards
Sunil
Hi,
Thanks & Regards
Sunil
_______________________________________________
dev-tech-js-engine-rhino mailing list
dev-tech-js-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
Thanks a lot for replying.
It would be nice if you can guide me which class shall I use of Rhino
API to parse JS file. I am very new to Javascript, it would be really
nice if you can guide me to some example or even the class which can
let me parse JS file.
Will also go through the Rhino API, but if you can let me know then
that would be really helpful.
Thanks & Regards
Sunil
-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+davidparks21=yaho...@lists.mozilla.org
[mailto:dev-tech-js-engine-rhino-bounces+davidparks21=yaho...@lists.mozill
a.org] On Behalf Of javame_android
Hi,
Thanks & Regards
Sunil
_______________________________________________
What I want is, if suppose I give Rhino a javascript file then can it
return the output of a particular function. I mean to say if the
function performed some mathematical calculations then will that
return me the result in my java program.
If yes, then can you suggest the approach.
Thanks & Regards
Sunil
I have managed to parse Javascript file. But, now the problem is that
it parses the file with only function in it. If there are two methods
or function in the Javascript file then it throws an exception.
So, can anyone let me know which method to call so that we provide the
method name and then that method of Javascript should be parsed and
result returned.
A simple JS file such as (taken from the documentation example):
function f(x){return x+1} f(7)
should have no problem. What exception are you seeing? I imagine it is
unrelated to the fact that you have 2 functions defined in your javascript
and more likely due to some problem the JS its self (but that's just a blind
guess until we see what you see).
David
-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+davidparks21=yaho...@lists.mozilla.org
[mailto:dev-tech-js-engine-rhino-bounces+davidparks21=yaho...@lists.mozill
a.org] On Behalf Of javame_android
Sent: Monday, October 05, 2009 7:33 PM
To: dev-tech-js-...@lists.mozilla.org
Subject: Re: Parsing Javascript using Rhino?
Hi,
Thanks & Regards
Sunil