Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!bloom-beacon!adam.pika.mit.edu!scs From: scs@adam.pika.mit.edu (Steve Summit) Newsgroups: comp.lang.c Subject: K&R II YACC grammar (was: Yacc probs w/ANSI-C) Message-ID: <12380@bloom-beacon.MIT.EDU> Date: 2 Jul 89 16:08:06 GMT References: Sender: daemon@bloom-beacon.MIT.EDU Reply-To: scs@adam.pika.mit.edu (Steve Summit) Lines: 17 In article bobg+@andrew.cmu.edu (Robert Steven Glickstein) writes: >I've written a parser for ANSI-C using YACC (adhering strictly to the >grammar given in K&R, second edition) that doesn't work. Despite the >claim in section A13 that "this grammar is acceptable to the YACC >parser-generator"... Is anyone else worried about the ethical question here? Section A13 really seems to encourage you to type it in, feed it to YACC, and use it in your compiler ("This grammar can be transformed mechanically into input acceptable to an automatic parser- generator.") yet the copyright page contains the usual "No part of this publication may be... stored in a retrieval system... in any form or by any means..." etc. (No criticism of Robert; I'm sure many others have done the same.) Any comments? Steve Summit scs@adam.pika.mit.edu