Function start_document_exec

Source
pub fn start_document_exec(state: &mut EiteState, exec_id: usize) -> Result<()>
Expand description

Public API: start execution for an existing prepared document (exec_id).

This replicates startDocumentExec(intExecId) from the StageL code. It executes until:

  • End of document Dc array
  • stopExecAtTick (if configured) is reached The working frame is periodically flushed (every 100 ticks) unless run headless. Escape handling and simple (line / block) comment skipping is implemented.

NOTE:

  • EL code processing (dcIsELCode branch) remains unimplemented as in the original section.
  • Rendering hooks (renderDrawContents) are no-ops here; adapt to your UI layer if needed.