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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 126

  • @amse2024live
    @amse2024live 3 ปีที่แล้ว +193

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

    • @subhamghosh3579
      @subhamghosh3579 3 ปีที่แล้ว +3

      Yes

    • @chetanaggarwal259
      @chetanaggarwal259 3 ปีที่แล้ว +1

      @ Grow ad yes answer will be 35 according to SDT

    • @jeettewatia1018
      @jeettewatia1018 3 ปีที่แล้ว +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 .

  • @Rangofans
    @Rangofans 9 หลายเดือนก่อน +4

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

  • @Forever._.curious..
    @Forever._.curious.. 11 หลายเดือนก่อน +28

    Not satisfied with this video 😅

  • @saditya
    @saditya ปีที่แล้ว +33

    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 11 หลายเดือนก่อน +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.

  • @tariqrashid421
    @tariqrashid421 3 ปีที่แล้ว +8

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

  • @Rehmatnoreen
    @Rehmatnoreen 6 หลายเดือนก่อน +2

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

  • @bharatbhushan2197
    @bharatbhushan2197 3 ปีที่แล้ว +60

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

  • @Usurperhk
    @Usurperhk 3 ปีที่แล้ว +13

    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!!!!!

  • @shubhgajjar8782
    @shubhgajjar8782 5 หลายเดือนก่อน +2

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

  • @yanminlynch3107
    @yanminlynch3107 3 ปีที่แล้ว +2

    I wish I could understand Indian accent.

  • @AbhinayPandeyryan
    @AbhinayPandeyryan ปีที่แล้ว +2

    sir aapko itna saara kuch kaise pata hai?

    • @shivanshthakur4538
      @shivanshthakur4538 ปีที่แล้ว

      teri tarah nalayak nhi tha ye college me islye bhag yaha chomu

    • @probroindo8342
      @probroindo8342 ปีที่แล้ว

      ​@@shivanshthakur4538🤣

  • @Don78395dherre
    @Don78395dherre 9 หลายเดือนก่อน +1

    speak in english we donot unerstand your language.

  • @izhanalamkhan8127
    @izhanalamkhan8127 2 ปีที่แล้ว +4

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

  • @animationcrust1993
    @animationcrust1993 3 ปีที่แล้ว +12

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

  • @ritikabali6466
    @ritikabali6466 2 ปีที่แล้ว +3

    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.

  • @PreetamLodhi
    @PreetamLodhi 3 ปีที่แล้ว +3

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

  • @SureGATESuccess
    @SureGATESuccess 3 ปีที่แล้ว +7

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

  • @ankitasambhriya6018
    @ankitasambhriya6018 3 ปีที่แล้ว +1

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

  • @vikashdubey3776
    @vikashdubey3776 2 ปีที่แล้ว +4

    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

  • @kanakyadav2498
    @kanakyadav2498 3 ปีที่แล้ว +12

    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 ปีที่แล้ว +5

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

    • @sitcj
      @sitcj ปีที่แล้ว +1

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

  • @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

  • @continnum_radhe-radhe
    @continnum_radhe-radhe 6 หลายเดือนก่อน +1

    ❤❤❤

  • @shubhampawar1731
    @shubhampawar1731 หลายเดือนก่อน

    Sir. Apko. Maths. Nahi. Aati. Kiya. 😅. Multiply. Bhai. Nahi aata. Sir. Apko

  • @atishkumar9422
    @atishkumar9422 5 หลายเดือนก่อน

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

  • @khalida9994
    @khalida9994 3 ปีที่แล้ว +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 😞

  • @JoeCharlotte
    @JoeCharlotte หลายเดือนก่อน

    Anderson Barbara Wilson Scott Garcia Matthew

  • @tarunverma3335
    @tarunverma3335 3 ปีที่แล้ว +3

    Most awaited video🔥🔥☀️☀️

  • @raghavendrakulkarni9568
    @raghavendrakulkarni9568 2 ปีที่แล้ว

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

  • @polamurirajkiran5194
    @polamurirajkiran5194 ปีที่แล้ว +1

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

    • @sitcj
      @sitcj ปีที่แล้ว

      No he did it correctly the output is 19

    • @smortlogician9258
      @smortlogician9258 ปีที่แล้ว

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

  • @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 6 หลายเดือนก่อน

      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.

  • @virtualheadless4764
    @virtualheadless4764 3 ปีที่แล้ว +2

    thanks sir for being consistent we love u

  • @ashutoshdash3777
    @ashutoshdash3777 3 ปีที่แล้ว +1

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

    • @anugrahmasih6347
      @anugrahmasih6347 2 ปีที่แล้ว

      why is & having higher precedence, please clear my doubt

  • @mohansahu7686
    @mohansahu7686 2 ปีที่แล้ว +1

    thank you so much :)

  • @yash1152
    @yash1152 3 หลายเดือนก่อน

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

  • @sonianarendramodi2605
    @sonianarendramodi2605 2 ปีที่แล้ว +1

    Thank you for teaching in Hinglish

  • @arunkennedy9267
    @arunkennedy9267 ปีที่แล้ว +1

    The result of the parse tree is 35.

  • @tarunverma3335
    @tarunverma3335 3 ปีที่แล้ว +1

    Uploaded 1second ago

  • @jaffarabdalla7069
    @jaffarabdalla7069 2 ปีที่แล้ว

    Try and make tutorials in English next time.

  • @khadijaafzaal5088
    @khadijaafzaal5088 3 ปีที่แล้ว

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

  • @vibhanshushukla6121
    @vibhanshushukla6121 ปีที่แล้ว

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

  • @ordinarygirlwithdreamywing4576
    @ordinarygirlwithdreamywing4576 3 ปีที่แล้ว +1

    Thank you

  • @Chandankumar-qw6hb
    @Chandankumar-qw6hb 2 ปีที่แล้ว

    Third phase semantic analysis phase meaning chaking

  • @xXmayank.kumarXx
    @xXmayank.kumarXx 10 หลายเดือนก่อน

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

    • @khilii
      @khilii 4 หลายเดือนก่อน

      * has more precedence than +

    • @xXmayank.kumarXx
      @xXmayank.kumarXx 4 หลายเดือนก่อน

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

  • @FreyXFI
    @FreyXFI ปีที่แล้ว

    3:44 am

  • @nishantraj7542
    @nishantraj7542 2 ปีที่แล้ว

    Sar sdt se Facebook ko hack se kya connection hota h

  • @shahinparween3496
    @shahinparween3496 3 ปีที่แล้ว +1

    Thank you sir

  • @035_shubhamrai2
    @035_shubhamrai2 ปีที่แล้ว

    + will be calculated first then *

  • @sayancse
    @sayancse ปีที่แล้ว

    accoding to the parse tree it will be 35

  • @takwirultayasur1944
    @takwirultayasur1944 3 ปีที่แล้ว

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

  • @manishagupta4821
    @manishagupta4821 ปีที่แล้ว

    Sir please make video on dependency graph

  • @nithigd1014
    @nithigd1014 2 ปีที่แล้ว

    wow i dont know hindi but u r teaching was insane

  • @neetujoshi4556
    @neetujoshi4556 2 ปีที่แล้ว

    Sir according to parse tree answere 35 hai

  • @SbkSbk-t6k
    @SbkSbk-t6k 11 หลายเดือนก่อน

    I want a vedio on type checking

  • @Rafaysher
    @Rafaysher 3 ปีที่แล้ว

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

  • @_ankitojha21
    @_ankitojha21 3 ปีที่แล้ว +1

    Best explanation....

  • @davidspleentery7172
    @davidspleentery7172 ปีที่แล้ว

    Ok, that's not English.

  • @naturelove6425
    @naturelove6425 หลายเดือนก่อน

    Killed it 🔥

  • @DevusReji
    @DevusReji 3 ปีที่แล้ว +1

    Thanks sir

  • @anilyadav-th5ov
    @anilyadav-th5ov 2 ปีที่แล้ว

    Sir plz theory bhi bataya karo sir

  • @deecode11
    @deecode11 2 ปีที่แล้ว

    answer should be 35

  • @akankshatripathi4263
    @akankshatripathi4263 3 ปีที่แล้ว

    Sir,please upload more video of compiler design

  • @goplay5936
    @goplay5936 2 ปีที่แล้ว

    Answer is 35 not 19

  • @sathviksrikanth7362
    @sathviksrikanth7362 7 หลายเดือนก่อน

    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 ปีที่แล้ว

      In Which sem r u currently in !?

  • @neetujoshi4556
    @neetujoshi4556 2 ปีที่แล้ว

    Sir Answere 35 ayega.

  • @the_ravikant_tiwari
    @the_ravikant_tiwari 11 หลายเดือนก่อน

    Very helpful

  • @teamboatgaming4497
    @teamboatgaming4497 3 ปีที่แล้ว

    Sir please upload all this lectures asap

  • @annushasinha6207
    @annushasinha6207 4 หลายเดือนก่อน

    Nice explanation

  • @HarshSingh-hk9vs
    @HarshSingh-hk9vs 3 ปีที่แล้ว

    Sir live start KRiye sir

  • @rohanmeghale6858
    @rohanmeghale6858 5 หลายเดือนก่อน

    Thank you sir 🙏

  • @vanijain4803
    @vanijain4803 3 ปีที่แล้ว

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

  • @alishaanand7503
    @alishaanand7503 2 ปีที่แล้ว

    35 is correct

  • @simransingh6137
    @simransingh6137 2 ปีที่แล้ว

    Thank you sir

  • @020hamza2
    @020hamza2 ปีที่แล้ว

    No problem

  • @chiragrana6173
    @chiragrana6173 3 ปีที่แล้ว +1

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

  • @satyam849
    @satyam849 3 ปีที่แล้ว

    Need next video ASAP

  • @rockiggo
    @rockiggo 2 ปีที่แล้ว

    Tqs sir

  • @kajalsandhu3022
    @kajalsandhu3022 3 ปีที่แล้ว

    Greate teaching

  • @SahilKhan-yu3oh
    @SahilKhan-yu3oh 3 ปีที่แล้ว

    Thanks sir

  • @khadijaafzaal5088
    @khadijaafzaal5088 3 ปีที่แล้ว

    thanks sir

  • @noorulain8479
    @noorulain8479 2 ปีที่แล้ว +1

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

    • @rajab4187
      @rajab4187 2 ปีที่แล้ว +1

      Same
      Finals starting next week,,7th sem BSCS

    • @noorulain8479
      @noorulain8479 2 ปีที่แล้ว

      @@rajab4187 em too✌

  • @stutisflairs9622
    @stutisflairs9622 2 ปีที่แล้ว

    2:29

  • @ja55i51
    @ja55i51 ปีที่แล้ว

    Thank u sir gand phatti padi thi

    • @Ajay.m-sc1vc
      @Ajay.m-sc1vc 3 หลายเดือนก่อน

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

  • @vibhu613
    @vibhu613 2 ปีที่แล้ว

  • @mohitgehlot20
    @mohitgehlot20 3 ปีที่แล้ว

    Great job sir 🔥🔥

  • @richardasare6189
    @richardasare6189 2 ปีที่แล้ว

    SPEAK ENGLISSHHHHHHHH!!!!!!!!!