I am seeking for a method to parse single lines of Python code (infact
they are only formulas, so I generate a line like RESULT=). I
do only want to know if the syntax is correct and if there is an error
best would be to know where.
I did find PyParser_SimpleParseString which does return a node
s
Thanks for th eanswers so far.
But as you can see from the function I use, I do need an interface
function to do th ejob from C++. I canno timagine there is no clean way
to do this. Calling th epython interpreter to execute a compule
function in python and then get the output parsed to get th eerr