Writting Compilers and Interpreters
I am currently interested in creating my own programming or scripting language, but I am unaware of any resources that would allow me how to learn this skill. Does anyone know of any step by step tutorial that will teach me how to do these things from scratch? I don't mind using the STL but I don't want to use such things as prewritten lexical analyzers(whatever that is). I'd muich rather write it myself.
Re: Writting Compilers and Interpreters
The single best resource to learn everything you need is the so-called Dragon Book (Principles of Compiler Design). A new edition should come out on August 31th (Purple Dragon Book), so you may want to wait for this one. The older one is still great though and contains everything you need to know to start writing compilers and interpreters. It's published by Addison Wesley with ISBN 0-201-00022-9.
Re: Writting Compilers and Interpreters
Thanks, but are there any free online resources?
Re: Writting Compilers and Interpreters
Quote:
Originally Posted by Guidosoft
Thanks, but are there any free online resources?
http://www.bloodshed.net/compilers/#tutorials
I would still suggest getting the book that Yves mentioned (the Dragon Book).
Regards,
Paul McKenzie