|compiler desinging email@example.com (pradeep) (2006-03-05)|
|Re: compiler design firstname.lastname@example.org (C) (2006-03-06)|
|Compiler Design email@example.com (1998-01-06)|
|Date:||6 Mar 2006 02:24:45 -0500|
|Posted-Date:||06 Mar 2006 02:24:44 EST|
> hello all,
> i am trying to desgin a compiler which will support full binary
> expression evaluation along with decision control system.. i have
> studied Compiler Desgining by Aho, Ullman,
> can somebody suggest me sometext book where i can find
> some source code help ?
There's a book called "Crafting a Compiler in C" and (I think) a later
version named "Crafting a Compiler in C++", which, though dated,
contains may of the patterns you'll need. Hennessy & Patterson's
"Computer Architecture - A Quantitative Approach" may also come in
handy, even though it does not directly deal with compiler
development. A quick search should reveal places to obtain them.
Once you're familiar with the terminology, the net is full
of examples of other peoples toy languages many of which
are rich sources of ideas (though the quailty of these ideas
I'd recommend looking up Flex (Lex) and Bison (Yacc) as
they may help too. I use them to code prototype grammers
before coding those grammers manually -- but they may, in
themselves, be good enough for your purposes.
[Crafting a Compiler is quite old but still a nice tutorial on
building a real compiler with yacc and C. -John]
Return to the
Search the comp.compilers archives again.