The reason a mid-production action cannot simply be executed when the parser reaches that point in a bottom up parse is that
Answer: A
Until a reduction occurs the parser has committed to nothing, so there is no moment at which it could know that this particular action applies. Inserting an empty nonterminal manufactures a reduction at the wanted point, which is how generators implement such actions and also why they sometimes introduce conflicts.
Please log in or register to report this question.