2 votes 2 votes Which one of the following statements is TRUE? SLR parser has more states than LALR parser. LALR parser has more states than Canonical LR. Canonical LR has fewer states than SLR parser. Both SLR and LALR parsers have the same number of states. Compiler Design tbb-cd-1 compiler-design parsing + – Bikram asked Nov 25, 2016 retagged Sep 14, 2020 by ajaysoni1924 Bikram 300 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes D. Both SLR and LALR parsers have the same number of states. If number of states LR(0) = $n_1$, number of states SLR(1) = $n_2$, number of states LALR(1) = $n_3$, number of states CLR(1) = $n_4$ then, $n_1 = n_2 = n_3 <= n_4$ Naveen Kumar 3 answered Sep 18, 2019 selected Sep 18, 2019 by Bikram Naveen Kumar 3 comment Share Follow See all 0 reply Please log in or register to add a comment.