Multiple choice

Parsing is of two types: 1. top down parsing, and 2. ___________.

  1. system parsing

  2. programming parsing

  3. bottom up parsing

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In compiler theory, parsing is the process of determining the grammatical structure of a sequence of tokens. The two primary strategies for this are top-down parsing, which builds the parse tree from the root down to the leaves, and bottom-up parsing, which starts from the leaves and works up to the root. These two methods cover the vast majority of parsing algorithms used in computer science.