[LLVMdev] LLVM parsers for popular languages? (original) (raw)
Alec Taylor alec.taylor6 at gmail.com
Sat Jul 4 01:57:33 PDT 2015
- Previous message: [LLVMdev] LLVM parsers for popular languages? - Python, Rust, Go
- Next message: [LLVMdev] LLVM parsers for popular languages? - Python, Rust, Go
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
No worries, I think the ast <https://docs.python.org/2/library/ast.html> module will suffice for now.
On Sat, Jul 4, 2015 at 6:49 PM, Antoine Pitrou <antoine at python.org> wrote:
Alec Taylor <alec.taylor6 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.
LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150704/87682a26/attachment.html>
- Previous message: [LLVMdev] LLVM parsers for popular languages? - Python, Rust, Go
- Next message: [LLVMdev] LLVM parsers for popular languages? - Python, Rust, Go
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]