Execute Brain****/C: Difference between revisions

Content added Content deleted
(adding another example since the existing one doesn't support nested loops, probably a bug)
(Add some tags)
Line 1: Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}
==Version 1==
Simple BF engine with infinite tape support.
Simple BF engine with infinite tape support.
<lang c>#include <stdio.h>
<lang c>#include <stdio.h>
Line 50: Line 52:
The code can be fed from a file or anything else. Here it's entered directly (it reverses a string you type).
The code can be fed from a file or anything else. Here it's entered directly (it reverses a string you type).


==Version 2==
{{incorrect}}
The below Hello World fails.
<pre>
>++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
>+++++++.<<<[[-]<[-]>]<+++++++++++++++.>>.+++.------.--------.>>+.>++++.
</pre>
<lang c>#include <stdio.h>
<lang c>#include <stdio.h>
#include <string.h>
#include <string.h>