Skip to content

forthlee/c4py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published