A basic and simple Python-like interpreter written in C.
- Memory management (
memory.h
)-
ByArena
- Reference count
- Garbage collection
-
- Parsing (
tok.h
) - AST (
ast.h
)-
ByAST_Node
-
- Bytecode (
compile.h
)-
ByCodeObject
-
- Execution (
execution.h
)- Simple execution
- Stack-based virtual machine
- Create Bython objects (
objects.h
)-
ByObject_Int
-
ByObject_List
-
- Perform operations (
objects.h
)- Assignment
- Arithmetic
- Functions
- Define
- Call
- Assignment
- Arithmetic
- Arithmetic with assignment
- Defining function
- Calling a function
- Your Guide to the CPython Source Code (realpython.com)
- A Python Interpreter Written in Python (aosabook.org)