From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 22 Jul 2011 21:13:07 +0200 From: Lucio De Re To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110722191307.GK2065@fangle.proxima.alt.za> References: <201107220536.p6M5agtv019617@freefriends.org> <20110722130310.GO1803@fangle.proxima.alt.za> <2f6021d419a7327afa4134cda0e6c88f@ladd.quanstro.net> <20110722153731.GQ1803@fangle.proxima.alt.za> <20110722171320.50A9CB827@mail.bitblocks.com> <20110722183802.60C66B827@mail.bitblocks.com> <20110722185545.87D40B852@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110722185545.87D40B852@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: 0583b668-ead7-11e9-9d60-3106f5b1d025 On Fri, Jul 22, 2011 at 11:55:45AM -0700, Bakul Shah wrote: > On Fri, 22 Jul 2011 14:48:44 EDT "ComeauAt9Fans@gmail.com" wrote: > > On Jul 22, 2011, at 2:38 PM, Bakul Shah wrote: > > > On Fri, 22 Jul 2011 13:53:41 EDT erik quanstrom = > > wrote: > > >> can you give am example where // comments with ' cause > > >> trouble. i can't replicate. > > >> > > >> - erik > > > > > > In 9vx: > > > > > > term% yacc go/src/cmd/gc/go.y > > > > > > fatal error:newline in string or char. const., /go/src/cmd/gc/go.y:528 > > > > > > > > > // If the last token read by the lexer was consumed > > > // as part of the case, clear it (parser has cleared yychar). > > > // If the last token read by the lexer was the lookahead > > > // leave it alone (parser has it cached in yychar). > > > ====> // This is so that the stmt_list action doesn't look at > > > // the case tokens if the stmt_list is empty. > > > yylast = yychar; > > > > pcc accepts -+ as well as cpp, perhaps a way to pass it as an environment and > > /or make variable? > > What does pcc have to do with this? This is a yacc problem. [Also tested > on 9atom] I don't know either, but the yacc source doesn't explain how this error arises. Erik is right to be skeptical. ++L