Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RFC 0003: Incremental Parsing Strategy

Status

Accepted

Context

Proposal target includes incremental responsiveness (<100ms for files under 5k LOC).

Decision

Adopt a staged approach:

  1. Correct baseline implementation first.
  2. Incremental optimization with InputEdit and changed-range narrowing behind benchmark evidence.

Alternatives considered

  1. Full incremental complexity from day one.
  2. Full reparse forever.

Rationale

Correctness-first minimizes early defect risk; benchmark-driven optimization avoids premature complexity.

Consequences

  • Early versions may reparse more broadly.
  • Optimization milestones are explicitly measurable.