Expand description
§StageR Main Loop (ndw / ndw_invoke) STUBS
The original JS code invoked deterministic routines sr_main, sr_tick,
sr_getExitCode with shared memory / storage / IO objects. Those engine
functions are not part of the already translated Rust. For now we provide
placeholders to preserve API shape. They can be filled in once the runtime
is ported.
Structs§
- NdwEngine
- Placeholder struct representing the (unported) StageR engine context.
Functions§
- get_
desired_ event_ notifications - Return desired event notifications for a document (empty: not yet implemented).
- get_
document_ frame - Get current document frame exported to a format. If the frame is absent, returns an empty byte vector.
- load_
and_ convert - Load, convert, and return bytes (JS loadAndConvert).
- load_
and_ run - Load and run a document (blocking until completion in original JS). Here it prepares and starts execution; actual stepping / event loop would need the still-unported runtime engine.
- load_
stored_ document - Load a stored document from path using specified input format.
Tries
pathfirst; if not found, also tries to prefix withresources/data/eite/(for bundled assets). - ndw
- Simulated main loop (ndw). Returns an exit code (currently always 0).
- ndw_
invoke - Invoke specific runtime routine (stub). Present only for API parity.
- run_
document - Run document: prepare + go.
- run_
document_ go - Start (execute) a previously prepared document.
- run_
document_ prepare - Prepare to run a document, returning an execution ID.
- run_
exec_ test - Translate of JS
runExecTest. - run_
tests_ document_ exec - Translate of JS
runTestsDocumentExec(boolV) - send_
event - Send an event to a running document (stub).
- start_
document_ exec - Public API: start execution for an existing prepared document (
exec_id). - start_
eite - Start EITE using the default startup document (“eite.sems” in “sems” format). (startEite in JS)