Lec-17: What is SDT(Syntax Directed Translation) & its Applications | Semantic Analysis
Vložit
- čas přidán 31. 05. 2024
- 👉Subscribe to our new channel: / @varunainashots
0:00 - Introduction
0:29 - SDT
2:28 - Applications of SDT
3:21 - Example
► Compiler Design(Complete Playlist):
• Compiler Design (Compl...
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
• Design and Analysis of...
►Database Management System:
• DBMS (Database Managem...
► Software Engineering:
• Software Engineering
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks:
• Computer Networks (Com...
►Operating System:
• Operating System (Comp...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Number System :
• Number system
►Theory of Computation :
• TOC(Theory of Computat...
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Programming in C :
• C Programming
►Data Structure:
• Data Structure
►Computer Architecture :
• Computer Organization ...
►Graph Theory (Complete Playlist):
• Graph Theory
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on CZcams: / gatesmashers
►Subscribe to our new channel: / @varunainashots
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmashersofficial
► Follow us on Threads: www.threads.net/@gate.smashers
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com
Sir, O/P will be 35.
According to the grammar's rule, + is having the highest priority than *.
So, 5*7 = 35.
Yes
@ Grow ad yes answer will be 35 according to SDT
Yes output will be 35
Yes
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 .
First liked your video then i started watching it. Respect you alot sir ji
Haattt bhag yaha se
Haven't seen great teacher like you before sir ji ☺️❤️
The answer for this should be 35 and not 19 because the precedence of operators increases as we go down the parse tree.
yep
Thanks buddy I didn't know anything about compiler design😂, I would have just followed his answer 😭. Please correct the mistake in description sir.
Great teaching. You always nail it.
Stay Blessed Brother ❤️
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
Sir ans is 35
According to bottom up approach ist addition then multiplication
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!!!!!
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.
thanku sir ......for giving such a amazing videos for learn
You are legend Sir the way you teach is ultimately easy to understand great help.Love from Pakistan.
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😇
Her ek lecture k neechey same comment paste karne ka faida ?
@@ghulammurtazagmdahar ap hr lecture k comments dekhty ho😂😂
Great Teaching. Just clarifying that the answer to the last question is 35 rather than 19 because & has more precedence than #
thanks sir for being consistent we love u
Sir in last question answer is 5*(3+4)=35 according to how you have drawn the parse tree.
Nice explanation
Thank you sir 🙏
Thanks a lot Sir!!!😊
Sir aap kya all rounder ho 😅😅 her kuch padha dete ho
Most awaited video🔥🔥☀️☀️
Thank you for teaching in Hinglish
How inherited attributes of SDD are use to represent the context in which a particular programming language construct is used?
Very helpful
Best explanation....
Sir kia hmy question me rules or cfg ya given hoga ya srif string ?
Thanks sir
Thank you
thanks sir
Hello sir. Woh last mai tree ke according, + pehle krna tha. Toh, 5*(3+4) hoga woh shayad. Matlab 35.
Thank you sir
Greate teaching
Thank you so much sir for this video 😊😀 ... You are an amazing teacher ☺️.... Hat's off to you 👍👍
In Which sem r u currently in !?
Sir,please upload more video of compiler design
Sir please upload all this lectures asap
thank you so much :)
Tqs sir
SDT main infix to postfix converstion pr lecture ni bny sir kya ?
wow i dont know hindi but u r teaching was insane
Huge thanks to you by learning from your many playlists finally im just about enter in final year of BS ♥️♥️
Same
Finals starting next week,,7th sem BSCS
@@rajab4187 em too✌
Sir plzzz make on video on bootstraping topic.....plz🙏
Sir please make video on dependency graph
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
No problem
Need next video ASAP
Not satisfied with this video 😅
Great job sir 🔥🔥
Sir & having higher precendance than # so & calculated first so acc to me o/p should be 35.
why is & having higher precedence, please clear my doubt
The result of the parse tree is 35.
sir hair styling tips dedo....padhana vadhana toh hota rahega.
Sir plz theory bhi bataya karo sir
please sir make and complete a playlist in software engineering .... and make a software modeling (UML) tutorial basic to advanced ... please sir ....please
@khalida didi apki ab tab 8th semester khatam ho chhuka hoga 🤔 can you guide me please didi 😞
I want a vedio on type checking
Sar sdt se Facebook ko hack se kya connection hota h
Sir, according to your 19th lecture and grammer's rule ans. should be 35 becoz of + has higher priority...
Sir, plz clear the confusion🙏
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.
❤❤❤
Sir the output will be 35 as first we have to add 3&4 =7 then multiply 5#7 =35
No he did it correctly the output is 19
@@sitcj No. + is lower than * in the tree. Hence of higher precedence.
Third phase semantic analysis phase meaning chaking
Sir live start KRiye sir
35 is correct
Sir according to parse tree answere 35 hai
❤
accoding to the parse tree it will be 35
Uploaded 1second ago
2:29
Sir pahle + kyon nahi hua?
I think + has higher precedence.
True o/p should be 35.
Yes
Sir Answere 35 ayega.
I wish I could understand Indian accent.
+ will be calculated first then *
answer should be 35
according to the tree it should have been 5*(3+4) -> 35.
3:44 am
Answer is 35 not 19
sir aapko itna saara kuch kaise pata hai?
teri tarah nalayak nhi tha ye college me islye bhag yaha chomu
@@shivanshthakur4538🤣
🤣2:11 you can write whole story on paper😃😃
Wrong answer. output will be 35 because '+' has more precedence than '*' according to the grammar.
* has more precedence than +
@@khilii conventionally yes, but here it is opposite because of the grammar rules
Try and make tutorials in English next time.
Thank u sir gand phatti padi thi
Ok, that's not English.
speak in english we donot unerstand your language.
SPEAK ENGLISSHHHHHHHH!!!!!!!!!
Thanks sir
Thank you sir