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.

    • Parse a whole G-code text into a ToolpathIR. Pure and synchronous.

      Parameters

      • input: string | Uint8Array<ArrayBufferLike>
      • opts: ParseOptions = {}

      Returns ParseResult