📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    A "shift/reduce conflict" in an LR parsing table occurs

    when:
    A The parser has to choose between two different reduce actions. Correct Answer Incorrect Answer
    B The parser has to choose between shifting the current input symbol or reducing by a grammar rule. Correct Answer Incorrect Answer
    C The parser has to choose between two different shift actions. Correct Answer Incorrect Answer
    D The input string does not conform to the grammar. Correct Answer Incorrect Answer
    E The grammar contains left recursion. Correct Answer Incorrect Answer

    Solution

    The parser has to choose between shifting the current input symbol or reducing by a grammar rule.

    Practice Next
    ask-question