parser - Implement and verify diagram parsers
Implements a diagram type in @mmd-toolkit/parser from its specification and fixtures, including lexing, recursive-descent parsing, tests, recorded trees, and updates for Mermaid changes.
Tags
Updated: 2026-11-29Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Implement diagram lexers
- Implement recursive-descent parsers
- Define parser AST types
- Dispatch diagram parsers
- Run fixture-based parser tests
- Record parse trees and errors
- Check specification gaps
- Verify Mermaid acceptance
- Update parsers for Mermaid changes
Inputs
- Diagram specifications
- AST specifications
- Diagram fixtures
- Recorded AST files
- Recorded parse-error files
- Mermaid.js acceptance results
- Parser source files
Outputs
- Parser source changes
- AST type changes
- Fixture AST recordings
- Fixture parse-error recordings
- Test results
- Specification gap reports
- Parse acceptance results
Requirements
- Node.js runtime
- pnpm workspace
- TypeScript project
- Pinned mermaid.js
- Repository test tooling
- Access to parser packages
