Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building a Compiler ?
#4
(02-21-2012, 07:45 AM)AceInfinity Wrote: A compiler basically in sum turns langauge syntax into something recognizable by the machine (machine code). If you can understand how to make that conversion.

I have been following an ebook and so far Iam only in the introductory part , like I know basically a Compiler is a two pass , Front End and Back End , Front End basically deals first with the source code as it has two parts Scanner and Parser . Scanner takes the source code and generates tokens which are basically in pairs , like <id,x> where x is an identifier id(token type) and x is said as a word . Parser take this token and converts it into an IR [Intermediate Representation] which basically checks the Context Grammer , that is the particular code belongs to the language or not , than there is a Back End which basically converts this into an assembly code ??

Huff revision done Big Grin hope Iam going the right way ? reply would be helpful
(02-21-2012, 07:27 AM)Load Wrote: It's definitely possible. Learning about a coding language is never a waste of time, whatever it is or whatever you're goals are, you'll pick up things along the way that will help you in later projects. Keep up the good work.

Thank you so much for boosting me up Smile Ebook which Iam following says that after studying this you can make your own compiler for language which is a subset of Java , which one that is , Javascript ?
Reply


Messages In This Thread
Building a Compiler ? - by prince76 - 02-21-2012, 07:04 AM
RE: Building a Compiler ? - by Load - 02-21-2012, 07:27 AM
RE: Building a Compiler ? - by AceInfinity - 02-21-2012, 07:45 AM
RE: Building a Compiler ? - by prince76 - 02-21-2012, 08:01 AM
RE: Building a Compiler ? - by AceInfinity - 02-21-2012, 08:03 AM
RE: Building a Compiler ? - by prince76 - 02-21-2012, 08:04 AM
RE: Building a Compiler ? - by AceInfinity - 02-21-2012, 08:08 AM
RE: Building a Compiler ? - by prince76 - 02-21-2012, 08:23 AM
RE: Building a Compiler ? - by AceInfinity - 02-21-2012, 08:26 AM
RE: Building a Compiler ? - by prince76 - 02-21-2012, 08:34 AM
RE: Building a Compiler ? - by AceInfinity - 02-21-2012, 09:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code Block compiler: "No compiler found" Fix Inventor 7 3,601 09-04-2011, 06:12 AM
Last Post: Orgy
  Need a new compiler Richard Runz 2 940 08-07-2011, 11:17 AM
Last Post: [Dr.House]
  C++ Compiler Impuhlsive 2 1,312 05-09-2011, 06:24 AM
Last Post: cfillion
  c++ free compiler? Marda 17 4,566 10-29-2010, 02:46 PM
Last Post: Xzotic
  Problem when Building. Visual C++ bryden1122 18 2,274 01-18-2010, 10:37 PM
Last Post: Equinøx

Forum Jump:


Users browsing this thread: 1 Guest(s)