<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Tahoma","sans-serif";
        color:green;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'>What is that state of a prebuilt Python Editor?&nbsp; My
understanding is that there are bits and pieces, and stuff that was never
brought up to 2.x, but nothing comprehensive currently exists.&nbsp; Maybe I
just don&#8217;t know what is available (anything in Visual Studio we could use
via VSIP?)<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'>For those of us that use IronPython as an application
extensibility mechanism, we could really use this functionality (and would be
willing to pay for it if it were a third-party component we could purchase).&nbsp;
It&#8217;s not our core competency and not something we want to use resources
on.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'>Marty Nelson<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:green'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
users-bounces@lists.ironpython.com [mailto:users-bounces@lists.ironpython.com] <b>On
Behalf Of </b>Curt Hagenlocher<br>
<b>Sent:</b> Wednesday, June 10, 2009 6:15 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Checking syntax of source code without running
it<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>Through the hosting API, it's something like this:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>engine = IronPython.Hosting.Python.CreateEngine()<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>source = engine.CreateScriptSourceFromString(text,
SourceCodeKind.File)<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>errors = ErrorListener()<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>command = source.Compile(errors)<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>if command is None:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;&nbsp; &nbsp;# compilation failed<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Here,&nbsp;ErrorListener is some class that derives
from&nbsp;Microsoft.Scripting.Hosting.ErrorListener and stores the errors.<o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Wed, Jun 10, 2009 at 12:52 PM, Harri Vartiainen &lt;<a
href="mailto:harri.vartiainen@iki.fi">harri.vartiainen@iki.fi</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>Hi,<br>
<br>
&nbsp;What's the best way to check syntax of IronPython source code without<br>
actually running it?<br>
<br>
&nbsp;I'd like to embed IronPython to application and make it as user<br>
friendly as possible, so all checking before running the code would be<br>
helpful.<br>
<br>
&nbsp;There are many options listed here for CPython:<br>
<a
href="http://stackoverflow.com/questions/205704/how-can-i-check-the-syntax-of-python-code-in-emacs-without-actually-executing-it"
target="_blank">http://stackoverflow.com/questions/205704/how-can-i-check-the-syntax-of-python-code-in-emacs-without-actually-executing-it</a><br>
<br>
<br>
<br>
&nbsp;Next stop, debugging..<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com"
target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

<table><tr><td bgcolor=#ffffff><font color=#000000>=======<br>
Notice: This e-mail message, together with any attachments, contains<br>
information of Symyx Technologies, Inc. or any of its affiliates or<br>
subsidiaries that may be confidential, proprietary, copyrighted,<br>
privileged and/or protected work product, and is meant solely for<br>
the intended recipient. If you are not the intended recipient, and<br>
have received this message in error, please contact the sender<br>
immediately, permanently delete the original and any copies of this<br>
email and any attachments thereto.<br>
</font></td></tr></table>