From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Fri, 22 Jul 2011 13:53:41 EDT." 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> Date: Fri, 22 Jul 2011 11:38:02 -0700 From: Bakul Shah Message-Id: <20110722183802.60C66B827@mail.bitblocks.com> Subject: Re: [9fans] Plan 9 Go (Was: GNU/Linux/Plan 9 disto) Topicbox-Message-UUID: 0530307e-ead7-11e9-9d60-3106f5b1d025 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;