pub fn parse_context_save(ps: &mut parse_stack)Expand description
Direct port of parse_context_save(struct parse_stack *ps, int toplevel) at Src/parse.c:295.
Snapshots the lexer-side file-statics (which currently live on
lexer until Phase 7 dissolution makes them file-scope
thread_local!s) plus the pending heredoc list, plus the
wordcode-buffer state (STUB until Phase 9b). Saves Rust-only
recursion counters too so nested parses get fresh limits.
WARNING: param names don’t match C — Rust=(ps) vs C=(ps, toplevel)