Execute Brain****: Difference between revisions

OOO pretty
(generalize a bit)
(OOO pretty)
Line 3:
 
An implementation need only properly implement the following instructions:
{| class="wikitable"
* [     (left bracket)
!Command
* ]     (right bracket)
!Description
* +     (plus sign)
|-
* -     (minus sign)
| style="text-align:center"| <code>&gt;</code> || Move the pointer to the right
* &lt; &nbsp; &nbsp; (less than sign)
|-
* &gt; &nbsp; &nbsp; (greater than sign)
| style="text-align:center"| <code>&lt;</code> || Move the pointer to the left
* , &nbsp; &nbsp; (comma)
|-
* . &nbsp; &nbsp; (period)
| style="text-align:center"| <code>+</code> || Increment the memory cell under the pointer
|-
| style="text-align:center"| <code>-</code> || Decrement the memory cell under the pointer
|-
| style="text-align:center"| <code>.</code> || Output the character signified by the cell at the pointer
|-
| style="text-align:center"| <code>,</code> || Input a character and store it in the cell at the pointer
|-
| style="text-align:center"| <code>[</code> || Jump past the matching <code>]</code> if the cell under the pointer is 0
|-
| style="text-align:center"| <code>]</code> || Jump back to the matching <code>[</code> if the cell under the pointer is nonzero
|}
Any cell size is allowed, EOF support is optional, as is whether you have bounded or unbounded memory.
<br>
Anonymous user