Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
/ py-compiler Public archive

A python compiler that compiles python to V binaries

License

Notifications You must be signed in to change notification settings

Ccode-archives/py-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-compiler (out of date)

A python compiler that compiles python to V binaries using py2v and the Vlang compiler.

To install

git clone https://github.com/Ccode-lang/py-compiler
cd py-compiler
chmod +x bootstrap
./bootstrap

Ignore the build warnings.

To run

./comp <python scripts name> <bianary name>.v

info

Python compiler uses a transpiler to change python code into v code. If it returns that it skiped something because it wasn't supported or the v code won't compile report it to me.

If maintainers ask for the outputed v file run

cp <yourfile.py> py2v
cd py2v
./py2v <yourfile.py> code.v

with <yourfile.py> as the name of the python file. The contents of code.v are the output code.
Please reinstall python compiler after this process.

errors

If you get an error that looks like error: Failed to convert Python ast to json go to /tmp and delete the file that has a name like py2v_230086679.json. Usually that fixes the problem, otherwise report it and send me your python code.

Contributions

PR's and issues accepted!

About

A python compiler that compiles python to V binaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages