Expand description
Precedence-climbing expression parser.
Per parser_review §2 / §3:
- Recursion is depth-capped at
MAX_PAREN_DEPTHso(((...)))inputs cannot blow the OS stack. - Errors carry a
Spanwith line/column information, computed against the original source buffer (not the remaining suffix).
Structs§
- Precedence
Table - A runtime-extensible operator precedence table for the expression parser.
Constants§
- MAX_
PAREN_ DEPTH - Maximum allowed depth of parenthesis / operator recursion.
Functions§
- parse_
expression - Parses a mathematical string expression into the global DAG.
- parse_
with_ table - Parses
inputusing a caller-suppliedPrecedenceTable.