Jump to content
  • Advertisement
Sign in to follow this  
billmason

Compiler Creation

This topic is 3992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to build a compiler in C++. I have sort of created a parser, but don't know what to do. Please help me and point me to places where this has been done. I think I know what I am getting myself into, so I am okay with taking a long time.

Share this post


Link to post
Share on other sites
Advertisement
The famous, "Lets build a compiler" series by Jack Crenshaw.

http://compilers.iecc.com/crenshaw/

Its a quick and practical guide to building a compiler. Not overly done with theory. Which helped me ease into things I think.

Share this post


Link to post
Share on other sites
I would think that if you have to ask that question, you aren't ready to make a compiler. A compiler is probably one of the most difficult software projects to undertake, next to an MMOG and an operating system.

Share this post


Link to post
Share on other sites
Quote:
Original post by Mike.Popoloski
I would think that if you have to ask that question, you aren't ready to make a compiler. A compiler is probably one of the most difficult software projects to undertake, next to an MMOG and an operating system.

Yeah I have a book on how to make your own compiler in vb.net and that was complicated enough.

Share this post


Link to post
Share on other sites
Quote:
Original post by billmason
Is C++ an okay language for compiler design or is there a better alternative?


It's 'okay'. I tend to favor O'Caml as a compiler development language, mostly because this is what it was created for in the first place (and it's pretty darn good at it, too).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!