Could anyone tell me how to write a compiler. If possible could anyone give me a link to writing a compiler preferably in c/c++. I decided i wanted to write a compiler just for the heck of it thanks if u can help!
This is a discussion on How do i write a compiler within the C++ Programming forums, part of the General Programming Boards category; Could anyone tell me how to write a compiler. If possible could anyone give me a link to writing a ...
Could anyone tell me how to write a compiler. If possible could anyone give me a link to writing a compiler preferably in c/c++. I decided i wanted to write a compiler just for the heck of it thanks if u can help!
its not just im gonnna make a compiler. most people have a phd in computers. searhc google if you really wan t make one. i saw a ten poage tutorial there once. i donwlaoded it but ive lost it
Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com
-the shroom has spoken
Making a compiler isn't truly that hard. But I also don't know what sort of compiler you are making. Compiling assembly code into an exe is really straight forward. C/C++, Pascal, Fortran (and all the others) is a little more challenging because the compiler is expected to generate the assembly code. JAVA, J#, and C# and all those languages shouldn't be too hard to compile.
i found my tutorial onmy computer for writng a compiler, i cant attach it to th baord cause fo its size, e-mail me or aim me and ill send it to u
Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com
-the shroom has spoken
You can find some tools to write a compiler or to construct your own language here:
www.thefreecountry.com/developercity
Trivial, huh?Making a compiler isn't truly that hard.![]()
Code:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}