How to remove ambiguity in grammar using CUP?

后端 未结 0 1798
忘掉有多难
忘掉有多难 2021-01-24 00:00

I have this grammar

S-> Stat
Stat -> Exprs WRITE
Stat -> Vars READ
Vars -> ID COMMA Vars
Vars -> ID
Exprs -> Expr COMMA Exprs
Exprs -> Expr
E         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题