Answer» How would I go about CREATING my own language/compiler?What do you know so far?
www.google.com "compiler" I know concepts involved, but not the actual coding. What would be a GOOD language to write the compiler with?C+ or C++ok, now an interpreter would be easier, a compiler has to COMPILE a set of instructions and then run them, as opposed to executing one statement as it comes to it, how do I GET the compiler to generate an exe, the binary CODE?You guys need to get a book, or take a web based tutorial or something!
Convert your parsed language into machine code. (Or if you want to do it the easy way, convert it into an assembly syntax and assemble it with your favorite assembler)
Of course theres more to it than that but that's a rough sketch and most likely the most explination I think you will get.Thanks
|