CD | Parsers | Introduction to parsers and LL(1) parsing | Ravindrababu Ravula |Free GATE CS Classes

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

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

  • @jacksonbodra6450
    @jacksonbodra6450 8 лет назад +21

    I am an engg. student and i only study before a day of exam but on that day i was enjoying and only enjoying. then i noticed its 20'clock mid-night. holy molly .....only few hours were left for my exam. so i got fresh and smoked 1 cigarette and get on with my studies. Did not sleep the whole night and watched this video till morning and learned everything. I just wanted to thank you. If it weren't for you, i wouldn't have passed my CD exam. and now i am recommending to my juniors bout your channel and learn from your videos. thank you sir !!!

    • @aaqibhaque7194
      @aaqibhaque7194 7 лет назад +5

      This is so true with Bangladeshi students as well. Ravindra Sir jee k liye dil se dua aata hai..

    • @rahulranjan4615
      @rahulranjan4615 7 лет назад +3

      Aaqib Haque Hindi bahut accha hai aapka...

  • @hasmituchil5214
    @hasmituchil5214 8 лет назад +207

    Exam ke ek hafte pehle yahan aane wale sabhi bhai bandhuon ka swagat hai. Isse achha content kahin nahi milega. Sahi jagah aaye ho. Mann lagakar padhai karo.
    -Aap ka senior.

    • @pablochocobar08
      @pablochocobar08 7 лет назад +3

      dil ki baat kardi bhaai aapne... jaane kitne logon ki back bachaai hain iss channel ne

    • @siddharthachatterjee7372
      @siddharthachatterjee7372 7 лет назад +1

      gaar mara jaa raha hain ...inta kaise yaad rakhu...ak bhi job nahi milega aisa karke

    • @sirjansingh8355
      @sirjansingh8355 5 лет назад +2

      Exam se ek ghanta pehele aye to?

    • @utsavchaudhary1133
      @utsavchaudhary1133 5 лет назад

      @@sirjansingh8355 did you qualify your exam?

    • @girishpareek7617
      @girishpareek7617 5 лет назад +2

      Ek shaam pehle bhai😋😋

  • @sharathchandra65
    @sharathchandra65 7 лет назад +1

    sir..u are really my saviour coz..we haven't got our syllabus to this deep in our colleges..if study would be this much effective​ in every college..we wouldn't have get failed in examz..thanx alot..
    I was totally preparing from your lectures..thank u sir for your service...

  • @cameronlyall4271
    @cameronlyall4271 6 лет назад +53

    IDK Why my uni pays for lecturers. Just stick this guy on and watch everyone pass

  • @shivaliraghav8524
    @shivaliraghav8524 10 лет назад +23

    Sir.....these are really very helpful lectures.....must say u are a very good teacher.... Plz upload some more videos discussing the GATE questions. Thank u!

  • @getvasued
    @getvasued 6 лет назад +79

    Thank you RUclips, for the 1.5x feature.

    • @amitkrishnaa5440
      @amitkrishnaa5440 4 года назад +13

      You mean 2x feature? :)

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

      +1

    • @karanyadav8594
      @karanyadav8594 4 года назад +15

      Also thanks to him. He is very clear and confident.

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

      @@amitkrishnaa5440 man I feel high on symbols rn 😂😂

  • @damindharhakim7568
    @damindharhakim7568 9 лет назад +7

    Dude, Thanks! You have saved a genius from failing in this exam.
    Respect.

  • @devmishra4700
    @devmishra4700 7 лет назад +18

    LL(1) Parsers from 09:57

  • @N1ickom
    @N1ickom 6 лет назад +1

    Followed this guy's course hes excellent nailed 87 out of 100 score thanks to him perfect course explained so good

  • @apoorvarajan3735
    @apoorvarajan3735 7 лет назад +5

    I am so thankful for these lectures. They're exact upto my university course which btw sucks and so does the faculty. Thankyou so much sir for sharing your knowledge with students who desperately need it ☺

  • @sasat3257
    @sasat3257 4 года назад

    I really wish all the youth to take this kind of Highly talented people who brightened so many of student's lives rather than going behind cinema heroes 🙏

  • @NewtonCazzaro
    @NewtonCazzaro 6 лет назад +17

    I'm here because you're good at teaching compiler construction

  • @AsmarOm
    @AsmarOm 8 лет назад +5

    I cannot express how grateful I am. THANK YOU

  • @StevenAkinyemi
    @StevenAkinyemi 8 лет назад +10

    Thanks Ravindrababu Ravula. You just saved me some depression.

  • @suryaG12345
    @suryaG12345 7 лет назад +5

    anna nu thop anna nevalle na exams anni pass ayna abaaa em chptav anna
    okkasari vintae chalu oneday batting lo kuda 80% score cheyochu tqqq anna

  • @barsopiavivek
    @barsopiavivek 9 лет назад +8

    u have better concept building than my gateforum lecturer!

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

    tHOSE WhO dislike Ravindra babu's video, they might be youtuber who can not explain like sir does!
    if agree, push tHumbs uP!

  • @triggersharma2311
    @triggersharma2311 5 лет назад +19

    GOD/SAVIOUR/SOURCE OF HOPE/DEITY OF B.TECH STUDENTS

  • @girishpareek7617
    @girishpareek7617 5 лет назад +35

    Aao bhai log
    ek raat pehle shuru karte hain
    iss bhavya subject ko
    jo pure semester toh samajh aaya nahin
    Shayad aaj aa jaye.
    Give thumbs up to show the feeling of brotherhood.

  • @damndaniel111
    @damndaniel111 6 лет назад

    Sir i have passed so many exams because of you. thanks sir. u have done wonders. great job.

  • @waseemkntar2566
    @waseemkntar2566 7 лет назад +2

    A lot of examples --> a lot of understanding ... thanks Ravula

  • @atkuriajaykumar3701
    @atkuriajaykumar3701 4 года назад

    now i understood my college lecturers are waste.sir you are real talent

  • @atheeralgh9316
    @atheeralgh9316 9 лет назад +47

    i like the video, very useful. BUT the one who's filming this is getting on my nerves with constantly playing with the camera and move it right to left and vice versa!!!!!!!!!!!!!

  • @cybodrive
    @cybodrive 8 лет назад +12

    These compiler lectures are awesome!!! I would change a grammar for this lecture though, it is left recursive, A->Abc | b. Given that top down parser cannot handle left recursive grammars, this lecture could be confusing to someone.

  • @asrinivasareddy4066
    @asrinivasareddy4066 6 лет назад

    Thank you very much for explaining the content .It is of great help. I can't what the professors are saying in the class but i can understand what you are saying very clearly .

  • @ammoj8164
    @ammoj8164 7 лет назад

    thank you sir for free coaching...I pass cc because of you only.. thank you again.

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

    I a long long time ago developed a programming lenguage development system. It had a parser programming language not a parser generator. The example expr parsing formulas below are examples:
    EXPR = TERM "('+':ADD|'-':SUB) TERM !2);
    TERM = FACTOR $('*':MPY|'/':DIV)FACTOR!2);
    FACTOR = ( '(' EXPR ')' | ID | NUMBER )
    ('^' FACTOR:XPN!2) ;
    I designed and wrote compilers in the late 1960 and 1070s. What is taught today has completely ignored early compiler development systems that use TDPLs (Top Down Parser Programming Languages). I use the above terminology to explicitly distinguish them from parser generators. They do not limit you to a left or right derivation tree. You build the tree using a symbiotic stack based tree construction language. There are three stacks. The call stack holds the return address to the calling parse function. It may also hold stack frames and arguments for functions having them. Generator language functions for example. Parser functions resemble grammar rules. (They may be considered a type of analytical grammar. There three type of formule:
    Character class : formula define and name character groups.
    bin: '0'|'1';
    oct: bin|'2'|'3'|'4'|'5'|'6'|'7';
    dec: oct|'8'|'9';
    hex: dec|'a'|'b'|'c'|'d'|'e'|'f'
    |'A'|'B'|''|'D'|'E'|'F';
    Token .. formula are used to recognize variable tokens. Key words, operator and such are usually recognized using constant strings. Tree construction is accomplished using two working stacks that are I dependent from the call stack. A node object is created and pushed on the node stack using:
    :
    :ADD creates an ADD node and pushes it onto the node stack. Trees are constructed using:

  • @anubhavc36
    @anubhavc36 6 лет назад +1

    this guru hits gym hard vascularity vissible good job

  • @rubeenajamadar3575
    @rubeenajamadar3575 6 лет назад +10

    Tysm... I enjoyed ua lecture... N its really helpful.... N more ua really cute😍

  • @HimanshuMalhotra07
    @HimanshuMalhotra07 8 лет назад +58

    Explosion at 1:23! :O

  • @chetnakoul6648
    @chetnakoul6648 7 лет назад +1

    Too good... Very informative and easily understandable..Thank you 👍

  • @BDMworld
    @BDMworld 7 лет назад

    your teaching video about compiler design is osm.....

  • @rahulkhandelwal8781
    @rahulkhandelwal8781 7 лет назад +1

    Sir your explanation is awesome, don't know why we can't have a book with such simple explanation, may be you can write
    one :D .

  • @blackrocks7839
    @blackrocks7839 6 лет назад +1

    Awesome sir , Big Love big respect from Pakistan .

  • @Rebika2015
    @Rebika2015 7 лет назад +1

    All your videos may it be of Compiler or Operating System..Its just Awesome..Thanx

  • @lalaanzal5034
    @lalaanzal5034 8 лет назад

    your speeking way much nice and easy to understand you are my favourit teacher.................thanks

  • @ivanklimov979
    @ivanklimov979 4 года назад

    That is exactly what I was looking for. Thx you man. Several short lections instead of semester course. XD

  • @yogeshpawar8034
    @yogeshpawar8034 8 лет назад

    Thank you for your all videos on compiler and other subjects.

  • @dharanipriya3899
    @dharanipriya3899 7 лет назад

    your teaching is super. I can understood easily.

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

    You said that top-down parser can not have left recursion. But the second production (A->Abc) is left recursive. Can you please explain?

  • @sahilthakur6874
    @sahilthakur6874 10 лет назад +6

    Very good lectures, need more lecture

  • @BlitzToon
    @BlitzToon 6 лет назад +1

    Hello thx for your work;) Why is first(S) = c surely if A -> a | "epsilong"? c would not be the first character in all situations?? (15:00)

  • @swaathisree6830
    @swaathisree6830 6 лет назад +1

    i hope i pass this paper in this semester :(
    Thank you for teaching this subject so well.

  • @SreyRc
    @SreyRc 4 года назад

    Explained so well! Thanks a lot brother!

  • @dracomalfoy1245
    @dracomalfoy1245 6 лет назад +17

    1:23 he says "popping " and it explodes . lol

  • @whynot7432
    @whynot7432 4 года назад

    1:48 clear view of the chart

  • @AbdulBasith-ev9mf
    @AbdulBasith-ev9mf 6 лет назад

    Thankyou for great explanation.... Still I have one doubt.. Recursive descent parsing needs backtracking.. but you classified it in Top down parser without backtracking.. could you please clarify this?

  • @sajalagrawal1430
    @sajalagrawal1430 5 лет назад

    dilo me exam ki tention le kar ji rahe ho tum , to zinda ho tum

  • @csa5129
    @csa5129 4 года назад

    thank you so much sir for such a great teaching..

  • @alishbhaskar5576
    @alishbhaskar5576 10 лет назад

    useful... i like the way of teaching ideast step by step

  • @Batmanyank
    @Batmanyank 7 лет назад +1

    Life Saving. Thanks alot sir! :)

  • @rvng6
    @rvng6 6 лет назад

    Dude i hope you could create a cc in english,
    because i can't understand some of your words, Anyway good video and so helpful :)

  • @somakdas3779
    @somakdas3779 8 лет назад

    Sir, please provide 1 lecture about type checking of compiler.

  • @BDMworld
    @BDMworld 7 лет назад

    please bro suggest me the java tutorial channel in which i can learn completely.....

  • @siraa8438
    @siraa8438 6 лет назад

    Sir ure doing an amazing job but I have a confusion in this lecture video. We know that tdp cannot handle left recursive grammer but you parsed A-Abc/b using it. Kindly help me with this here.

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

    3:38 time (video) : A->Abc/b is left recursive is it valid in top down parsing

  • @gmailg1168
    @gmailg1168 5 лет назад

    I have a doubt for bottom up parsing why we use right most derivation by using left most derivation also it will come? How that come I couldn't get please help me

  • @hakunamatata4453
    @hakunamatata4453 7 лет назад

    hi, Sir, the video is superb, but there's this one doubt at 2:45 that you for TDP there should be no Ambiguous grammar, to do so we must use left recursion but you say there should be no left recursion for TDP, can you please explain this.

  • @radheshyamacholiya9210
    @radheshyamacholiya9210 6 лет назад

    Why we will add $ always and why $ is always in the follow of S. One more question if we do not have any symbol after a symbol why we go and track left hand side to calculate follow

  • @pawanpikapin
    @pawanpikapin 7 лет назад

    sir finite state machines with output are used for interpreters or what? DFA and NFA accept strings that belong to the language so they are basically a graphical representation of parsers but what about melay and moore machines? they produce output

  • @barsopiavivek
    @barsopiavivek 9 лет назад

    11:40 better explanation is parsers uses PDA ,and "$" here specifies bottom of stack

  • @cseklrcet9864
    @cseklrcet9864 4 года назад

    in exam paper this type of diagram can be drying he put a full maxs ?????

  • @assermahmoud8571
    @assermahmoud8571 10 лет назад +2

    Thank you, i want to know if python be used to perform
    this method

  • @NehaAmritsar
    @NehaAmritsar 4 года назад

    skip first 10 minutes to go directly for LL(1) parsing. :)

  • @tErMInATor97191
    @tErMInATor97191 7 лет назад +7

    Ye bnda sabko pass kraega!

  • @sabanapervin4086
    @sabanapervin4086 6 лет назад

    you are just owsome .... great knowledge

  • @keerthyreddy7778
    @keerthyreddy7778 5 лет назад

    Can u please explain the difference between top down approach and bottom up approach

  • @vivekpathak3770
    @vivekpathak3770 9 лет назад

    thankyou you explain in simple language

  • @abir95571
    @abir95571 8 лет назад

    Sir,with due respect at 7:08 u said top down parser employs left most recursion,but doesn't top down parser takes right most recursive production rules,just had a doubt :)

    • @StevenAkinyemi
      @StevenAkinyemi 8 лет назад +1

      No. TDPs use leftmost derivation, and don't confuse recursion with derivations. If the grammar is constructed properly, you can derive without recursing.

  • @maheshvarma2914
    @maheshvarma2914 9 лет назад

    this is very useful got a hope that I'll pass my exam😂 thankyouuuuu

  • @sonubieber7884
    @sonubieber7884 8 лет назад

    Ur amazing.....helped me a lot...I do love you

  • @shubhamnimiwal2108
    @shubhamnimiwal2108 10 лет назад

    very helpful lectures..... thanks for sharing....

  • @afeefarafeeque6365
    @afeefarafeeque6365 7 лет назад

    Sir , I am having doubt please clear it , its at 9:49 , why RMD in reverse?? its Still LMD in reverse na?? :(

  • @whyarewehere9555
    @whyarewehere9555 5 лет назад +1

    kabhi kabhi lgta hai sir hi bhagwaan hai

  • @KM-sf6zy
    @KM-sf6zy 3 года назад

    You're genius sir

  • @justforyou2144
    @justforyou2144 6 лет назад

    How can you convert this program (a:T; b:F; - (a | b) ^ (!b) ^ (!a)$
    ) to context free grammar. Appreciate your help.

  • @shailan7466
    @shailan7466 6 лет назад

    Nice lectures on compilers

  • @victorpopescu1228
    @victorpopescu1228 7 лет назад +1

    man u are a god thanks so much :D

  • @aymarfeed
    @aymarfeed 5 лет назад

    Great explanation! Thank u so much!!!!!!!!!!

  • @nirmalbabu9570
    @nirmalbabu9570 5 лет назад

    pl share your workout routine also amazing content

  • @Thetutorialpoint
    @Thetutorialpoint 4 года назад

    recursive descent is with backtracking, it should be recursive predictive parser

  • @amishamanjunath7816
    @amishamanjunath7816 9 лет назад

    Very helpful!! Thank you so much:)

  • @rajdeepmazumdar2760
    @rajdeepmazumdar2760 6 лет назад +2

    Sir, u are stunning, but ask your camera man to stop fidgeting

  • @ananthulanarmada8008
    @ananthulanarmada8008 9 лет назад

    hii sir u r teaching is super and thanq

  • @darshitgajjar5199
    @darshitgajjar5199 8 лет назад

    really fantastic video sar

  • @purvakashyap9354
    @purvakashyap9354 6 лет назад

    Thanku sir awsm videos Thanku again

  • @athukutti
    @athukutti 5 лет назад

    awesome lectures

  • @PoojaKumari-xt2wi
    @PoojaKumari-xt2wi 5 лет назад

    Vedio is very helpfull thanks

  • @MuhammadNadeemm_nadeem37
    @MuhammadNadeemm_nadeem37 9 лет назад +1

    next level
    Thank You :-)

  • @saadmanahmed860
    @saadmanahmed860 4 года назад

    the first terminal after derivation is called first() .

  • @rishabhsharma667
    @rishabhsharma667 6 лет назад

    Just awesome 👏✊👍

  • @dharmikthakkar8072
    @dharmikthakkar8072 6 лет назад

    Thank u so much sir u r too good....

  • @miliboy3077
    @miliboy3077 4 года назад

    What happens to the epsilon for the last two problems?

  • @mallicksuchitra9588
    @mallicksuchitra9588 6 лет назад

    I love u and I love ur teaches Style

  • @jeetsethi414
    @jeetsethi414 8 лет назад

    i do not understand ... how first of A is C ... If i consider the grammar then..first of A is B... B-> C, C->d ... so should it be C or d ??

    • @hasmituchil5214
      @hasmituchil5214 8 лет назад

      jeet sethi Hmmm.. 17:48 mistake... Follow of A would be d...

    • @aviroopbasu666
      @aviroopbasu666 8 лет назад

      No it's not wrong ! c is terminal here not a Variable !

    • @Prithviization
      @Prithviization 7 лет назад

      C is non-terminal thats why C->d is possible

  • @datta3268
    @datta3268 5 лет назад

    wow , just wow

  • @crashkidCH
    @crashkidCH 8 лет назад

    The first grammar you used as an example is left-recursive and is therefore in general not applicable for top-down parsing. I also don't see why grammars should not be ambiguous ...

    • @StevenAkinyemi
      @StevenAkinyemi 8 лет назад

      Wrong. When parsing operators (*, +, ^, & ...), for example, one needs to sort out their different levels of precedence, else one will end up with expected results.
      And if the semantics of the language has some element of associativity "(2 + 2) + 2" vs "2 + (2 + 2 )", then disambiguating a grammar is necessary.

    • @crashkidCH
      @crashkidCH 8 лет назад

      What is wrong? The fact that the first grammar is left-recursive and therefore not suitable for top down parsers (A->Abc/b)?
      You surely need to disambiguate the grammar at some point but this in general is an implementation specific thingy (which is one of the weaknesses of CFGs, requiring the concrete implementation to provide the lookahead to disambiguate), unless you use a formalism such as PEGs, isn't it?
      p.s. I don't see how your example shows the problem of operator precedence? I guess you meant something like "2 + 2 * 2" vs. "(2 + 2) * 2" ...

    • @StevenAkinyemi
      @StevenAkinyemi 8 лет назад

      I was addressing your "I also don't see why grammars should not be ambiguous" statement.
      I did mention the problem of operator precedence, which is one of the reasons you need to disambiguate, but "(2 + 2) + 2" vs "2 + (2 + 2 )" was for associativity ambiguity.
      I agree that such ambiguities are CFGs thing, but the examples he used are CFGs.

  • @saikrishna201
    @saikrishna201 9 лет назад

    very good explanation.. :)

  • @pendragon7600
    @pendragon7600 5 лет назад +2

    Love the videos. you need a new cameraman though

  • @ManojKumar-ow9ou
    @ManojKumar-ow9ou 9 лет назад

    ty sir...can u explain me pumping lemma for CFL