How kakilangit/matcha works
Matcha is a native regex workbench: users edit a pattern and sample text, choose flags and an engine, and inspect live matches and replacement previews. The main window coordinates those actions and also exposes pattern saving, Rust snippet generation, and pattern explanations. The graph separates the UI, regex processing, and supporting workbench features. Edges reflect the excerpts and SOURCE INDEX references; unsampled UI details are included only where the README documents the capability.
Main entry points: app.rs Main window · main.rs App startup · editor.rs Text editor · engine.rs Regex compile
Components 10
Workbench UI
- App startup
src/main.rs - Main window
src/app.rs - Text editor
src/editor.rs
Regex Processing
- Regex compile
src/engine.rs - Match and replace
src/engine.rs
Workbench Features
- Pattern library
src/library.rs - Rust snippet
src/codegen.rs - Pattern explanation
src/explain.rs
Presentation
- Theme
src/theme.rs
Other components
- Workbench user
Connections 11
- Workbench user → App startup: launches
src/main.rs - App startup → Main window: opens
src/main.rs - Main window → Text editor: uses
src/app.rs - Main window → Regex compile: configures
src/app.rs - Main window → Match and replace: recomputes
src/app.rs - Main window → Pattern library: manages
src/app.rs - Main window → Rust snippet: generates snippet
src/app.rs - Main window → Pattern explanation: requests explanation
src/app.rs - Main window → Theme: uses
src/app.rs - Text editor → Theme: renders with
src/editor.rs - Regex compile → Match and replace: provides regex
src/engine.rs