Books on compiler tools ?

This is a discussion on Books on compiler tools ? within the Compilers forums in Theory and Concepts category; Are there any books currently in print that describe compiler building tools other than my venerable "lex & yacc". I realize that books like the dragon book mention them as part of a description of RE lexers or LALR parsers, but I'm more interested in books like Terrence Parr's 1996 book on PCCTS or Holub's book where he reimplemented lex and yacc. I can't find any -- am I the lone survivor or am I missing some? R's, John...

Go Back   Application Development Forum > Theory and Concepts > Compilers

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2008, 05:17 PM
John L
Guest
 
Default Books on compiler tools ?

Are there any books currently in print that describe compiler building
tools other than my venerable "lex & yacc". I realize that books like the
dragon book mention them as part of a description of RE lexers or LALR
parsers, but I'm more interested in books like Terrence Parr's 1996 book
on PCCTS or Holub's book where he reimplemented lex and yacc.

I can't find any -- am I the lone survivor or am I missing some?

R's,
John

Reply With Quote
  #2  
Old 09-05-2008, 10:46 PM
glen herrmannsfeldt
Guest
 
Default Re: Books on compiler tools ?

John L wrote:

> Are there any books currently in print that describe compiler building
> tools other than my venerable "lex & yacc". I realize that books like the
> dragon book mention them as part of a description of RE lexers or LALR
> parsers, but I'm more interested in books like Terrence Parr's 1996 book
> on PCCTS or Holub's book where he reimplemented lex and yacc.


So you want books on tools, not on compiler construction
in general. My old favorite is the LCC book, where the
code generator takes a machine description and uses that
in code generation. I don't remember that it uses special
tools for the parser or lexer.

Otherwise, for books about compilers...

It seems that there is a new Aho, ... book as of Aug. 2006:

http://www.amazon.com/Compilers-Prin...0664416&sr=1-1

one by Louden from 1996, which also still seems to be in print, but
might use yacc.

http://www.amazon.com/Compiler-Const...0664416&sr=1-3

Engineering a Compiler, Cooper & Torczon,

http://www.amazon.com/Engineering-Co...0664416&sr=1-4

Advanced Compiler Design by Muchnick

http://www.amazon.com/Advanced-Compi...0664416&sr=1-6

Crafting a Compiler with C, Fischer & LeBlanc

http://www.amazon.com/Crafting-Compi...0664416&sr=1-7

Modern Compiler Implementation in Java, Appel & Palsberg

http://www.amazon.com/Modern-Compile...0664416&sr=1-9

Those are from putting compiler into amazon.com with the category
set to books. It looks like they are in print.

also, The Compiler Design Handbook: Optimizations and Machine
Code Generation, Second Edition by Srikant & Shankar,

http://www.amazon.com/Compiler-Desig...665085&sr=1-15

I don't know more about them than from the Amazon web site, but
some sound like they might be good. (though not cheap.)

-- glen
[Most of those books are long out of print; Amazon keeps them in the catalog
in case someone wants to sell a used copy. But thanks nonetheless. -John]
Reply With Quote
  #3  
Old 09-06-2008, 02:59 PM
Jürgen Kahrs
Guest
 
Default Re: Books on compiler tools ?

John L schrieb:
> Are there any books currently in print that describe compiler building
> tools other than my venerable "lex & yacc". I realize that books like the
> dragon book mention them as part of a description of RE lexers or LALR
> parsers, but I'm more interested in books like Terrence Parr's 1996 book
> on PCCTS or Holub's book where he reimplemented lex and yacc.


Pat Terry uses CoCo/R in his textbook:

http://www.amazon.com/Compiling-C-Ja...dp/032126360X/
http://www.scifac.ru.ac.za/cspt/
http://en.wikipedia.org/wiki/Coco/R

"A feature of the book is that it demonstrates the use
of Coco/R to implement compilers for the JVM and CLR platforms."

Reply With Quote
  #4  
Old 09-06-2008, 03:21 PM
Tony Sloane
Guest
 
Default Re: Books on compiler tools ?

On Fri, 5 Sep 2008 22:17:18 +0100 (BST), John L wrote:

