Skip to main content

par_simple_wordcode_impl

Function par_simple_wordcode_impl 

Source
pub fn par_simple_wordcode_impl(nr: i32) -> i32
Expand description

Port of par_simple(int *cmplx, int nr) from Src/parse.c:1836-2227. Emits WC_SIMPLE + word count + interned string offsets. Returns 0 when nothing was emitted, otherwise 1 + (number of code words consumed by redirections). The full C body handles assignments (ENVSTRING/ENVARRAY), inline {var}>file brace-FDs, prefix modifiers (NOCORRECT etc), and name() { body } funcdef detection — those paths are progressively wired into the AST parser; this wordcode-emitter covers the simple cmd args... case + interleaved redirs.