(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 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 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 ?