1

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.....

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by vijayan121
0

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",
<url: http://www.amazon.com/exec/obidos/tg/detail/-/0201100886/002-2510887-2360043?v=glance>
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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.