Log in

View Full Version : [iseng] Brainf*ck Programming Language


Braincode
11th November 2011, 03:03 PM
Habis googling bentar ketemu ama bahasa pemrograman yang bikin :tanya: ama :hammer: gan.

Nama bahasanya brainfuck programming language


Code:

http://en.wikipedia.org/wiki/Brainfuck

http://imgur.com/eyInj.png

compiler untuk win32


Code:

http://4mhz.de/bfdev.html

syntaxnya cuma delapan gan :hammer:


Spoiler for syntax:








The eight language commands, each consisting of a single character, are the following:

Character Meaning

> increment the data pointer (to point to the next cell to the right).

< decrement the data pointer (to point to the next cell to the left).

+ increment (increase by one) the byte at the data pointer.

- decrement (decrease by one) the byte at the data pointer.

. output the value of 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*.]











ini cuma iseng2 aja gan mau share ke agan2 semua :melon:

ane udah liat contoh2nya yang jelas jangan dibuat serius :ceriwislove:

</div>