Skip to content

lukakostic/Brainfuck-To-C-To-Exe-With-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck-To-C-To-Exe-With-Python

Used python to make a brainfuck to C compiler, then used TCC to compile to exe, all automatically

TCC = Tiny C Compiler

Version with digital mars compiler instead of tcc: https://github.com/lukakostic/Brainfuck-To-C-To-Exe-With-Python2

Start Compile.py, then check the Generated folder, should have a .c and a .exe

Starts the compiled exe automatically

bf.txt is where brainfuck goes. Ignores unknown letters so you can comment.

Syntax:

+ add to current cell
- subtract from current cell
> next cell
< previous cell
. print cell value as ascii
, read cell value as ascii
[ loop inside while cell the loop started at > 0
] close loop bracket

All code is very simple and commented, you could easily add more commands!

bf

About

Used python to make a brainfuck to C compiler, then used TCC to compile to exe, all automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published