1.

An LR-parser can detect a syntactic error as soon as __________(a) The parsing starts(b) It is possible to do so a left-to-right scan of the input(c) It is possible to do so a right-to-left scan of the input(d) Parsing endsI have been asked this question during an online interview.Question is taken from LR Parser in chapter Bottom Up Parsing of Compiler

Answer»

The correct ANSWER is (b) It is POSSIBLE to do so a left-to-right scan of the input

Best explanation: Error is found when it the input STRING is scanned.



Discussion

No Comment Found

Related InterviewSolutions