How jynxnanana/nfa works
CHCCI NFA Lab is a browser-based Vue app for building and studying nondeterministic finite automata. Users edit an automaton, inspect its representations, simulate individual or batch inputs, and save or export their work. The runtime is centered on a single large component, src/App.vue, with NFA validation and simulation logic in src/nfa.js; the app entry point mounts the component and loads its styles. Several feature-specific responsibilities share the App path because the repository tree shows no separate feature modules. Simulation and some export relationships are documented but not visible in the sampled implementation, so those links are marked unverified.
Main entry points: App.vue NFA Lab UI · main.js Vue entry · style.css App styling · mobile.css Mobile styling
Components 17
App startup
- Vue entry
src/main.js - NFA Lab UI
src/App.vue - App styling
src/style.css - Mobile styling
src/mobile.css
NFA authoring
- Automaton editor
src/App.vue - State diagram
src/App.vue - Table and definition
src/App.vue - Undo and redo
src/App.vue - NFA validation
src/nfa.js
Testing and study
- String simulator
src/nfa.js - Batch tests
src/App.vue - Example NFAs
src/App.vue - Quick guide
src/App.vue
Files and persistence
- Browser storage
- JSON import/export
src/App.vue - Diagram export
src/App.vue
Other components
- User
Connections 16
- User → NFA Lab UI: uses
README.md - Vue entry → NFA Lab UI: mounts
src/main.js - Vue entry → App styling: imports
src/main.js - Vue entry → Mobile styling: imports
src/main.js - NFA Lab UI → Automaton editor: provides
README.md - Automaton editor → State diagram: visualizes
README.md - Automaton editor → Table and definition: keeps in sync
README.md - Automaton editor → Undo and redo: supports
README.md - NFA Lab UI → NFA validation: validates with
src/App.vue - NFA Lab UI → String simulator: simulates with
src/App.vue - NFA Lab UI → Batch tests: offers
README.md - NFA Lab UI → Example NFAs: loads
src/App.vue - NFA Lab UI → Quick guide: opens
src/App.vue - NFA Lab UI → Browser storage: reads and writes
README.md - NFA Lab UI → JSON import/export: imports and exports
src/App.vue - NFA Lab UI → Diagram export: exports diagram
README.md