mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
7d20869dc0602cecf4fc91d528d6cffc0ec7601f
RustPython
A Python Interpreter written in Rust 🐍 😱 🤘.
Usage (Not implemented yet)
To test RustPython, do the following:
$ git clone https://github.com/RustPython/RustPython
$ cd RustPython
$ cargo run demo.py
42
Or use pip to install extra modules:
$ cargo run -m pip install requests
Code organization
- parser: python lexing, parsing and ast
- vm: python virtual machine
- src: using the other subcrates to bring rustpython to life.
The files in the top level directory are from windelbouwman/rspython which contains an implementation of the parser and vm in src/
An alternative implementation of python virtual machine that are compatible with CPython parser are from shinglyu/RustPython and is located in the VM/ folder.
We are in the process of merging the two implementation to form a single implementation.
Community
Chat with us on gitter.
Credit
The initial work was based on windelbouwman/rspython and shinglyu/RustPython
Languages
Rust
88.3%
Python
11%
JavaScript
0.3%
NSIS
0.2%