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

Pages: 1-

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:00

>>1
>I made a brainfuck compiler in C
You and ten million others.

Name: Anonymous 2011-11-04 18:01

>>2
never said I am the only one

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

Name: Anonymous 2011-11-04 18:47

>>4
you fail for using LITHP, sorry bro

Name: Anonymous 2011-11-04 21:28

>>4
lisp is shit

Name: Anonymous 2011-11-04 21:41

>>5,6
Same person

Name: Anonymous 2011-11-04 22:11

>>5,6
samefag, meet
>>7
newfag.

Name: Anonymous 2011-11-04 22:43

If it ain't shit, it's crap.

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