From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 22 Jul 2011 11:49:30 +0200 From: Lucio De Re To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110722094929.GN1803@fangle.proxima.alt.za> References: <201107220536.p6M5agtv019617@freefriends.org> <20110722063350.GK1803@fangle.proxima.alt.za> <20110722074212.D3CB0B827@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110722074212.D3CB0B827@mail.bitblocks.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto) Topicbox-Message-UUID: 04061236-ead7-11e9-9d60-3106f5b1d025 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