Skip to main content

init_parse

Function init_parse 

Source
pub fn init_parse()
Expand description

Initialize parser for a fresh parse. Direct port of zsh/Src/parse.c:509 init_parse. C source allocates a fresh wordcode buffer (ecbuf) sized EC_INIT_SIZE, resets the per-parse-call counters, and calls init_parse_status. zshrs has no flat wordcode buffer (AST is built inline) so this function reduces to init_parse_status + recursion_depth/ global_iterations clear.