Skip to content

kciter/brainfuck-impl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck implementations

Brainfuck implementations in each other in different languages.

What is brainfuck?

Brainfuck is an esoteric programming language.

Command

The eight language commands each consist of a single character:

Command Meaning
> Increment the data pointer.
< Decrement the data pointer.
+ Increment the byte at the data pointer.
- Decrement the byte at the data pointer.
. Output the byte at the data pointer.
, Accept one byte of input, storing its value in the byte at the data pointer.
[ If the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching ] command.
] If the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching [ command.

Sample code

Hello, World!

++++++++++
[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++++++++++++++.------------.<<+++++++++++++++.>.+++.------.--------.>+.

And more

Languages

License

MIT License.

About

Brainfuck implementations each other in different languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published