Overview
Recursive Descent Parsing mirrors the grammar in code, calling rule functions as the input structure is recognized.
Parses input with one function per grammar rule.
Compact metadata for implementation and discovery.
Recursive Descent Parsing mirrors the grammar in code, calling rule functions as the input structure is recognized.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(d)
Show parser functions calling each other to build a parse tree.
Recursive descent is easiest to maintain when the grammar shape is visible in the function structure.
What each reference supports for this entry.
Compiler textbook support for Recursive Descent Parsing's grammar analysis, parser construction, and implementation constraints.
Good next jumps from the relationship graph, ranked for useful discovery.
Parsing · Core
Pratt parsing is a recursive-descent technique specialized for expressions.
Compare with thisParsing · Core
LL Parsing is an alternative to Recursive Descent Parsing within the Top-Down Parsing family.
Compare with thisParsing · Core
Recursive descent is hand-written top-down parsing, while LR parsing is table-driven bottom-up parsing.
Compare with thisParsing · Foundation
Recursive descent parsers consume token streams produced by tokenization.
Compare with thisRecursive descent is hand-written top-down parsing, while LR parsing is table-driven bottom-up parsing.
Recursive descent parsers consume token streams produced by tokenization.