1.

A bottom up parser generates __________(a) Right most derivation(b) Rightmost derivation in reverse(c) Leftmost derivation(d) Leftmost derivation in reverseThis question was posed to me during an internship interview.Query is from Bottom-Up Parsing-2 topic in section Bottom Up Parsing of Compiler

Answer»

Right option is (b) RIGHTMOST DERIVATION in reverse

Explanation: This corresponds to starting at the LEAVES of the parse tree also KNOWN as shift-reduce parsing.



Discussion

No Comment Found

Related InterviewSolutions