rgcote@cls.lcs.mit.EDU (02/12/87)
Can anyone direct me to some good documentation on how to use Yacc. In particular, how to write a compiler using Yacc. I already have the paper "Yacc: Yet Another Compiler-Compiler" by Stephen Johnson (July 31, 1978) and also chapter 8 in "The Unix Programming Environment" by Kernighan and Pike. Are there any other good papers on how to use Yacc? I am interested in learning more about how to do good error recovery and static semantic checking. Please mail to me directly since I do no subscribe to this mailing list. Thanks ahead of time for any help you may be able to give. -Rob Cote rgcote@cls.lcs.mit.edu (internet) P.S. I will be working with 4.2BSD Unix running on a DEC VAX 750 and 780.
dm@bfly-vax.bbn.COM (02/12/87)
Good YACC documentation: Schreiner, A, & Friedman, HG, ``Introduction to compiler construction with UNIX'' (Prentice-Hall, Englewood Cliffs, NJ, 1985). ISBN 0-13-474396-2. This book takes you through constructing a compiler for a C subset, using LEX and YACC. Since you're at MIT, I've seen it at the Harvard Coop (for an outrageous $35.00). Has excellent error-recvery stuff, also tells you how to fix your YACC so it produces better error messages.