Skip to content

递归定义与shift/reduce的问题 #88

Discussion options

You must be logged in to vote

找到问题所在了,这是因为作为间隔的T_COMMA同时能够在一个语句上表示两种意义,举我自己的例子,T_COMMA可以作为ConstDef和InitVal的间隔以及ConstDef与ConstDefS的间隔,加上一开始我看错语法规则了,所以导致这样的结果。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NyakoApocalipse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant