Skip to main content

init_parse

Function init_parse 

Source
pub fn init_parse()
Expand description

Port of init_parse() from Src/parse.c:509. Initialize parser for a fresh 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.