Zython is a lightweight and fast Python interpreter that aims to support the vast majority of Python syntax and core language features, built entirely in Zig.
- Numbers
- Booleans
- Strings
- Arithmetic:
+,-,**, etc - Logical:
and,or,not - Bitwise:
&,|,>>, etc - Comparison:
<,>, etc - Grouping:
() - Walrus operator:
:=
print()len()abs()int()ord()
if/else(not elif yet)passwhileloops withbreakandcontinue- Global variables
- Functions with
defandreturn - Ternary expressions
See /examples.
Currently, you can build Zython from source:
git clone https://github.com/yourusername/zython.git
cd zython
zig build./zython examples/hello_world.py