Commit 5fc62f48 authored by Kai Ma's avatar Kai Ma

[lab1] doc fix

根据反馈,旧版 bison 没有定义 YYUNDEF.
parent 1b2e2c18
......@@ -237,7 +237,8 @@ int yylex(void)
switch (c) {
case EOF: return YYEOF;
case 'R': return REIMU;
default: return YYUNDEF; // 报告 token 未定义,迫使 bison 报错
default: return YYUNDEF; // 报告 token 未定义,迫使 bison 报错。
// 由于 bison 不同版本有不同的定义。如果这里 YYUNDEF 未定义,请尝试 YYUNDEFTOK 或使用一个随意的整数,如 114514 或 19260817。
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment