From mboxrd@z Thu Jan 1 00:00:00 1970 From: iru.muzgo@gmail.com (=?UTF-8?Q?Iruat=C3=A3_Souza?=) Date: Fri, 11 Nov 2011 21:38:48 -0200 Subject: [9fans] all you yacc experts In-Reply-To: <20111111205428.22C00B856@mail.bitblocks.com> References: <20111111205428.22C00B856@mail.bitblocks.com> Message-ID: Topicbox-Message-UUID: 3f703bee-ead7-11e9-9d60-3106f5b1d025 On Fri, Nov 11, 2011 at 6:54 PM, Bakul Shah wrote: > 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. > > Sorry if it obvious, but Russ posted about the improvement on Go errors: http://research.swtch.com/2010/01/generating-good-syntax-errors.html. iru