A parser that builds no tree at all but calls semantic actions directly is
Answer: C
Correct answer: performing syntax directed translation during the parse
Building no tree and calling the semantic actions as each production is recognised is exactly syntax directed translation, and it is what a one-pass compiler does. It is available to both top-down and bottom-up parsers, and it detects syntax errors as readily as any other - what it gives up is the ability to make a second pass over the structure.
Please log in or register to report this question.