Consider the following statements related to compiler construction:
Which of the above statement(s) is/are correct?
option D is ryt bcoz
1) Lexical Analysis is specified by regular expressions and implemented by finite-automata.
http://user.it.uu.se/~kostis/Teaching/KT1-11/Slides/handout03.pdf
for more info go above link
2) Syntax Analysis is specified by context-free grammars and implemented by pushdown automata.
https://www.tutorialspoint.com/compiler_design/compiler_design_syntax_analysis.htm
go for it.
And undoubtedly answer is option d) Mam. :).. Opposite takes place. Lexical Analysis is implemented by Regular Expressions and implemented by Finite State Machine.
Syntax Analysis is specified by Context Free Grammar and implemented by Push Down Automata.
Refer d link below for more information Mam. :)
https://www.tutorialspoint.com/compiler_design/compiler_design_quick_guide.htm
Mam read full length explanation and I hope the descp which is perfeclty given helps you. :)
Both statement are wrong because lexical analyser uses finite automata so it uses regular grammer.
Syntax Analysis is specified by context-free grammars and implemented by pushdown automata.
Option is D
64.3k questions
77.9k answers
243k comments
79.6k users