Derivation
推导(derivation) 是根据开始符号
最左推导
最左推导(leftmost derivation)是对推导式右手端最左边第一个 非终结符 进行展开。
最右推导
最右推导(rightmost derivation)是对推导式右手端最右边第一个 非终结符 进行展开。
Wikipedia
Left/Right derivation:[1]
- in a leftmost derivation, it is always the leftmost nonterminal
- in a rightmost derivation, it is always the rightmost nonterminal