Validating Syntax only with PyParser_SimpleParseString ?

2006-03-29 Thread gaston . gloesener
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

Re: Validating Syntax only with PyParser_SimpleParseString ?

2006-03-30 Thread gaston . gloesener
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