Thread overview
Compiler writing
Oct 03, 2005
Paul
Oct 03, 2005
Walter Bright
Nov 19, 2007
ryan
October 03, 2005
Can anyone point me to some good resources for writing compilers in C++? I've looked on Google etc but can't find the sort of thing I'm after. I've sort of blagged my way through turning expressions into trees and generating virtual machine code and so on but could really do with some more input. Don't really understand all the LR jargon and stuff and am perfectly happy scanning without using all these clever lex sort of things. Any links very much appreciated.


October 03, 2005
"Paul" <Paul_member@pathlink.com> wrote in message news:dhrfjn$25pj$1@digitaldaemon.com...
> Can anyone point me to some good resources for writing compilers in C++?
I've
> looked on Google etc but can't find the sort of thing I'm after. I've sort
of
> blagged my way through turning expressions into trees and generating
virtual
> machine code and so on but could really do with some more input. Don't
really
> understand all the LR jargon and stuff and am perfectly happy scanning
without
> using all these clever lex sort of things. Any links very much
appreciated.

You could download the D programming language package, which includes the complete front end of the D compiler written in C++.

www.digitalmars.com/d/


November 19, 2007
Ronald Mak wrote a book called "Writing Compilers and Interpreters: An Applied Approach Using C++".  Should be helpful.