Python library for compiler optimization experiments

I want to learn about compilers and some optimization methods, and I thought it would be useful to make some quick implementations of the algorithms.
Is there a library / framework for Python that can simplify the task (for example, the Natural Language Toolkit) - generate a parsing tree, manipulate loops, methods?

I saw that Microsoft Research has a Phoenix library, but it is designed for C ++, and I would like to avoid writing prototypes in C ++, it works too much.

Thanks in advance!

+3
source share
1 answer

, Python , . Python PyPy JIT RPython. , LLVM, ++, , , . LLVM ( ) , , API . Python, , LLVM 2.6. LLVM , , , this.

+4

Source: https://habr.com/ru/post/1752971/


All Articles