Lec-13: CLR Parsing Table | LR(1) Canonical Items

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025

Комментарии • 174

  • @faizaali9991
    @faizaali9991 2 года назад +32

    The way this teacher articulated the ideas, along with his excellent comprehension of the material, had a significant impression.This is without a doubt the greatest in the series.I am speechless in my appreciation. You've provided a one-stop shop for students. I can't stop praising you and saying thank you,

  • @mhmitsme
    @mhmitsme 9 месяцев назад +17

    Others are having live session and telling their achievement as victory but sir you got a victory in our heart cause u made us help in every way possible

  • @kanakyadav2498
    @kanakyadav2498 4 года назад +52

    So, finally i got a one stop solution of my compiler design examination.
    Firstly, due to this pandemic, neither we could avail the books nor there were proper video lectures available on youtube to help me out in this subject.
    One of my friend suggested me this channel and surprisingly, watching the first video of this video series, made me realize that its going to be enough for my complete subject.
    The way this teacher has explained the concepts, his clear understanding as well as the clear vocalization of the subject had a huge impact.
    No doubt, this is the best of the series, i have ever watched in terms of Engineering subjects.
    No words to express my gratitude. Students like me who love to reach in depth of a subject, you have given a one stop solution. I cannot stop ravishing and thanking you "SIR"🤩. God bless😇

  • @HarshRaj-fp6pv
    @HarshRaj-fp6pv 3 года назад +15

    6:29 very nicely explained👌🏾👍🏽

  • @shikharsaxena2000
    @shikharsaxena2000 4 года назад +10

    one of the best youtuber guide.... sir ur explaination is beyond infinity.... love u sir... thank u

  • @ashokdurunde1814
    @ashokdurunde1814 2 года назад +6

    So, finally i got a one stop solution of my compiler design examination.

  • @proteansan5141
    @proteansan5141 Год назад +1

    Thank you sir, the last point you said in the video was really useful as even I had that doubt from long time that why don't we call it RR conflict. Now its clear that it is due to the lookahead symbol 🙏

  • @mousumikhatun3008
    @mousumikhatun3008 4 года назад +8

    Very important topic in compiler design..

  • @masumpatel1291
    @masumpatel1291 Год назад +9

    trust me , our teachers teach us after learning from you

  • @harshvardhanchaturvedi2588
    @harshvardhanchaturvedi2588 4 года назад +4

    I was waiting for this... Thank you sir...

  • @masadjuttasad9502
    @masadjuttasad9502 3 года назад +2

    Your way of teaching is very good

  • @asmithatm5598
    @asmithatm5598 4 года назад +18

    I was badly waiting for next lecture sir. Thank you.

  • @mousumikhatun3008
    @mousumikhatun3008 4 года назад +4

    Thank you sir for the Vdo..

  • @ommprakashsahoo3681
    @ommprakashsahoo3681 4 месяца назад

    Thank you sir for such beautiful content in free❤❤

  • @swetamaurya8630
    @swetamaurya8630 Год назад

    Sir, you are the best!

  • @_riaaaguptaaa
    @_riaaaguptaaa 4 года назад +6

    Best ever teacher ❤️❤️

  • @SayanMondal-t5n
    @SayanMondal-t5n 4 месяца назад

    Thank you sir. Great explanation ❤

  • @sadaffnazz725
    @sadaffnazz725 4 года назад +2

    thanks alot sir for uploading

  • @continnum_radhe-radhe
    @continnum_radhe-radhe Год назад +1

    ❤❤❤

  • @piyushtripathi5566
    @piyushtripathi5566 3 года назад +1

    Thank you sir ❣️

  • @vishnus2567
    @vishnus2567 25 дней назад +1

    @8:35 when applying the input symbol 'c' in i3 state, we get { A→ c. ,d and B → c. ,d }. This is already existing state? The state i6 is also { A→ c. ,d and B → c. ,d }. So don't we need to connect i3 to i6 on input symbol 'c' ?🤔

  • @Jai.shree_ram7
    @Jai.shree_ram7 2 месяца назад

    thank you ( i can't describe in a word but thank you!!)

  • @06ankita
    @06ankita Год назад +1

    Crystal clear🔮 . Thank u so much sir..!!!

  • @pischekparker8197
    @pischekparker8197 2 года назад

    i am not indian but youre absolutlya blessing sir, stay blessed mann.

  • @rahultak6304
    @rahultak6304 4 года назад +102

    Sir pura btao na please parsing table kese banae

    • @sachinrathee0611
      @sachinrathee0611 2 года назад +9

      SLR wale vdos dekhle na.

    • @paraschand2001
      @paraschand2001 2 года назад +13

      Baki same bas reduced term look ahead pe rakhna. If you're still giving this exam 😅

    • @kartikaymalhotra35d-17
      @kartikaymalhotra35d-17 Год назад +5

      @@paraschand2001main duga 12 ghante 10 min bad.

  • @chjibrann
    @chjibrann 2 года назад

    perfect brother

  • @simransingh6137
    @simransingh6137 3 года назад +2

    Thank you sir

  • @aqsakhan8549
    @aqsakhan8549 3 года назад +1

    Thanku sir💫

  • @NamithaRamachandran
    @NamithaRamachandran 4 года назад +1

    Thank you so much

  • @mayanksaini2811
    @mayanksaini2811 9 месяцев назад +5

    Jo bat last m boli h😂 vo shuru m bolni hoti h😂 ki phle vo dekho fir ye dekhna 😂 bande sidha topic search krke a rhe

  • @kapiljetwani3540
    @kapiljetwani3540 2 года назад +1

    thank u sir❤❤

  • @codingskills853
    @codingskills853 3 года назад +1

    Thanks a lot sir 🙏🙏🙏 thank u so much 🙏🙏🙏

  • @mangshokl
    @mangshokl 9 месяцев назад +1

    are you god bro

  • @lakshyacheppala6531
    @lakshyacheppala6531 6 месяцев назад

    Thank you sir😭saved my ass right before my finals

  • @rijulkundan
    @rijulkundan 3 года назад +4

    plz make a video on parsing table of CLR

  • @deepalwin
    @deepalwin 4 года назад +12

    Looking for a short trick to check if the grammar is in SLR, LR0 and CLR

    • @vishalcseiitghy
      @vishalcseiitghy 4 года назад +14

      keep looking cuz no algorithm because of undecidibility

  • @me59080
    @me59080 2 года назад +1

    Difference between SLR and CLR is at 10:30

  • @omkaraiya1722
    @omkaraiya1722 9 месяцев назад +1

    8:37 sir we can direct the input on “c" to I6 in place of writing a new state (I9) right?
    Anyone? Am i right?

  • @kshitiztripathi7623
    @kshitiztripathi7623 4 года назад +9

    sir i have a doubt that for item I6(A->c. ,d B->c. ,e), the reduced no. will be r5 and r6 so in table, we have to write r5 or r6, in look ahead d and e?

    • @priyankitanwar3491
      @priyankitanwar3491 3 года назад

      Yes

    • @vlover02
      @vlover02 2 года назад +2

      The reduce no. For d is r5 bcz of A's production no. Is 5 and for e is r6 bcz B's production no. Is 6
      And for look ahead hm isme d or e me isliye likh rhe h qki jo . He vo e or d se phle h agr . e or d k bad hota to hm $ m r5 or r6 likhte
      I know ki apko ab iski jrurt nhi hogi but jese mene y doubt dekha vese kisi or ko iski jrurt pd skti h so isliye mene socha solution likh du syd shi ho

  • @HimanshuSharma-sd5gk
    @HimanshuSharma-sd5gk 3 года назад +1

    Sir ye look ahead nikalte time ham ka next to left side ka first nikalte he kya?

  • @josephdavis4852
    @josephdavis4852 3 года назад +3

    Sir, pehle canonical item mein apne A --> .c,$ and B --> .c,$ nahi likha hai...kya ye likhna zaruri nahi hai??
    Agar aisa hai to total number of canonical items = 15 hona chahiye...??

    • @ManpreetKaur-wi4bo
      @ManpreetKaur-wi4bo 3 года назад

      Ha bhai ese 13 canonical items bn rhi hai 🤔🤔

    • @ninishanth2913
      @ninishanth2913 3 года назад +8

      Here, we are not considering A->c as A->.c and B->c as B->.c because
      First,
      In the production S'->.S, $
      after (.), there is a variable / non-terminal 'S'.
      So, we just unwrapped all the productions of 'S'
      S->.aAd, $
      S->.bBd, $
      S->.aBe, $
      S->.bAe, $
      Now, in the above 4 productions, there are terminals after (.) in each production.
      There are no non-terminals or variables after (.) in every production.
      So, we are not considering the productions A->c and B->c in item.
      Hope you understood...

  • @atharvatupe5772
    @atharvatupe5772 10 месяцев назад

    thankyou

  • @SonuMeena-ce1do
    @SonuMeena-ce1do 4 года назад +8

    Can you provide all the remaining lectures of this series of compiler ,I watched previous videos of this subject was too much impressive for me that's why I need full syllabus(gate,other Competitive exams). Thanks for your great effort

  • @manishapurohit8667
    @manishapurohit8667 4 года назад +1

    👍👍

  • @AkshayRaut-005
    @AkshayRaut-005 3 месяца назад

    Question - how did you derived directly that there is no SR or RR conflict , is there any shortcut how did you know by just looking at Collection of item diagram ?

  • @sridevis2879
    @sridevis2879 2 года назад +1

    Whether in i0 state, we should add 5&6 production ???

  • @aswinkrishnar1987
    @aswinkrishnar1987 2 года назад +3

    In I0 why didn't we add A and B productions ?

  • @tonmoyhasan4584
    @tonmoyhasan4584 Год назад +5

    hi sir, in the First I0 shouldnt we also include the production rule for A -> c and B -> d ?????????

    • @himanshushukla8977
      @himanshushukla8977 Год назад +1

      No, because there is .S and any production of S doesn't have A/B at start. So because .A or .B aren't present they won't be expanded.

  • @lalitkumar8445
    @lalitkumar8445 2 года назад +1

    Hi sir, @5:55 u took first () of d,$ as d only......why we not took as d,$ ?

    • @itachi3221
      @itachi3221 2 года назад

      because the if you have to take a first and there is an identifier like +,d,a,*,etc. then you only consider the first identifier as the only first. Here d is an identifier therefore only d is taken as first.

  • @chiragsahasrabudhe6113
    @chiragsahasrabudhe6113 3 года назад +2

    in above example there are two inadequate states

  • @SaddamHussain-ly8ld
    @SaddamHussain-ly8ld 4 года назад +4

    Sir, In I-0 box ,why you not adding production rule of A and B

    • @SaddamHussain-ly8ld
      @SaddamHussain-ly8ld 4 года назад

      In I-0 , we write all production starting with . Symbol

    • @SaddamHussain-ly8ld
      @SaddamHussain-ly8ld 4 года назад

      Then why?????

    • @Nitinkumar-kb8jn
      @Nitinkumar-kb8jn 4 года назад

      Yes it right question and i have also doubt 🤔🤔🤔

    • @atulkrishnan4673
      @atulkrishnan4673 3 года назад +2

      I0 contains the closure of augmented grammar...what that means is that it contains all the productions of start symbol with dot AND the expansion of those variables which has a dot to its left side. So when you put dot symbol to the start symbol productions, all those dots are either to the left of S' or a terminal. So we don't need to write the production of A and B. That's all

    • @muhammadabdullahfiaz6438
      @muhammadabdullahfiaz6438 3 года назад +1

      @@atulkrishnan4673 Thank You

  • @manish_s9283
    @manish_s9283 4 года назад +1

    CLR won't have SR/RR conflict ever? or it's just for this grammar?

  • @aesthetic_shobiz_life
    @aesthetic_shobiz_life 3 года назад +2

    Plz tell CLR and CLR(1) are same or not

  • @ishitasingh892
    @ishitasingh892 4 года назад +31

    Sir where can we get the CLR parsing table for this very example?

    • @akashs8052
      @akashs8052 2 года назад

      Yes

    • @zaidshareef7146
      @zaidshareef7146 2 года назад

      @@akashs8052 where , can u share the link

    • @शुभराज-ङ1ल
      @शुभराज-ङ1ल 2 года назад +3

      Go to the video link of LR0 or SLR1 the difference is only to write the reduce move in whole row in a parsing table in LR0 and write the reduce in only at the left of its follow for Slr 1.. And difference is only for the clr1 is to write the reduce move only at look ahead symbols.

  • @Nitinkumar-kb8jn
    @Nitinkumar-kb8jn 4 года назад +10

    Sir I have a doubt can you tell me that why is not add Production of A and B in I0 Canonical 🤔

    • @jonahcoutinho7527
      @jonahcoutinho7527 3 года назад +6

      there is no dot before a A or B from the S productions.

  • @angadtewari6018
    @angadtewari6018 2 года назад +2

    Sir , A -> c ka kya karna hai

  • @Kafka24680
    @Kafka24680 Месяц назад

    In initial canonical item, why didn't he take production of A and B ?

  • @neelgaming4381
    @neelgaming4381 Год назад

    Let say in A--> c if there was epsilon instead of c what should we do

  • @ManojKumar-wi2dn
    @ManojKumar-wi2dn Год назад

    if the grammar is
    S->aAAb
    A->c
    the what will be the lookhead after opening S->a . AAb,$
    will it be A or b??

  • @muhibmohammadshohan8133
    @muhibmohammadshohan8133 11 месяцев назад

    here, we are not considering A->c as A->.c and B->c as B->.c because
    First,
    In the production S'->.S, $
    after (.), there is a variable / non-terminal 'S'.
    So, we just unwrapped all the productions of 'S'
    S->.aAd, $
    S->.bBd, $
    S->.aBe, $
    S->.bAe, $
    Now, in the above 4 productions, there are terminals after (.) in each production.
    There are no non-terminals or variables after (.) in every production.
    So, we are not considering the productions A->c and B->c in item.

    • @kartikkale6301
      @kartikkale6301 10 месяцев назад

      after primary transformation check the same idea, you are getting .A and .B, that is where you will use that production

  • @shreyarawatvlogs6920
    @shreyarawatvlogs6920 10 дней назад

    RR Conflict nhi hoga kya, A-> c.,D and B->c., e me??

  • @EBKCS_MOKSHASHARMA
    @EBKCS_MOKSHASHARMA 2 года назад +7

    you should have explained its table also , i watched some other examples to understand this
    (we only put reduced state in {$,e,d} cause they were first )

  • @usmanghafoor6036
    @usmanghafoor6036 Год назад

    If we don't have any terminal or variable after the A like s->a.A,$
    How can we write in A->.c??

  • @mabdullahmabdullah8501
    @mabdullahmabdullah8501 2 года назад +1

    Sr operator precedence ka lecture ni mil ra

  • @Prajapatibrand959
    @Prajapatibrand959 2 года назад

    Tnx alot sir.. all cleared my doubts you explain very well

  • @rutujachakre191
    @rutujachakre191 4 года назад +1

    Sir plz make the video on LALR

  • @surajsrivastava
    @surajsrivastava 2 года назад +1

    Bhaiya Pura Course Upload krdo Exam hain

  • @prajg4310
    @prajg4310 2 года назад +1

    Is the table available anywhere?

  • @uroojmalik8454
    @uroojmalik8454 4 года назад +3

    Thank you so much sir... Please upload LALR soon as possible thanks

  • @fayazkhan6272
    @fayazkhan6272 Год назад +1

    sir clr mein parsing table hai kya?

  • @adityaadik9264
    @adityaadik9264 2 года назад +1

    Thank you Sir, Its very understandable

  • @harshsahu6350
    @harshsahu6350 3 года назад +2

    Pls make its parsing table

  • @nilesh69420
    @nilesh69420 4 года назад +6

    Can you provide notes of all these lectures if possible? Thank you in advance

  • @sayansardar4977
    @sayansardar4977 2 года назад

    We need that table sir......

  • @swarnimvarshneya6944
    @swarnimvarshneya6944 Год назад

    Yeh clr1 hi h na?

  • @purpleocean1689
    @purpleocean1689 4 года назад +1

    🙏

  • @adityasinghmhaskey6499
    @adityasinghmhaskey6499 Год назад

    I still have doubt regarding how to make the Parsing table for this. can you please help?

  • @samyak_1409
    @samyak_1409 4 года назад +5

    What is first($)?
    Edit: It's $ only.

  • @divyanshusahu6111
    @divyanshusahu6111 Год назад +1

    Pura prasing table toh bana dete

  • @LaraGene-l5f
    @LaraGene-l5f 4 месяца назад

    sir can you share the clr table for confirmation?

  • @ushakiranmelasthri2933
    @ushakiranmelasthri2933 2 года назад +2

    RGUKT students attendance ploxxx

  • @KavinRaj-es8fc
    @KavinRaj-es8fc Год назад

    i am definately failing compiler design paper today :).

  • @mouneydonuru2769
    @mouneydonuru2769 2 года назад

    why is first taken here and not in lr(0) and slr(1)?

  • @ishaangupta8062
    @ishaangupta8062 Год назад

    can somebody tell me
    S -> Ba/bBc/dc/bda
    B -> d
    can we make a parsing table for this grammar??
    Please someone reply !!!!

  • @deepikashekhawat6706
    @deepikashekhawat6706 9 месяцев назад

    Sir can you please tell me to draw a parse table for CLR as well

  • @tanayanaik6912
    @tanayanaik6912 Год назад +2

    can you also share or add parsing table, because at state I4 there are 2 reduce so in parsing table it will be "R5" in d and "R6" in e so in same row R5,R6 both will come ??? same doubt for state I4

  • @shubhamwairagade1078
    @shubhamwairagade1078 3 года назад +1

    A aur B ko augment krne ke baad CLR me nahi ata hai grammar

  • @AdityaSharma-er3gs
    @AdityaSharma-er3gs Год назад

    But it is left factored grammer, don't we have to remove it?

    • @akshitharao1786
      @akshitharao1786 8 месяцев назад

      LL(1) parser is sensitive to that, CLR is not. So we don't need to remove left factoring for CLR.

  • @harshittotuka0995
    @harshittotuka0995 2 года назад

    sir iski table bhi bana dete pls

  • @fatimaali-s4j
    @fatimaali-s4j Год назад

    PLEASE USE MORE EXAMPLES IN THIS AS THESE ARE VERY SIMPLE AND DOES NOT CLEARIFY IT

  • @ashishhiwale6482
    @ashishhiwale6482 4 года назад +1

    sir plxx come up with LALR fast

  • @bgmihunter2882
    @bgmihunter2882 2 года назад

    Sirji I(0) on c to nikale he nahi

  • @cozycozyvibe
    @cozycozyvibe 8 месяцев назад

    sir table to banwayi hi nahi.. te most importatnt part... uske bina kaise kaam chalega

  • @DESINEHAP
    @DESINEHAP 2 года назад

    can you please add parsing table in this please

  • @waqarzehra5413
    @waqarzehra5413 4 года назад +5

    sir please make its parse table

  • @mabdullahmabdullah8501
    @mabdullahmabdullah8501 2 года назад +1

    Pleses y lecture chay aj

  • @Shivam-lz2kv
    @Shivam-lz2kv 2 года назад

    where is the parsing table?

  • @TimothyTaylor-y8x
    @TimothyTaylor-y8x 3 месяца назад

    Parker Bridge

  • @rajarshiroy3775
    @rajarshiroy3775 Год назад

    the video is outstanding sir🤩🤩🤩 but if you could help us with the full parsing table of clr then it would be much of a help sir because I am having doubts with it 🙂🙂

  • @rajsharma2283
    @rajsharma2283 Год назад +1

    Table values are written in FOLLOW in SLR whereas reduced Look ahead in CLR