flex - Lexical Analysis

preview_player
Показать описание
In this video, I explain flex, a very useful tool in compiler-construction, for doing phase 1 (lexical analysis / tokenization) of a source code
Рекомендации по теме
Комментарии
Автор

Please more videos like this on the domain of compilers, maybe a "Compilers from scratch" like like the Linux from Scratch series!

mayanksharma
Автор

Thanks so much. You are the first person to show how to compile flex and run it on simple example that I found <3

tobiaszwojnar
Автор

Great video !! It cleared up so many flex concepts for me, and actually got me past my fear of using flex, because I used to think it was too complicated for me.

averageyoutubeenjoyer
Автор

This is awesome. Subbed! Keep up the excellent work!

farhanyousaf
Автор

18:30. What he's talking about is something that is called `greedy matching` in some places. I.e the longest pattern is what's matched first. It is how a compiler/regex can differentiate `==` from `=` . The longer one is checked for first.

shiewhun
Автор

I have implemented lexer using same way as you said even the code is same but it is throwing error :
markdown_lexer.l:12:4: error: type name requires a specifier or qualifier
^#{1}[ \t]+.*$ { Token(H1) }
^
markdown_lexer.l:12:4: error: expected expression
2 errors generated.
make: *** [markdown_lexer.o] Error 1
rm markdown_lexer.cpp
What should I do to resolve this issue :( Please help

divyanshudwivedi
Автор

''in a much more FLEXible way'' i see what you did there

abadlibadreddine
Автор

Flex hat doch nichts mit "flexible" zu tun, sondern heißt "Fast LEXer"

HorstChristophSchreiber