Update
This commit is contained in:
parent
7a4c69819f
commit
94c2c620d2
8 changed files with 43 additions and 14 deletions
|
@ -10,6 +10,8 @@ Brainfuck has seen tremendous success in the [esolang](esolang.md) community as
|
|||
|
||||
In [LRS](lrs.md) programs brainfuck may be seriously used as a super simple [scripting language](script.md).
|
||||
|
||||
Brainfuck can be trivially translated to [comun](comun.md) like this: remove all comments from brainfuck program, then replace `+`, `-`, `>`, `<`, `.`, `,`, `[` and `]` with `++ ` , `-- `, `$>0 `, `$<0 `, `->' `, `$<0 <- `, `@' ` and `. `, respectively, and prepend `$>0 `.
|
||||
|
||||
## Specification
|
||||
|
||||
The "vanilla" brainfuck operates as follows:
|
||||
|
@ -87,6 +89,8 @@ int main(void)
|
|||
|
||||
```
|
||||
|
||||
TODO: comun implementation
|
||||
|
||||
## Programs
|
||||
|
||||
Here are some simple programs in brainfuck.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue