ryna4c2e / sed-brainfuck

a braifuck interpreter written in sed
MIT License
0 stars 0 forks source link

This Hello World fails to run #1

Closed rdebath closed 6 years ago

rdebath commented 6 years ago

It just hangs...

>++++++++[-<+++++++++>]<.>[][<-]>+>-[+]++>++>+++[>[->+++<<+++>]<<]>-----.
>->+++..+++.>-.<<+[>[+>+]>>]<--------------.>>.+++.------.--------.>+.>+.

But this "brainfuck" printer does finish, with the wrong output.

++++++[>++++<-]>[>[+++++>][>]-[<][[]]>-]
>>>>-.<<<.>>>-.<+.<+.>---.<<+++.>>---.<---.
ryna4c2e commented 6 years ago

I fixed the decrement operator, which did nothing on fucking zeros! Now your codes run correctly. Thanks.