【发布时间】:2016-03-25 12:17:30
【问题描述】:
鉴于以下野牛规则,我不明白为什么 INTO 令牌可以在相同的野牛状态下移动和归约并导致 1 移动/归约冲突。如何解决?大写字母都是代币。
select_condition: SELECT opt_select fields
FROM from_clause
opt_into_table
opt_into_graph
opt_where_expr
opt_into_table: { $$ = 0; }
| INTO TABLE IDENTIFIER { $$ = 1; }
opt_into_graph: { $$ = 0; }
| INTO GRAPH IDENTIFIER { $$ = 1; }
////// from the sqlparser.output //////////////////
INTO shift, and go to state 66
INTO [reduce using rule 31 (opt_into_table)]
$default reduce using rule 31 (opt_into_table)
opt_into_table go to state 67
【问题讨论】:
-
我将第二个 INTO 替换为 'into' 并且它有效。还有其他更好的方法吗?