A match procedure in a recursive descent parser
Answer: C
Correct answer: checks the lookahead against an expected terminal and advances
The match procedure is the single point at which input is consumed: it compares the current token with the terminal the grammar requires, advances if they agree, and reports an error if they do not. Every terminal in every right side becomes a call to it.
Please log in or register to report this question.