On Fri, Nov 11, 2011 at 6:54 PM, Bakul Shah <ba...@bitblocks.com> wrote: > On Fri, 11 Nov 2011 08:07:21 PST ron minnich <rminn...@gmail.com> 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