Zomis / Brainduck

Brainfuck Interpreter in Java/Groovy, with a Groovy DSL
40 stars 1 forks source link

Repeated commands #11

Open acostarelli opened 8 years ago

acostarelli commented 8 years ago

Sometimes, in BF, a single command, or a pattern of commands may be repeated quite a number of times. It would be nice to have some sort of easier way to write repeated commands.

Perhaps it could look something like this:

(++>)*100

Which would execute ++> 100 times.

I got the idea from this PPCG post.

Zomis commented 8 years ago

This is a quite common feature in many Brainfuck interpreters, so yeah this could be useful to support.