Lec-17: What is SDT(Syntax Directed Translation) & its Applications | Semantic Analysis

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 137

  • @amse2024live
    @amse2024live 4 роки тому +216

    Sir, O/P will be 35.
    According to the grammar's rule, + is having the highest priority than *.
    So, 5*7 = 35.

    • @subhamghosh3579
      @subhamghosh3579 4 роки тому +5

      Yes

    • @chetanaggarwal259
      @chetanaggarwal259 4 роки тому +1

      @ Grow ad yes answer will be 35 according to SDT

    • @jeettewatia1018
      @jeettewatia1018 4 роки тому +1

      Yes output will be 35

    • @shuvamghosal3481
      @shuvamghosal3481 3 роки тому

      Yes

    • @sharadpandey4804
      @sharadpandey4804 3 роки тому +8

      Exactly that is what I was about to comment . Or you can say if we follow the tree structure then the + operation will be perform earlier the * operation .

  • @tariqrashid421
    @tariqrashid421 4 роки тому +18

    Sir ans is 35
    According to bottom up approach ist addition then multiplication

  • @ritikabali6466
    @ritikabali6466 2 роки тому +5

    just wait for 2-3 days and see how your subscriber count will take a huge jump. becoz its exam time here :) (and you deserve every bit of it) you are our only hope in exams. THANK YOU FOR DOING GOD's WORK.

  • @kanakyadav2498
    @kanakyadav2498 4 роки тому +16

    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😇

    • @ghulammurtazagmdahar
      @ghulammurtazagmdahar 2 роки тому +5

      Her ek lecture k neechey same comment paste karne ka faida ?

    • @Zynbahxn
      @Zynbahxn Рік тому +1

      @@ghulammurtazagmdahar ap hr lecture k comments dekhty ho😂😂

  • @izhanalamkhan8127
    @izhanalamkhan8127 3 роки тому +5

    You are legend Sir the way you teach is ultimately easy to understand great help.Love from Pakistan.

  • @bharatbhushan2197
    @bharatbhushan2197 4 роки тому +63

    First liked your video then i started watching it. Respect you alot sir ji

  • @Usurperhk
    @Usurperhk 4 роки тому +16

    6:12
    + production is defined below the production of * so it has higher priority than *, as a result the answer will be (5*(3+4)) = 35.
    Please cross check!!!!!

    • @Likhita-h1l
      @Likhita-h1l 2 місяці тому

      Dude, how do u know it? Suggest me some videos or something on compiler design. I literally don't know anything about cd😢

    • @varshaadhyaru409
      @varshaadhyaru409 Місяць тому

      𝙽𝚘 𝚜𝚒𝚛 𝚊𝚗𝚜 𝚒𝚜 𝚌𝚘𝚛𝚛𝚎𝚌𝚝

  • @vikashdubey3776
    @vikashdubey3776 2 роки тому +6

    When grammars are annotated with Semantic rules, we can club Syntax analyzer and Semantic analyzer phase into a single phase. So we can create the syntax tree and verify the semantics at the same time

  • @saditya
    @saditya 2 роки тому +38

    The answer for this should be 35 and not 19 because the precedence of operators increases as we go down the parse tree.

    • @abhirup619
      @abhirup619 Рік тому +2

      yep

    • @aryandubey4393
      @aryandubey4393 Рік тому +4

      Thanks buddy I didn't know anything about compiler design😂, I would have just followed his answer 😭. Please correct the mistake in description sir.

  • @SureGATESuccess
    @SureGATESuccess 4 роки тому +8

    Great teaching. You always nail it.
    Stay Blessed Brother ❤️

  • @animationcrust1993
    @animationcrust1993 4 роки тому +13

    Haven't seen great teacher like you before sir ji ☺️❤️

  • @tarunverma3335
    @tarunverma3335 4 роки тому +4

    Most awaited video🔥🔥☀️☀️

  • @virtualheadless4764
    @virtualheadless4764 4 роки тому +3

    thanks sir for being consistent we love u

  • @tanujasharma1262
    @tanujasharma1262 Місяць тому

    i absolutely love you energy, it never let me get bored during your lectures, thankyou so much🎀🎀

  • @atishkumar9422
    @atishkumar9422 8 місяців тому

    Great Teaching. Just clarifying that the answer to the last question is 35 rather than 19 because & has more precedence than #

  • @shubhgajjar8782
    @shubhgajjar8782 9 місяців тому +3

    Sir in last question answer is 5*(3+4)=35 according to how you have drawn the parse tree.

  • @yash1152
    @yash1152 7 місяців тому +1

    3:21 practical part of video starts here. before this, it's theory

  • @sonianarendramodi2605
    @sonianarendramodi2605 3 роки тому +1

    Thank you for teaching in Hinglish

  • @vanijain4803
    @vanijain4803 4 роки тому

    thanku sir ......for giving such a amazing videos for learn

  • @_ankitojha21
    @_ankitojha21 4 роки тому +1

    Best explanation....

  • @sathviksrikanth7362
    @sathviksrikanth7362 10 місяців тому

    Thanks a lot Sir!!!😊

  • @itikajain7729
    @itikajain7729 2 роки тому

    Thank you so much sir for this video 😊😀 ... You are an amazing teacher ☺️.... Hat's off to you 👍👍

    • @hsg15
      @hsg15 2 роки тому

      In Which sem r u currently in !?

  • @nithigd1014
    @nithigd1014 2 роки тому

    wow i dont know hindi but u r teaching was insane

  • @noorulain8479
    @noorulain8479 3 роки тому +1

    Huge thanks to you by learning from your many playlists finally im just about enter in final year of BS ♥️♥️

    • @rajab4187
      @rajab4187 3 роки тому +1

      Same
      Finals starting next week,,7th sem BSCS

    • @noorulain8479
      @noorulain8479 3 роки тому

      @@rajab4187 em too✌

  • @Rehmatnoreen
    @Rehmatnoreen 10 місяців тому +2

    Sir kia hmy question me rules or cfg ya given hoga ya srif string ?

  • @naturelove6425
    @naturelove6425 5 місяців тому

    Killed it 🔥

  • @annushasinha6207
    @annushasinha6207 7 місяців тому

    Nice explanation

  • @raghavendrakulkarni9568
    @raghavendrakulkarni9568 3 роки тому

    Hello sir. Woh last mai tree ke according, + pehle krna tha. Toh, 5*(3+4) hoga woh shayad. Matlab 35.

  • @rohanmeghale6858
    @rohanmeghale6858 9 місяців тому

    Thank you sir 🙏

  • @Rangofans
    @Rangofans Рік тому +6

    Sir aap kya all rounder ho 😅😅 her kuch padha dete ho

    • @k2_kannu
      @k2_kannu 21 день тому

      Sir ek Engineer hain brother

  • @ravikantt45
    @ravikantt45 Рік тому

    Very helpful

  • @mohansahu7686
    @mohansahu7686 3 роки тому +1

    thank you so much :)

  • @mohitgehlot20
    @mohitgehlot20 3 роки тому

    Great job sir 🔥🔥

  • @polamurirajkiran5194
    @polamurirajkiran5194 2 роки тому +1

    Sir the output will be 35 as first we have to add 3&4 =7 then multiply 5#7 =35

    • @Zynbahxn
      @Zynbahxn Рік тому

      No he did it correctly the output is 19

    • @fasterbaiter
      @fasterbaiter Рік тому

      @@Zynbahxn No. + is lower than * in the tree. Hence of higher precedence.

  • @ordinarygirlwithdreamywing4576
    @ordinarygirlwithdreamywing4576 4 роки тому +1

    Thank you

  • @ankitasambhriya6018
    @ankitasambhriya6018 4 роки тому +1

    Sir plzzz make on video on bootstraping topic.....plz🙏

  • @kajalsandhu3022
    @kajalsandhu3022 4 роки тому

    Greate teaching

  • @shahinparween3496
    @shahinparween3496 3 роки тому +1

    Thank you sir

  • @khalida9994
    @khalida9994 4 роки тому +1

    please sir make and complete a playlist in software engineering .... and make a software modeling (UML) tutorial basic to advanced ... please sir ....please

    • @Patitapaban_sahoo
      @Patitapaban_sahoo 2 роки тому

      @khalida didi apki ab tab 8th semester khatam ho chhuka hoga 🤔 can you guide me please didi 😞

  • @jasmeensingh1350
    @jasmeensingh1350 3 роки тому +1

    Sir, according to your 19th lecture and grammer's rule ans. should be 35 becoz of + has higher priority...
    Sir, plz clear the confusion🙏

    • @AsEnIxX-wtf
      @AsEnIxX-wtf 10 місяців тому

      You have to assume two more semantic rules in order to get 35, viz.
      S -> A {S.val = A.val}
      A -> B {A.val = B.val}
      If you assume the semantic rules as given in the example, i.e.,
      S -> A {S.val = S.val * A.val}
      A -> B {A.val = A.val + B.val}
      then 5 # 3 & 4 becomes 0, assuming initial values of A & S are 0; otherwise the value of the input expression cannot be determined.
      In the 19th lecture, Sir included those two semantic rules that I've written at the top.

  • @enkvcreator3909
    @enkvcreator3909 2 роки тому

    Sir ek doubt hai plzz reply me as soon as possible
    Aap sir kisi example mei "&" ko "+" consider kr rhe hoo
    Or kisi example mei "&" ko "*"
    I can't understand what will i consider in some other questions plz reply me if its possible

  • @PreetamLodhi
    @PreetamLodhi 4 роки тому +3

    Sir pahle + kyon nahi hua?
    I think + has higher precedence.

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 9 місяців тому +1

    ❤❤❤

  • @Rafaysher
    @Rafaysher 4 роки тому

    How inherited attributes of SDD are use to represent the context in which a particular programming language construct is used?

  • @SahilKhan-yu3oh
    @SahilKhan-yu3oh 4 роки тому

    Thanks sir

  • @manishagupta4821
    @manishagupta4821 Рік тому

    Sir please make video on dependency graph

  • @akankshatripathi4263
    @akankshatripathi4263 4 роки тому

    Sir,please upload more video of compiler design

  • @arunkennedy9267
    @arunkennedy9267 Рік тому +1

    The result of the parse tree is 35.

  • @teamboatgaming4497
    @teamboatgaming4497 4 роки тому

    Sir please upload all this lectures asap

  • @_poke_rock
    @_poke_rock Місяць тому

    The answer is wrong as + comes below in productions it will be evaluated first (in bottom up fashion). therefore correct ans will be 35.

  • @ashutoshdash3777
    @ashutoshdash3777 4 роки тому +1

    Sir & having higher precendance than # so & calculated first so acc to me o/p should be 35.

    • @anugrahmasih6347
      @anugrahmasih6347 3 роки тому

      why is & having higher precedence, please clear my doubt

  • @vibhanshushukla6121
    @vibhanshushukla6121 Рік тому

    sir hair styling tips dedo....padhana vadhana toh hota rahega.

  • @khadijaafzaal5088
    @khadijaafzaal5088 4 роки тому

    SDT main infix to postfix converstion pr lecture ni bny sir kya ?

  • @Chandankumar-qw6hb
    @Chandankumar-qw6hb 2 роки тому

    Third phase semantic analysis phase meaning chaking

  • @nishantraj7542
    @nishantraj7542 2 роки тому

    Sar sdt se Facebook ko hack se kya connection hota h

  • @SbkSbk-t6k
    @SbkSbk-t6k Рік тому

    I want a vedio on type checking

  • @anilyadav-th5ov
    @anilyadav-th5ov 3 роки тому

    Sir plz theory bhi bataya karo sir

  • @neetujoshi4556
    @neetujoshi4556 2 роки тому

    Sir according to parse tree answere 35 hai

  • @AbhinayPandeyryan
    @AbhinayPandeyryan 2 роки тому +2

    sir aapko itna saara kuch kaise pata hai?

  • @sayancse
    @sayancse 2 роки тому

    accoding to the parse tree it will be 35

  • @takwirultayasur1944
    @takwirultayasur1944 3 роки тому

    🤣2:11 you can write whole story on paper😃😃

  • @Forever._.curious..
    @Forever._.curious.. Рік тому +49

    Not satisfied with this video 😅

  • @rockiggo
    @rockiggo 2 роки тому

    Tqs sir

  • @satyam849
    @satyam849 4 роки тому

    Need next video ASAP

  • @alishaanand7503
    @alishaanand7503 2 роки тому

    35 is correct

  • @020hamza2
    @020hamza2 Рік тому

    No problem

  • @chiragrana6173
    @chiragrana6173 3 роки тому +1

    according to the tree it should have been 5*(3+4) -> 35.

  • @neetujoshi4556
    @neetujoshi4556 2 роки тому

    Sir Answere 35 ayega.

  • @yanminlynch3107
    @yanminlynch3107 3 роки тому +2

    I wish I could understand Indian accent.

  • @035_shubhamrai2
    @035_shubhamrai2 Рік тому

    + will be calculated first then *

  • @stutisflairs9622
    @stutisflairs9622 3 роки тому

    2:29

  • @HarshSingh-hk9vs
    @HarshSingh-hk9vs 4 роки тому

    Sir live start KRiye sir

  • @deecode11
    @deecode11 3 роки тому

    answer should be 35

  • @aashwinkumar2242
    @aashwinkumar2242 Місяць тому

    Abrey ye lexical value kahan se aai

  • @tarunverma3335
    @tarunverma3335 4 роки тому +1

    Uploaded 1second ago

  • @xXmayank.kumarXx
    @xXmayank.kumarXx Рік тому

    Wrong answer. output will be 35 because '+' has more precedence than '*' according to the grammar.

    • @khilii
      @khilii 7 місяців тому

      * has more precedence than +

    • @xXmayank.kumarXx
      @xXmayank.kumarXx 7 місяців тому

      @@khilii conventionally yes, but here it is opposite because of the grammar rules

  • @goplay5936
    @goplay5936 3 роки тому

    Answer is 35 not 19

  • @vibhu613
    @vibhu613 3 роки тому

  • @JoeCharlotte
    @JoeCharlotte 4 місяці тому

    Anderson Barbara Wilson Scott Garcia Matthew

  • @FreyXFI
    @FreyXFI Рік тому

    3:44 am

  • @jaffarabdalla7069
    @jaffarabdalla7069 3 роки тому

    Try and make tutorials in English next time.

  • @Don78395dherre
    @Don78395dherre Рік тому +1

    speak in english we donot unerstand your language.

  • @davidspleentery7172
    @davidspleentery7172 Рік тому

    Ok, that's not English.

  • @ja55i51
    @ja55i51 Рік тому

    Thank u sir gand phatti padi thi

    • @Ajay.m-sc1vc
      @Ajay.m-sc1vc 6 місяців тому

      Kyu Bhai exam ke ek din pehle padh rha that kya😅

  • @richardasare6189
    @richardasare6189 2 роки тому

    SPEAK ENGLISSHHHHHHHH!!!!!!!!!

  • @varshaadhyaru409
    @varshaadhyaru409 Місяць тому

    𝚂𝚒𝚛 𝚊𝚗𝚜 𝚒𝚜 𝚊𝚕𝚠𝚊𝚢𝚜 𝚛𝚒𝚐𝚑𝚝 𝚊𝚗𝚜 𝚒𝚜 19 𝚒𝚜 𝚌𝚘𝚛𝚛𝚎𝚌𝚝 𝚊𝚗𝚜

  • @khadijaafzaal5088
    @khadijaafzaal5088 4 роки тому

    thanks sir

  • @DevusReji
    @DevusReji 4 роки тому +1

    Thanks sir

  • @simransingh6137
    @simransingh6137 3 роки тому

    Thank you sir