Skip to content
/ pytcc Public

Python wrapper for the Tiny C Compiler library

License

Notifications You must be signed in to change notification settings

thgcode/pytcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTCC

Introduction

PyTCC is a Python wrapper for the tiny C compiler library. The project consists of two APIs: the pythonic API (pytcc.TCC) wich contains a more pythonic API for TCC and the native API (pytcc.libtcc) wich contains the raw ctypes prototypes that communicate with C.

Installation

Just do:

$ python setup.py install

Quick start

import pytcc
tcc = pytcc.TCC()
tcc.add_library_path("./")
tcc.compile_string("""
    int main(int argc, char **argv)
        {
        printf("Hello world");
        return 0;
    }
""")
tcc.run()

Documentation

At the present time, the only documentation are the tests. However, when I complete the pythonic API,

I will document the module.

Contributing

Contributions are very appreciated, especially in the documentation section. To contribute, just create an issue or send a pull request on GitHub and I wil check it.

About

Python wrapper for the Tiny C Compiler library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published