I came across few Compiler Design Doubts, Please provide your cent.
$Q_1 :$ Can lexical analyser detect some/any type of errors?
I think yes, because while scanning to identify tokens, it may be the cases that a string pattern doesn't match with any keyword (or) entry in symbol table and gives error. But a detailed explaination will be appreciated.
$Q_2:$ In which phase of compilation Scope Checking happens? I guess sematic analyser, but I have no valid explaination
$Q_3: \color{navy}{A \rightarrow Aa}$ (Left linear) $\color{navy}{A \rightarrow aA}$(Right Linear). What can be said about $\color{navy}{A \rightarrow aAb}$