Brainfuck is a well known esoteric programming language created by Urban Müller which operates on a tape (an array of memory cells). A pointer dictates which cell on the tape a command reads or writes [bf]. Different brainfuck implementations handle characters that are not commands differently. The ESOSC defines a normal form for brainfuck programs which all standard conform implementations shall accept.
Normalized Brainfuck (NBF) defines a strict grammar to ease development of brainfuck implementations. NBF programs contain no whitespaces or comments and thus may only contain valid commands.
Shown below in figure FNF is the grammar of the normal form (NF). If a brainfuck program conforms to this grammar it is NBF conform.
A brainfuck implementation must be able to accept brainfuck programs in normal form. Optionally it may issue a warning if it is confronted with an unnormalized brainfuck program or even reject such unnormalized brainfuck programs.
- bf: http://de4.aminet.net/dev/lang/brainfuck-2.readme