Category:Brainf***: Difference between revisions

m
Added info about the construct for the language
(bnf param)
m (Added info about the construct for the language)
Line 1:
{{language|Brainf***|bnf=http://ninh.nl/blog/2008/10/25/brainfck-birds-of-a-feather-session-take-2/}}Also known as '''Brainfuck'''. Created by Urban Müller in 1993 in an attempt to create the world's smallest Turing-complete compiler. It is noted as an [[:Category:Esoteric_Languages|esoteric programming language]], as it is not ordinarily used for applications development, but it also noted as being a minimalist language.
 
The construct for the language is similar to a [[wp:Turing Machine|Turing Machine]]. The commands themselves act on an array or "tape" (usually a byte or integer array and usually "infinite" on one or both ends) and a pointer to a position in that array. The complete specification for the language can be summed up with the following eight symbols:
 
{| class="wikitable"
Line 20:
|-
|style="text-align:center"|<tt>.</tt>
||output the value of the byte at the pointer (usually interpreted to a character).
|-
|style="text-align:center"|<tt>,</tt>
||accept one byte of input (usually interpreted from a character), storing its value in the byte at the pointer.
|-
|style="text-align:center"|<tt>[</tt>
Anonymous user