Back Tracking
Top Down Parsing - Start from root + LMD
Recursive Descent
Key Points
● Recursive descent parsing is a top-down parsing technique used in the field of compiler design and syntax analysis
to analyze the structure of a given input based on a formal grammar. It involves breaking down a sequence of tokens
(usually generated by a lexer or tokenizer) into a hierarchical structure defined by the grammar rules of a
programming language or formal language.
● In recursive descent parsing, the process starts at the highest-level construct (usually the start symbol of the
grammar) and recursively works its way down to the terminal symbols (individual tokens) of the input. Each
non-terminal symbol in the grammar is associated with a parsing function, and the parsing process involves
repeatedly calling these functions based on the production rules of the grammar.