Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

shinglyu/RustPython

Repository files navigation

RustPython

A Python interpreter written in Rust

Installation

pip install byteplay

Run

Given a python file test.py

python compile_code.py test.py > test.bytecode

cd RustPython
cargo run ../test.bytecode 

TODOs

  • Native types => Partial
  • Control flow => if(v)
  • assert => OK
  • Structural types (list, tuple, object)
  • Strings
  • Function calls => Blocked by bytecode serializer
  • Modules import
  • Generators

Goals

  • Support all builtin functions
  • Runs the pybenchmark benchmark test
  • Run famous/popular python modules (which?)
  • Compatible with CPython 2.7

About

A Python interpreter written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors