use of org.cafebabepy.parser.NormalParser in project cafebabepy by cafebabepy.
the class Python method eval.
public static PyObject eval(String input) {
Python runtime = Python.createRuntime();
NormalParser parser = new NormalParser(runtime);
PyObject ast = parser.parse(input);
InterpretEvaluator evaluter = new InterpretEvaluator(runtime);
return evaluter.evalMainModule(ast);
}
Aggregations