Compilers, Interpreters and Language Tools
Understand and build language tools with Python.
Expert
This is an overview — pick a sub-topic below.
Sub-topics (6)
Lexers, Parsers and ASTs
Break code into tokens, build syntax trees, and analyse them.
Advanced♥ 0🔖 0💬 0
Parser Generators: Lark, PLY, ANTLR and pyparsing
Define a grammar and generate a parser.
Advanced♥ 0🔖 0💬 0
Code Transformation: LibCST, Bowler and RedBaron
Modify Python source code while preserving formatting.
Advanced♥ 0🔖 0💬 0
Bytecode, dis and the CPython Interpreter
CPython compiles source to bytecode and runs it in a virtual machine.
Expert♥ 0🔖 0💬 0
JIT Compilers and Alternative Implementations
Numba, PyPy, Cython, mypyc, Codon and Mojo approach Python speed from different angles.
Advanced♥ 0🔖 0💬 0
LLVM with llvmlite and Writing an Interpreter
Generate machine code via LLVM from Python (llvmlite), or build a toy interpreter to learn how languages work.
Expert♥ 0🔖 0💬 0
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.