ACTalk - Introduction to Grammar and Parsing using the Recursive Descent Parser algorithm

preview_player
Показать описание
Date: Jun 09, 2015
Рекомендации по теме
Комментарии
Автор

Eric, thanks very much for this. It is an EXCELLENT newbie introduction. I watched your video and within a couple of hours I got my own recursive descent parser working for a very small grammar that I needed for a project I am working on. The way you explained this was spot on. Getting the EBNF notation correct was the hard part. Once I correctly understood my grammar it was a breeze to write the parser. And now my parser is very extensible.

thanks again.

brucej
Автор

really a good comperhensive video, I am using simiar technique for my formal languages projects with some improvements in the code (I am using Lexer class which can buffer single Lexeme object on the output with peek() and get() method to get the object and advance the tape, peek is to check the input usually in case statement where code number of the lexeme is determined but get can call only if it is confirmed by peek, also it is possible to filter the code number for more complex grammars when a few lexemes forming the set to get through next step in parser automata

radoslawjocz
Автор

thank you so much, I've been stuck on parsing!

SapphicRain
Автор

Is the quiz at 8:06 not incorrect? I think that b is additionally an allowed grammar.
t -> 'b' t -> 'b' ε -> 'b'
As there is no specified "start" symbol. Comments?

douglasheld
visit shbcf.ru