You can use the Parser class directly for this (e.g. Parser.FromFile or 
Parser.FromString).  You just need to give it a CompilerContext which includes 
a CompilerSink object.  Your CompilerSink object will get called back w/ the 
errors.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ori
Sent: Thursday, August 02, 2007 11:42 PM
To: [email protected]
Subject: [IronPython] Find the compile erros


Hello,

I'm using PythonEngine.Compile to compile code. The code I compile may
contain errors and that's why I want to format the error(s). Currently I'm
using try-catch and I work with the exception error text. Is there a btter
way to get the compilation errors?

Thanks,
Ori
--
View this message in context: 
http://www.nabble.com/Find-the-compile-erros-tf4210886.html#a11978230
Sent from the IronPython mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to