The SLR table of a grammar has a row per state of its LR(0) automaton. Its action part has a column per terminal and $: cell holds shift if the automaton moves from to on , reduce if is in and , and accept if and is in . Its goto part has a column per nonterminal, read from the automaton’s moves. A cell with a shift and a reduce is a shift–reduce conflict; a cell with two reduces is a reduce–reduce conflict. A grammar is SLR if its table has no conflict.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 SLR table, shift–reduce and reduce–reduce conflicts?
又称: SLR table · shift--reduce conflict · reduce--reduce conflict