Tuesday, July 28, 2009

Where do i start to make a compiler?

im really hoping to make my own compiler but i dont know where to start.iv got visual c++ 6,visual basic 6,iv got vb.net 2005 express,vc.net 2005 express,vj#.net 2005 express.





now i dont know where to start what to use and what to type now can ya help me plz.i only know a lil vb.net 2005 express. and a very tiny bit of vb 6.now what do i do.plz any body help me.

Where do i start to make a compiler?
To build a compiler you need to design a syntax and semantic checker, and then a code generator. It is a very complex topic and cannnot be described in this forum. You may want to check ANTLR, which is a free utility that alllows you to generate parsers for specific languages by providing the BNF grammar of the language.
Reply:buy and read the book named "compiler desogn" by william stallings . you will learn by yourself
Reply:Building a compiler in any kind of VB is going to be a challenge... you'd be better off using a lower level language, like C or Assembler. Apart from anything else, VB is going to be very slow by comparison.





This link should provide plenty of reading material: http://www.google.co.uk/search?hl=en%26amp;q=c...





Rawlyn.
Reply:Making a compiler is pretty hard; I don't want to kill your dream, but as long as you can't formulate more specific questions on this topic, my guess is that you know so little at this point, that it's going to take you months if not years to acquire the skills to develop one.





First, you'll have to learn THOROUGHLY how to program in a language (know 'a lil' or 'a very tiny bit' isn't going to cut it). After that, you'll have to learn about parsing techniques and a lot of other compiler-related technologies.





You might want to try to start off writing an interpreter; that's a lot easier. The book in my source list may help you do that --and move on to compilers at a later stage. The book is one of the easier ones on the topic.


No comments:

Post a Comment