[LLVMdev] LLVM parsers for popular languages? - Python, Rust, Go
Antoine Pitrou
antoine at python.org
Sat Jul 4 01:49:38 PDT 2015
Alec Taylor <alec.taylor6 <at> gmail.com> writes:
>
> So is there a [decoupled] LLVM parser which I can use to read Python files
and analyse objects (including computing their attributes in OO and setattr
scenarios)?
There isn't. We simply let Python parse the JITted code itself. The parser
is written in C, and is in the CPython code base. If you want to tinker
with that, there is a doc at https://docs.python.org/devguide/compiler.html
Regards
Antoine.
More information about the llvm-dev
mailing list