G-code Preview — API Reference
    Preparing search index...

    @chestnutlabs/gcode-parser — worker-safe G-code parse core (DD-003).

    Phase 1 (#44): pure parse core. Phase 2 (#45): cooperative async driver, worker protocol v1, and the GcodeParseSession client. Streaming inputs and full limit wiring land in phase 3 (#46). Depends only on @chestnutlabs/toolpath-core.

    • Cooperative async driver (DD-003 §5.2): identical parsing semantics, but the loop processes at most yieldIntervalMs (default 50) of CPU work between explicit macrotask yields so queued cancel messages are dispatched. Progress and cancellation are surfaced through hooks.

      Parameters

      Returns Promise<AsyncParseResult>