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

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.