https://github.com/tsoding/c.php
C to Python compiler in PHP
https://github.com/tsoding/c.php
Last synced: 8 months ago
JSON representation
C to Python compiler in PHP
- Host: GitHub
- URL: https://github.com/tsoding/c.php
- Owner: tsoding
- License: mit
- Created: 2023-04-01T19:27:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T22:04:37.000Z (over 2 years ago)
- Last Synced: 2025-04-29T12:18:39.424Z (8 months ago)
- Language: PHP
- Size: 123 KB
- Stars: 295
- Watchers: 6
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Optimizing C to Python compiler in PHP
This is an April Fools joke. Please don't take it seriously. It only supports a very small subset of C. Literally return and function call. We even made printf an intrinsic. Please don't use it in production.
## Quick Start
```console
$ php c.php hello.c > hello.py
$ python ./hello.py
```
## Screencast
[](https://www.youtube.com/watch?v=Yi6NxMxCFY8)