<div dir="ltr">No worries, I think the <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.python.org_2_library_ast.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=J4dDrahgBFY8DLfqZFiaM57pzfXgA9gr6JoN5HC6UIk&s=CWl_M-CrX_5qHhqII4J8q6K0p2zBDfhDsbK6quFp8uY&e=">ast</a> module will suffice for now.<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 4, 2015 at 6:49 PM, Antoine Pitrou <span dir="ltr"><<a href="mailto:antoine@python.org" target="_blank">antoine@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Alec Taylor <alec.taylor6 <at> <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gmail.com&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=J4dDrahgBFY8DLfqZFiaM57pzfXgA9gr6JoN5HC6UIk&s=nS-oURzcqPXtbO6AdMLidLQTmqFnq8nAwekc8A6ifzQ&e=" rel="noreferrer" target="_blank">gmail.com</a>> writes:<br>
><br>
</span><span class="">> So is there a [decoupled] LLVM parser which I can use to read Python files<br>
and analyse objects (including computing their attributes in OO and setattr<br>
scenarios)?<br>
<br>
</span>There isn't. We simply let Python parse the JITted code itself. The parser<br>
is written in C, and is in the CPython code base. If you want to tinker<br>
with that, there is a doc at <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.python.org_devguide_compiler.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=J4dDrahgBFY8DLfqZFiaM57pzfXgA9gr6JoN5HC6UIk&s=4MRnjGCrOvnY2GcOlkdybD8rvpQDtaesiaSkLc9oW8Y&e=" rel="noreferrer" target="_blank">https://docs.python.org/devguide/compiler.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
Regards<br>
<br>
Antoine.<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>