lv4-const-n-var/var-n-assign #103
Replies: 2 comments
-
|
新加的VarDecl可能会造成shift/reduce冲突 具体的冲突发生在解析类似
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
解决应该也不难,只需要把 BType ::= "int"| "void";
FuncDef ::= Btype IDENT "(" ")" Block;
VarDecl ::= BType VarDef {"," VarDef} ";";虽然这样会引入 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
lv4-const-n-var/var-n-assign
北京大学编译实践课程在线文档
https://pku-minic.github.io/online-doc/
Beta Was this translation helpful? Give feedback.
All reactions