0 votes 0 votes Which of the following grammar is LR (1) ? (A) A --> a A b, A --> b A b, A --> a , A --> b (B) A --> a A a, A --> a A b, A --> c (C) A --> A + A, A --> a (D) Both (A) and (B) Compiler Design compiler-design parsing lr-parser + – shruti gupta1 asked May 15, 2018 retagged Jun 18, 2022 by Lakshman Bhaiya shruti gupta1 397 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Option c is ambiguous grammar.so it never be LL(1). for optiin a and be we need to construct LL(1) Parser table. abhishekmehta4u answered May 15, 2018 abhishekmehta4u comment Share Follow See all 0 reply Please log in or register to add a comment.