> Are there any books currently in print that describe compiler building
> tools other than my venerable "lex & yacc". I realize that books
> like the
> dragon book mention them as part of a description of RE lexers or LALR
> parsers, but I'm more interested in books like Terrence Parr's 1996
> book
> on PCCTS or Holub's book where he reimplemented lex and yacc.
>
> I can't find any -- am I the lone survivor or am I missing some?


I presume that "The Definitive ANTLR Reference: Building Domain-
Specific Languages" by Terence Parr (published by Pragmatic
Programmers) is still in print since Amazon.com has it in stock.

<plug>
Also, our book "Generating Software from Specifications" (Kastens,
Sloane, Waite - Jones and Bartlett, 2007, http://www.jbpub.com/catalog/9780763741242/)
, while not specifically about building compilers, illustrates
software generation using our Eli system with examples from the
language processing area many of which are relevant for compiler
generation.
</plug>

cheers,
Tony

Reply With Quote
  #5  
Old 09-07-2008, 05:15 AM
Aleksey Demakov
Guest
 
Default Re: Books on compiler tools ?

On Sat, Sep 6, 2008 at 4:17 AM, John L <johnl@iecc.com> wrote:
> Are there any books currently in print that describe compiler building
> tools other than my venerable "lex & yacc". I realize that books like the
> dragon book mention them as part of a description of RE lexers or LALR
> parsers, but I'm more interested in books like Terrence Parr's 1996 book
> on PCCTS or Holub's book where he reimplemented lex and yacc.
>


There's a newer Terrence Parr's book:

http://www.pragprog.com/titles/tpant...ntlr-reference

Regards,
Aleksey

Reply With Quote
  #6  
Old 09-08-2008, 12:39 AM
glen herrmannsfeldt
Guest
 
Default Re: Books on compiler tools ?

glen herrmannsfeldt wrote:
> John L wrote:


> [Most of those books are long out of print; Amazon keeps them in the catalog
> in case someone wants to sell a used copy. But thanks nonetheless. -John]


Some were pretty recent, and amazon said were in stock, but you
never know until you try to order one.

Also, there are jacc and Sun's jack

http://www.javaworld.com/javaworld/j...w-12-jack.html

http://web.cecs.pdx.edu/~mpj/jacc/

there should be books that go with them, but I don't
know the names. Also, jlex and jflex.

It seems that the new Aho, Lam, Sethi, and Ullman book is used
in some compiler writing in Java classes,

http://www.sm.luth.se/csee/courses/d7011e/

-- glen

Reply With Quote
  #7  
Old 09-08-2008, 02:20 PM
Aleksey Demakov
Guest
 
Default Re: Books on compiler tools ?

On Sat, Sep 6, 2008 at 4:17 AM, John L <johnl@iecc.com> wrote:
> Are there any books currently in print that describe compiler building
> tools other than my venerable "lex & yacc". I realize that books like the
> dragon book mention them as part of a description of RE lexers or LALR
> parsers, but I'm more interested in books like Terrence Parr's 1996 book
> on PCCTS or Holub's book where he reimplemented lex and yacc.
>
> I can't find any -- am I the lone survivor or am I missing some?
>


Although it is not exactly a book but I think the bison manual
does a pretty good job. At least I learned how to use yacc-like
tools with (a much earlier version of) it.

http://www.gnu.org/software/bison/manual/index.html

Regards,
Aleksey

Reply With Quote
  #8  
Old 09-08-2008, 10:51 PM
Tom Copeland
Guest
 
Default Re: Books on compiler tools ?

On Sep 8, 2008, at 12:39 AM, glen herrmannsfeldt wrote:

> Also, there are jacc and Sun's jack
>
> http://www.javaworld.com/javaworld/j...w-12-jack.html


Jack was renamed JavaCC and after being licensed by various companies
it's been open sourced (with a BSD license) by Sun here:

https://javacc.dev.java.net/

Plug: I wrote a book on it:

http://generatingparserswithjavacc.com/

and we just released v4.1, so, good times,

Yours,

Tom Copeland
tom@infoether.com

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:32 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.