Lexical analyzer Flashcards
(Kleene’s theorem) all finite automaton recognize regular language and vice versa
prove that
this can be proved by :
1/ convert regex into ε-NFA
2/ convert ε-NFA into DFA
3/ convert DFA into regex
DFA minimization
after generating the DFA from the regex,
a really big automaton is obtained, consequently, there is the same minimal automaton that accepts the same language L
why we can use finite automaton for syntactic analysis
because there some simple languages such that L() that are not regular consequently, can not be specified by regex and FA
What is the semantic of a grammar
it’ is the set of words generated by a grammar
what is ambiguous grammar
it is a grammar that has more than one derivation tree