Name: Anonymous 2011-11-04 17:46
I made a brainfuck compiler in C however currently it is all hard coded. for example here is an if/else condition
Instead of this I want to read a file in a similar syntax to C and convert it to brainfuck by replacing syntax with those functions. what is the easiest way?
ifElse_if( r, zero, EQ);
addTo(j, z);
ifElse_else();
addTo(i, z);
ifElse_end();Instead of this I want to read a file in a similar syntax to C and convert it to brainfuck by replacing syntax with those functions. what is the easiest way?