home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compcomp / cgrammer / lalr.bug < prev    next >
Encoding:
Text File  |  1986-03-24  |  1.3 KB  |  35 lines

  1.  
  2. In article <294@isis.UUCP> dmiruke@isis.UUCP asks:
  3. > Sometime back someone posted a question about an error in the LALR grammar
  4. > given in the book 'C - A Reference Manual' by Harbison and Steele, in which
  5. > there are two productions present that don't seem to be used anywhere at all
  6. > in the rest of the grammar. I do not know if any solution or improvement was
  7. > suggested by someone about this. If someone has any idea would like to hear
  8. > about it.
  9.  
  10. In May 1985, Don Taylor posted the following corrections:
  11.  
  12. | There are a handful of typo's in the lalr(1) grammar in appendix c [of H&S].
  13. | A letter to them resulted in a prompt reply from Mr. Harbison, and I quote
  14. | ------------
  15. |      -Change all occurences of "..._ctype>" to "..._type>".
  16. |      -Remove definitions of "<008>" and "<key_dcltr>"; they are not needed.
  17. |      -"<decl or stmt>" should be "<dcl_or_stmt>".
  18. | In addition, if you have the first printing of the book, the production
  19. |      <cast_exp> ::= ( <typename_declaration> ) <prefix_exp>
  20. | should be
  21. |      <cast_exp> ::= ( <typename_declaration> ) <cast_exp>
  22. | You should also know that this grammar does not accomodate C's "old" form of
  23. | initializers and compound assignments.
  24. | ------------
  25.  
  26. Steven Pemberton, CWI, Amsterdam; steven@mcvax.uucp
  27.  
  28.  
  29.