Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 669 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 669 Bytes

c4py : a Python port of c4 - C in four functions

A tiny C compiler and virtual machine, a Python language port of 'c4 - C in four functions', capable of enabling self-compilation.

> python c4py.py hello.c
> python c4py.py -s hello.c
> python c4py.py -d hello.c

> python c4py.py c4.c hello.c
> python c4py.py c4.c -s hello.c
> python c4py.py c4.c -d hello.c

> python c4py.py c4.c c4.c hello.c

> python c4py.py tests/brainf.c "`cat tests/hello.bf`" 30000
> python c4py.py tests/brainf.c "`cat tests/prime.bf`" 30000
Primes up to: 15

c4.c - C in four functions
https://github.com/rswier/c4