|Need recommendations on books for grammar writing firstname.lastname@example.org (1992-04-29)|
|Re: Need recommendations on books for grammar writing email@example.com (1992-04-30)|
|Re: Need recommendations on books for grammar writing firstname.lastname@example.org (1992-05-01)|
|From:||email@example.com (Dale R. Worley)|
|Organization:||MIT Dept. of Tetrapilotomy, Cambridge, MA, USA|
|Date:||Fri, 1 May 1992 19:57:01 GMT|
Can anyone recommend any good compiler books that details the
process of grammar writing? Or is it essentially a "black art"?
Grammar writing, itself, is reasonably simple. Or, from a CS point of
view, "You don't really have a language until you've written a grammar for
it." The black art comes in when you have to tweak your grammar so that
it works with the parser you've chosen, handles error recovery well, etc.,
etc. As far as I know, that part of the job is extremely specific to the
tools you are using. (And often is unique, since serious compiler
projects often customize the parser generator to get the facilities they
need...) Unfortunately, no parser generator that I know of has
documentation for that part of the job, although I suppose a few
commercial tools might.
Dale Worley Dept. of Math., MIT firstname.lastname@example.org
[Indeed, the bulk of the O'Reilly lex&yacc book, which I am currently
revising, involves discussions of just this kind of black art. -John]
Return to the
Search the comp.compilers archives again.