1 votes 1 votes Every LL(1) grammar is ______ A.SLR(1) B.LALR(1) C.LR(1) D.Both B & C Compiler Design compiler-design parsing lr-parser ll-parser + – syncronizing asked Sep 22, 2018 • retagged Jun 18, 2022 by Lakshman Bhaiya syncronizing 1.7k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Option C LR (1) pream sagar answered Sep 22, 2018 pream sagar comment Share Follow See all 2 Comments See all 2 2 Comments reply syncronizing commented Sep 22, 2018 reply Follow Share answer is D 0 votes 0 votes pream sagar commented Sep 22, 2018 reply Follow Share in some book they said LL1 is also LALR But most of the book said LR1 please follow this link https://gateoverflow.in/141911/ll-1-grammar 1 votes 1 votes Please log in or register to add a comment.
1 votes 1 votes https://www.google.com/url?sa=t&source=web&rct=j&url=/imgres%3Fimgurl%3Dhttps://i.stack.imgur.com/VUQhu.png%26imgrefurl%3Dhttps://gateoverflow.in/141911/ll-1-grammar%26h%3D417%26w%3D642%26tbnid%3D8P0o_WLGh2w8qM%26tbnh%3D181%26tbnw%3D279%26usg%3DK_U19PAGtJYqiIfBlsEV6vDAroWs0%3D%26docid%3DDpHqf2RXBg6HtM&ved=2ahUKEwjL7Pq88-7kAhWy7XMBHfsiBgoQ8g0wAHoECAcQBA&usg=AOvVaw36metwN5wDJx5DHIb6LfVS this picture in this link is the only correct ven diagram representing classes of LL(K) AND LR(K) .... ACCORDING TO THIS ... there are LL(1) grammers that are not LALR(1) example: https://stackoverflow.com/questions/6487588/example-for-ll1-grammar-which-is-not-lalr/6492798#6492798 so answer for you question is "LR(1)" i.e. option C) BLACK_CLOUD answered Sep 26, 2019 BLACK_CLOUD comment Share Follow See 1 comment See all 1 1 comment reply Verma Ashish commented Sep 26, 2019 reply Follow Share Yes you are right... 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes The correct answer should be C. D can't be an option because there are some grammar which are LR(1) but not LALR(!) logan1x answered Nov 7, 2019 • edited Nov 7, 2019 by logan1x logan1x comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes D is the correct answer pritambiswas000007 answered Jun 6, 2020 pritambiswas000007 comment Share Follow See all 0 reply Please log in or register to add a comment.