pub fn parse_program(input: &str) -> Result<Program>Expand description
Parses a DSL program from text
ยงErrors
Returns AlgorithmError::NestingTooDeep when input nests more deeply
than crate::MAX_EXPRESSION_DEPTH. The check runs before the generated
parser is invoked, because Pest builds its own recursive descent that no
depth counter can be threaded through; without it, deeply nested input
overflows the thread stack and aborts the process.