How pranavi-gupta07/parse-wise works
Parse-Wise is an interactive teaching tool for operator-precedence parsing. A learner enters or selects a grammar, the app validates it, computes Leading/Trailing sets and precedence relations (including conflicts), then simulates shift-reduce parsing and can inspect a derivation tree. The graph separates the React workflow, algorithm engine, and step-specific visualizations. README documents these capabilities; some component implementations were not sampled, so their internal behavior and unshown connections are not inferred.
Main entry points: App.tsx Workflow coordinator · compilerEngine.ts Compiler engine · Step4ParseTrace.tsx Parse trace · Step1Grammar.tsx Grammar editor
Components 15
Application workflow
- Workflow coordinator
src/App.tsx - React entry point
src/main.tsx
Parsing engine
- Compiler engine
src/utils/compilerEngine.ts
Learning interface
- Grammar editor
src/components/Step1Grammar.tsx - Boundary sets
src/components/Step2LeadingTrailing.tsx - Precedence table
src/components/Step3PrecedenceTable.tsx - Parse trace
src/components/Step4ParseTrace.tsx - Derivation tree
src/components/DerivationTreeModal.tsx - Step navigation
src/components/StepperNav.tsx - Status breadcrumbs
src/components/Breadcrumbs.tsx - App header
src/components/Header.tsx - App footer
src/components/Footer.tsx - Help dialog
src/components/HelpModal.tsx - Shortcuts dialog
src/components/ShortcutsModal.tsx
Other components
- Learner
Connections 19
- Learner → Workflow coordinator: uses
README.md - React entry point → Workflow coordinator: renders
src/main.tsx - Workflow coordinator → Compiler engine: validates grammar
src/App.tsx - Workflow coordinator → Compiler engine: computes sets
src/App.tsx - Workflow coordinator → Compiler engine: builds matrix
src/App.tsx - Workflow coordinator → Grammar editor: renders
src/App.tsx - Workflow coordinator → Boundary sets: renders
src/App.tsx - Workflow coordinator → Precedence table: renders
src/App.tsx - Workflow coordinator → Parse trace: renders
src/App.tsx - Workflow coordinator → Step navigation: renders
src/App.tsx - Workflow coordinator → Status breadcrumbs: renders
src/App.tsx - Workflow coordinator → App header: renders
src/App.tsx - Workflow coordinator → App footer: renders
src/App.tsx - Workflow coordinator → Help dialog: renders
src/App.tsx - Workflow coordinator → Shortcuts dialog: renders
src/App.tsx - Grammar editor → Compiler engine: loads presets
src/components/Step1Grammar.tsx - Parse trace → Compiler engine: simulates parse
src/components/Step4ParseTrace.tsx - Parse trace → Derivation tree: opens tree
src/components/Step4ParseTrace.tsx - Derivation tree → Compiler engine: builds tree
src/components/DerivationTreeModal.tsx