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!
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
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
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:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }