On Fri, 22 Jul 2011 13:53:41 EDT erik quanstrom <[email protected]>
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;