Hallo Matthias
sieht ja schon mal gut aus
Habe noch nicht allzuviel damit gespielt, deshalbt eine Frage: gehen auch verschachtelte Klammern?
Und unter
http://en.allexperts.com/e/b/br/brainfuck.htm habe ich noch was gelesen:
demnach sollten das Array üblicherweise 8-bit-Werte enthalten, keine 16 bittigen (damit's auch kompatibel zu den existierenden Programmen ist

)
--------------------------------------------------------------------
Cell sizeIn the classic distribution, the cells are 8-bit bytes, and this is still the most common size. However, to read non-textual data, a brainfuck program may need to distinguish an end-of-file condition from any possible byte value; thus 16-bit cells have also been used. Some implementations have used 32-bit cells, 64-bit cells, or bignum cells with practically unlimited range, but programs that use this extra range are likely to be slow, since storing or using cell values generally takes time proportional to the values stored or used.
In all these variants, the , and . commands still read and write data in bytes. In most of them, the cells wrap around, i.e. incrementing a cell which holds its maximal value (with the + command) will bring it to its minimal value and vice versa. The exceptions are implementations which are distant from the underlying hardware, implementations that use bignums, and implementations that try to enforce portability.
Fortunately, it is usually easy to write brainfuck programs that do not ever cause integer wraparound or overflow. Such programs thus do not depend heavily on cell size. Generally this means avoiding increment of +255 (unsigned char wraparound); or avoiding the overstepping the boundaries of [-128, +127] inclusive (signed char wraparound). For more details on integer wraparound, see the Integer overflow article.
----------------------------------
Siggi