Commit 51c611d
committed
Implement Issue #26: Complete parser debugging utilities for AST development
✅ Created comprehensive codeprism-dev-tools crate with production-ready parser development utilities:
🔧 Core Components:
- AstVisualizer: Pretty-print syntax trees with configurable formatting and multiple output formats
- ParserValidator: Comprehensive validation of parse results with span checking and syntax analysis
- GraphVizExporter: Export ASTs to DOT format for visual analysis with clustering and styling options
- PerformanceProfiler: Real-time parsing metrics with bottleneck identification and trend analysis
- AstDiff: Compare parse results between versions with detailed change detection and similarity scoring
- DevRepl: Interactive development environment for parser debugging and exploration
📊 Technical Metrics:
- 22 comprehensive unit tests (100% passing)
- 393 total tests passing across all crates
- Full workspace integration with proper dependency management
- Rich API documentation and usage examples
- Configurable and extensible architecture
🎯 Key Features:
- Multiple AST visualization formats (Tree, List, JSON, S-Expression, Compact)
- Comprehensive parser validation (spans, edges, coverage, structure)
- Performance bottleneck detection with severity levels and recommendations
- GraphViz export with customizable styling and layout engines
- AST comparison with structural change impact analysis
- Interactive REPL with command history and real-time feedback
This implementation provides essential debugging infrastructure for productive parser development as requested in Issue #26.
Closes #261 parent 88028d1 commit 51c611d
File tree
9 files changed
+3919
-0
lines changed- crates/codeprism-dev-tools
- src
9 files changed
+3919
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments