You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erik Zscheile 933c14e80c +support 'loop while indirected' 7 months ago
src +support 'loop while indirected' 7 months ago
.gitignore initial commit 7 months ago
Cargo.lock initial commit 7 months ago
Cargo.toml initial commit 7 months ago
README.md get rid of exposed indos; use relative addressing 7 months ago
rstc.bfd +support 'loop while indirected' 7 months ago
test.bfd get rid of exposed indos; use relative addressing 7 months ago

README.md

befinde

Brainfuck with pointer indirection. It uses relative addressing because otherwise, the higher parts of the tape would be unreachable once indirection is used.

BF translation (maybe)

BF      befinde
[       *[&
]       *]&
.       *.&
,       *,&
>       >
<       <
+       *>&
-       *<&

I'm not completely sure if this translation is correct, because indirection with relative addressing complicates things. The translation doesn't account for side effects (like modifying a cell which is dereferenced).

*& is a NOP. &* is a NOP most of the time, except when the & would trigger a panic because it would decrease the indirection to -1.