On Fri, Jul 22, 2011 at 12:42:12AM -0700, Bakul Shah wrote:
> $ yacc gc/go.y
> yacc: e - line 120 of "go.y", syntax error
> %error-verbose
> ^
> This is a bison dropping. I haven't looked at the go sources
> but hopefully this can be worked around easily.
> 
It resolves to a bunch of #ifdefs, #undefs, #defines, which can be
corrected easily.  But the generated code is full of issues that 8c
does not like to compile, for various reasons (I'll post the details
elsewhere when I get a chance.  I don't know if that applies to byacc.
Thanks for raising it, I do have access to byacc on NetBSD and of course
I can try to port that to Plan 9 rather than bison.  We'll see...

> I didn't actually run any of the generated code but given the
> -y flag I have hopes.... In the worst can you can write a
> bison script around byacc and massage what needs to be.
> 
> Try compiling /usr/src/usr.bin/yacc from *BSD. Let me know if
> you run into problems.

I will, both, once I've refreshed my recollections and tried some
tangential possibilities.

Thanks to both of you for the help.

++L

Reply via email to