Skip to main content

par_event

Function par_event 

Source
pub fn par_event(endtok: i32) -> bool
Expand description

Parse one event (sublist with optional separator). Direct port of zsh/Src/parse.c:635 par_event. Returns true if an event was successfully parsed, false on EOF / endtok.

zshrs port note: the C version emits wordcodes via ecadd/ set_list_code; zshrs’s parser builds AST nodes via par_sublist + par_list. Same flow, different output.