http://qs321.pair.com?node_id=193942


in reply to Re: Re: Inline::Brainfuck
in thread Inline::Brainfck

Nested Brainf*ck loops can be used like this:

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

Which in this case is only a fancy way of writting

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

Both of these should print "BF".

On a closer look at your code I think nested loops are indeed supported however I am having trouble with installing Filter::Simple so I cannot check.

Regarding comments and ` operator: to my understanding anything that is not a Brainf*ck operator (that is not in the []-+,.<> set) is automatically treated as a comment and is silently ignored (this lets you have Brainf*ck code span a couple lines rather than being on one long line). Of course the philosophy should say that Brainf*ck code should not be commented at all because if it was difficult to write it must be difficult to read ;)