Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
2
2022fall-Compiler_CMinus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晓奇
2022fall-Compiler_CMinus
Commits
5fc62f48
Commit
5fc62f48
authored
Sep 25, 2021
by
Kai Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[lab1] doc fix
根据反馈,旧版 bison 没有定义 YYUNDEF.
parent
1b2e2c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Documentations/1-parser/Basics.md
Documentations/1-parser/Basics.md
+2
-1
No files found.
Documentations/1-parser/Basics.md
View file @
5fc62f48
...
...
@@ -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。
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment