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


    âš¡ Month End Offer - Flat 52% Off On All Courses! Enroll Now âš¡
    00:00:00 AM Left

    Question

    Which of the following grammars is suitable for top-down

    parsing?
    A Left recursive grammar Correct Answer Incorrect Answer
    B Ambiguous grammar Correct Answer Incorrect Answer
    C Right recursive grammar Correct Answer Incorrect Answer
    D Context-sensitive grammar Correct Answer Incorrect Answer
    E All grammars Correct Answer Incorrect Answer

    Solution

    Top-down parsers (like LL parsers) cannot handle left recursion. Right recursion and non-ambiguous context-free grammars are suitable for top-down parsing.

    Practice Next
    ask-question