"
THE LANGUAGE
============
The language 'brainfuck' knows the following commands:
Cmd Effect Equivalent in C
--- ------ ---------------
+ Increases element under pointer array[p]++;
- Decrases element under pointer array[p]--;
> Increases pointer p++;
< Decreases pointer p--;
[ Starts loop, counter under pointer while(array[p]) {
] Indicates end of loop }
. Outputs ASCII code under pointer putchar(array[p]);
, Reads char and stores ASCII under ptr array[p]=getchar();
"
-Urban Mueller
THE EXTENDED BRAIN FUNC LANGUAGE (exbf)
================================
Syntax:
Cmd Effect Equivalent in C
--- ------ ---------------
+ Increases cell under pointer (*dp)++;
- Decreases cell under pointer (*dp)--;
> Increases pointer dp++;
< Decreases pointer dp--;
-----modifed
[ Starts a forward loop,
if cell under pointer is 0,
seek forward to nested ]
else exec next cells while( *dp ) { }
] Starts a backward loop,
if cell under pointer is not 0,
seek backward to nested [
else exec next cells do { } while( *dp )
. Outputs byte code under pointer write (1,dp,1);
, Reads byte and stores under ptr read (0,dp,1);
-----extensions
: Skips forward until reach a nested ; * like C slash star start comment
(borrow from forth)
; Skips forward to next position * like C star slash stop comment
(borrow from forth)
( Mark position to go * mark nth '(' --- NOT C
) Skips backward to the nth '=' * goto nth '=' --- NOT C
= Skips forward to the nth '(' * goto nth '(' --- NOT C
\0 end of tape * end program --- NOT C
& reserved symbol for future use
@ reserved symbol for future use
All other symbols are dummy.
Li(nux)sense ?
Copyright (c) 2003 Alvaro Gomes Sobral Barcellos
All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
Sorry, no more information here for now.
go to exbf.sourceforge.net
go to goggle and search for 'brain fuck'