
var parsec = require( '..' );

var instruction;

instruction = parsec.choice(
    parsec.char( '>' ),
    parsec.char( '<' ),
    parsec.char( '+' ),
    parsec.char( '-' ),
    parsec.char( '.' ),
    parsec.char( ',' ),
    parsec.between(
        parsec.char( '[' ), parsec.char( ']' ),
        parsec.many( function()
        {
            return instruction.apply( this, arguments );
        } )
    )
);

var bf = parsec.many( instruction );

console.log( parsec.run( bf, '+--.>++[-<]' ) );

@@ -40,16 +40,98 @@
 truction
+, bf,%0A    HELLO = '++++++++++%5B%3E+++++++%3E++++++++++%3E+++%3E+%3C%3C%3C%3C-%5D%3E++.%3E+.+++++++..+++.'
 ;%0A%0Ainstr
@@ -487,20 +487,16 @@
   )%0A);%0A%0A
-var 
 bf = par
@@ -554,21 +554,13 @@
 bf, 
-'+--.%3E++%5B-%3C%5D'
+HELLO
  ) )

Update the Brainfuck example.