> 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;
i still can't replicate. i pasted exactly this block into a yacc file and it works just fine. are you sure you are using up-to-date binaries? barring that, can you send me the .y file? - erik