pub fn parse() -> ZshProgramExpand description
!!! WARNING: RUST-ONLY HELPER !!!
No function of this name exists in Src/parse.c. This helper stands in
for the AST-pipeline top-level driver. C’s equivalents are parse_event
(c:614) and par_event (c:635), both ported separately; this entry loops
parse_program_until instead of emitting wordcode.
Parse the complete input. Direct port of parse_event /
par_list from Src/parse.c:614-720. On syntax error,
sets errflag |= ERRFLAG_ERROR (via zerr) and returns the
partial program — callers check errflag to detect failure,
matching C’s Eprog parse_event(...) + if (errflag) {...}.