1 1 vote 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 2.7k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Option C LR (1) pream sagar answered Sep 22, 2018 pream sagar comment Share Follow See all 2 Comments 2 2 Comments reply syncronizing commented Sep 22, 2018 reply Follow flag answer is D 0 0 replyShare pream sagar commented Sep 22, 2018 reply Follow flag 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 1 replyShare Please log in or register to add a comment.
1 1 vote 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 1 1 comment reply Verma Ashish commented Sep 26, 2019 reply Follow flag Yes you are right... 0 0 replyShare Please log in or register to add a comment.
0 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 0 reply Please log in or register to add a comment.
0 0 votes D is the correct answer pritambiswas000007 answered Jun 6, 2020 pritambiswas000007 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes only option- c is coorect i.e every LL(1) grammar is CLR(1) or LR(1) rish1602 answered Apr 7, 2021 rish1602 comment Share Follow 0 reply Please log in or register to add a comment.