Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

making a compiler

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

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?

Name: Anonymous 2011-11-04 18:22

what is the easiest way?
am i getting this right? you want to compile some kind of c dialect to brainfuck? well...

http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-35.html#%_sec_5.5

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List