Hi all Jython-Users,

I have a little problem. I use Jython as a "scripting environment" for my Java software. Within the Java code I would like to know whether my string holds a valid Jython expression or not, without evaluating it. So I simply would like to know whether the string is syntactically correct ...

Is there any way to do that using the Jython interface?

For example something like this here:

isValid("X1 + X2")

X1 and X2 are of course known by the intepreter object ...


Thanks and best regards
Markus