Skip to content

yyny/Brainfuck-In-Batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck Interpreter In Batch

Its a brainfuck interpreter in batch! :D

You can learn more about brainfuck here.

Brainfuck has been proven to be turing complete (In fact, it was created to be turing complete and to run on the smallest interpreter), meaning batch is turing complete too!

Execute it!

Executing is easy:

$ interpreter < examples/hello.bf > CON

Alternatively, you can input your own program into stdin followed by a empty line and a CTRL + Z keypress to input a EOF character and start the program:

$ interpreter
,.,.,.,.,.,.!Hello!
^Z

IMPORTANT

The input file must have CRLF line endings or the program will loop forever.

It is also recommended to minify the code before passing it to the interpreter, as some characters like the quotation mark might prove to be problematic.

About

Its brainfuck in batch!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published