 | | From: | Josh Madarasz | | Subject: | Non-Tool based books. (Question) | | Date: | 9 Jan 2005 20:54:35 -0500 |
|
|
 | Hey all, I was wondering if anyone could give me some suggestions on books on compiler design that don't deal as heavily with tool use. i.e. something geared more towards the hobbyist who wants to learn to write the entire thing without useing for example Lex and Yacc or similiar tools. I have Aho Sethi and Ullmans Compilers Principles, Techniques and Tools. And Ronald Maks "Writing Compilers & Interpreters, an Applied Aproach" Which I am thoroughly enjoying, though it is rather old but would like advice on books dealing specifically with writing the compilers and not relying on any tools other than the compiler you choose to build it with to begin with. Thank you in advance for any responce.
Josh Madarasz [No tools? I don't think people have toggled in compilers as machine code since the 1950s. -John]
|
|
 | | From: | Paul Cager | | Subject: | Re: Non-Tool based books. (Question) | | Date: | 14 Jan 2005 00:42:02 -0500 |
|
|
 | Josh Madarasz wrote:
> i.e. something geared more towards the hobbyist who wants to learn to > write the entire thing without useing for example Lex and Yacc or
I would recommend "Programming Language Processors in Java" by David Watt and Deryck Brown. They develop an interpretive compiler for a simple language using plain Java without any tools such as Yacc/Lex.
|
|
 | | From: | Jürgen_Kahrs | | Subject: | Re: Non-Tool based books. (Question) | | Date: | 12 Jan 2005 22:57:15 -0500 |
|
|
 | Josh Madarasz wrote:
> i.e. something geared more towards the hobbyist who wants to learn to > write the entire thing without useing for example Lex and Yacc or
Last October someone asked a similar question. This is what I posted to answer the question:
Niklaus Wirth had no problems to introduce his students to compiler construction with a book of 94 pages:
http://www.inf.ethz.ch/~wirth/books/Compilerbau0/
The book contains the complete source code of a compiler and an interpreter. Sample programs like this described in detail:
const m=7, n= 85; var x,y,z,q,r ; begin x:=m; y:= n; z:=0; while y> 0 do begin if odd y then z:= z + x; x:= 2*x; y:= y/ 2; end;
You can teach this course in 1 semester. Here are some other links to PL/0 and PASCAL-S:
http://www.246.dk/pascals.html http://www.246.dk/pl0.html
|
|