Brainfuck is a esoteric programming language, use 8 commands (yes, 8) and is easy to learn. What is difficult is to schedule things gerous.
The language is based on a simple execution model that is in addition to the program, a array of 30,000 bytes initialized to zero, a pointer to this array (which at the beginning of the execution points to the first element of the same ) and two streams of bytes, for the entry and exit.
There are only eight instructions, and all are of a character.
| Character Meaning | |
|---|---|
> Increases | pointer. |
< | Decrement pointer. |
| + byte Increases targeted. |
- | Decrement byte pointed. |
. Enter | byte pointed in the output current. |
, | takes as value of the byte currently pointed to that provided by the input current. |
[ | Advances to the statement immediately after ] accordingly when the byte currently pointed to null. |
] | Jumps to the instruction immediately following the [ accordingly when the byte currently pointed to is not null. |
is a simple machine, I'm making an implementation with logic gates, RAM chips and other things.
As a gift, I leave a program that writes 'electro-flashproy'. Test it in the online parser: Parser Brainfuck found
+++++[>++++++++++++++++++++ <-]> +.+++++ ++.-------.--.+++++++++++++++++.--.---.
>>>+++++[>+++++++++ <-]> . <<<<---------.++++++.-----------.++++++++++++++++++.-----------.
++++++++.++.---.++++++++++.
0 comments:
Post a Comment