From mboxrd@z Thu Jan 1 00:00:00 1970 From: bakul@bitblocks.com (Bakul Shah) Date: Fri, 11 Nov 2011 12:54:28 -0800 Subject: [9fans] all you yacc experts In-Reply-To: Your message of "Fri, 11 Nov 2011 08:07:21 PST." References: Message-ID: <20111111205428.22C00B856@mail.bitblocks.com> Topicbox-Message-UUID: 3f572730-ead7-11e9-9d60-3106f5b1d025 On Fri, 11 Nov 2011 08:07:21 PST ron minnich wrote: > If somebody wants to look at enhancing yacc so that the extra bison > bits can be supported, that would probably do the trick. I have no > idea of the level of effort, I have not looked. After some googling I see that src/cmd/gc/bisonerrors was added by Russ in an evening to improve go error messages. Clinton Jeffery in his "Generating LR syntax error messages from examples" paper (http://www.cs.nmsu.edu/~jeffery/merr.pdf -- not sure if this is the same paper as the one in TOPLAS) says his Merr program works with Berkeley yacc, AT&T yacc & bison. He also refers to a modified byacc called iyacc. Might it be worth looking Merr or iyacc? Porting bison to plan9 seems like a hugh punishment for a quick hack:-) Implementing Jeffery's directly in yacc might benefit other parsers as well.