This commit is contained in:
Miloslav Ciz 2023-05-21 21:55:06 +02:00
parent 7a4c69819f
commit 94c2c620d2
8 changed files with 43 additions and 14 deletions

View file

@ -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.