Category:Extended BrainF***: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "'''Extended BrainF***''' is an extension of BrainF***, that aims to make it easier to use. E.g.: * <tt>@</tt> : Ends the program, can be used as a separator between code ...")
 
m (typo)
Line 2: Line 2:
that aims to make it easier to use.
that aims to make it easier to use.


There are several more opcodes, e.g.:
E.g.:
* <tt>@</tt> : Ends the program, can be used as a separator between code and data.
* <tt>@</tt> : Ends the program, can be used as a separator between code and data.



With data already in place, most BF-programs get much shorter,
With data already in place, most BF-programs get much shorter, <br>
e.g. standard BF need a lot of work to setup the ASCII-codes:
e.g. a "Hello World"-program in standard BF needs to do a lot of work <br>
<lang bf>
to setup the ASCII-codes of the text:
++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++
<lang bf>++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++
++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>>
++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>>
>+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++.
>+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++.
<+++++++.--------.<<<<<+.<+++.---.
<+++++++.--------.<<<<<+.<+++.---.</lang>
</lang>


Extended BF just needs a short loop for output:
Extended BF just needs a short loop for output:
<lang bf>
<lang bf>[.>]@Hello World!</lang>
[.>]@Hello World!
</lang>




See:
;See:
* http://esolangs.org/wiki/Extended_Brainfuck
* http://esolangs.org/wiki/Extended_Brainfuck

Revision as of 15:41, 21 November 2014

Extended BrainF*** is an extension of BrainF***, that aims to make it easier to use.

There are several more opcodes, e.g.:

  • @ : Ends the program, can be used as a separator between code and data.


With data already in place, most BF-programs get much shorter,
e.g. a "Hello World"-program in standard BF needs to do a lot of work
to setup the ASCII-codes of the text: <lang bf>++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++ ++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>> >+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++. <+++++++.--------.<<<<<+.<+++.---.</lang>

Extended BF just needs a short loop for output: <lang bf>[.>]@Hello World!</lang>


See

Pages in category "Extended BrainF***"

The following 2 pages are in this category, out of 2 total.