https://github.com/purplemyst/epython
EPython is be a toy CPython bytecode interpreter written in Elixir.
https://github.com/purplemyst/epython
bytecode cpython elixir interpreters python
Last synced: 4 months ago
JSON representation
EPython is be a toy CPython bytecode interpreter written in Elixir.
- Host: GitHub
- URL: https://github.com/purplemyst/epython
- Owner: PurpleMyst
- License: gpl-3.0
- Created: 2018-02-13T14:35:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-20T03:04:00.000Z (almost 8 years ago)
- Last Synced: 2025-01-01T09:02:57.686Z (about 1 year ago)
- Topics: bytecode, cpython, elixir, interpreters, python
- Language: Elixir
- Homepage:
- Size: 95.7 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EPython
EPython is be a toy CPython bytecode interpreter written in Elixir.
## Compiliation
To utilize EPython, you will need the Erlang VM and `mix`. This README assumes
you're utilizing an unix-like operating system, such as Linux or OSX, due to
this being not tested on Windows at all.
You can install everything by following the instructions on [the official
Elixir website](https://elixir-lang.org/install.html).
Then, to compile, you can type this into your shell:
```bash
$ MIX_ENV=prod mix escript.build
```
This will generate an `epython` executable in the main project directory which
you can pass python files to (**actual python files**, not just bytecode files) as a command-line argument.
## Running tests
You can run a variety of tests for the interpreter itself by running `./run_tests.py`.