in Compiler Design
772 views
4 votes
4 votes
Which of the following sentences is CORRECT?
  1. A top-down parse produces a leftmost derivation of a sentence
  2. A bottom-up parse produces a rightmost derivation of a sentence
  3. A top-down parse produces a rightmost derivation of a sentence
  4. A bottom-up parse produces a leftmost derivation of a sentence
in Compiler Design
by
772 views

1 Answer

12 votes
12 votes
Best answer
A top-down parse produces a leftmost derivation of a sentence.
A bottom-up parse produces a rightmost derivation of a sentence but in reverse.
selected by
by
Answer:

Related questions