Hi, im new here, and i want to ask about "how to make a compiler". I'm a Computer Science and part of my subject wants me to create a compiler, and I had no idea of how to create one. Can anyone help me.....
This question really has a very complex answer:-
1) First of all you req very good knowledge of 'lexical' 'analysis',
'parsing', 'grammar', etc.
And there is no use of writing C++ compiler in c++. You should learn some low level language.
Many universities offer courses where you get to create a compiler.
The "Dragon book",
is a good place to start for learning about writing compilers.
For learning C++, on the other hand, it very much depends on what you already
know. If you are proficient in some other programming language then the
recommended book is "Accelerated C++" by Koenig.