Category:Brainf***: Difference between revisions

Fixed code tags
m (Eso link)
(Fixed code tags)
Line 7:
!align="left" |Meaning
|-
|style="text-align:center"|<codett>></codett>
||increment the pointer (to point to the next cell to the right).
|-
|style="text-align:center"|<codett><</codett>
||decrement the pointer (to point to the next cell to the left).
|-
|style="text-align:center"|<codett>+</codett>
||increment (increase by one) the byte at the pointer.
|-
|style="text-align:center"|<codett>-</codett>
||decrement (decrease by one) the byte at the pointer.
|-
|style="text-align:center"|<codett>.</codett>
||output the value of the byte at the pointer.
|-
|style="text-align:center"|<codett>,</codett>
||accept one byte of input, storing its value in the byte at the pointer.
|-
|style="text-align:center"|<codett>[</codett>
||jump forward to the command after the corresponding <codett>]</codett> if the byte at the pointer is zero.
|-
|style="text-align:center"|<codett>]</codett>
||jump back to the command after the corresponding <codett>[</codett> if the byte at the pointer is nonzero.
|}
 
Alternatively, the <codett>]</codett> command may instead be translated as an unconditional jump '''to''' the corresponding <codett>[</codett> command, or vice versa; programs will behave the same but will run more slowly.
 
All other symbols, including traditional whitespace characters, are interpreted as comments.
Anonymous user