Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!bionet!arisia!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c++ Subject: Re: YACCable grammars available for C++ and C Keywords: Grammar, C++ Message-ID: <5130@odin.SGI.COM> Date: 12 Mar 90 14:37:50 GMT References: <25F844F7.28923@paris.ics.uci.edu> Sender: news@odin.SGI.COM Distribution: usa Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 37 In article <25F844F7.28923@paris.ics.uci.edu> schmidt@crimee.ics.uci.edu (Doug Schmidt) writes: > >Jim Roskind >jar@ileaf.com > >-- >facilis descensus avernus >---------------------------------------- >schmidt@ics.uci.edu (ARPA) >office: (714) 856-4043 Jim, I think your grammar is terrific. I, too, would be interested in getting a PD lexer to go along with it if you know of one - there are lots of tools that could be built from this basis. If one doesn't show up in the next day or so, however, perhaps I'll just post the one I've been building here. I also want to report a bug in both grammars (or rather, an oversight): they don't accept the empty file, which should be legal. In my copy, I fixed this by changing prog.start: translation.unit ; to prog.start: | translation.unit ; Doing it in translation.unit led to shift-reduce errors. Jonathan Shapiro Silicon Graphics, Inc.