How syedmahihossen/compilertoolkit works
Compiler Toolkit is a browser-based workbench for entering grammars, inspecting analysis results, and applying grammar transformations. Its documented core capabilities are FIRST/FOLLOW computation, LL(1) table generation with conflict detection, left-recursion removal, and left factoring; the sampled JavaScript also includes a regex tester. The excerpts show grammar parsing and FIRST/FOLLOW UI wiring, plus rendering helpers. Other documented features are retained, but their internal call paths are not established by the excerpts.
Main entry points: tools.html Workbench UI · tools.js UI Event Handlers
Components 13
Workbench
- Workbench UI
tools.html - UI Event Handlers
js/tools.js - Result Rendering
js/tools.js
Grammar Processing
- Grammar Input
tools.html - Grammar Parser
js/tools.js - Symbol Identification
js/tools.js - Left Recursion Removal
js/tools.js - Left Factoring
js/tools.js
Grammar Analysis
- FIRST and FOLLOW
js/tools.js - LL(1) Table
js/tools.js - Conflict Detection
js/tools.js
Additional Tools
- Regex Tester
js/tools.js
Other components
- Student or Developer
Connections 13
- Student or Developer → Workbench UI: uses
README.md - Workbench UI → Grammar Input: accepts grammar
README.md - Workbench UI → UI Event Handlers: uses handlers
- UI Event Handlers → Grammar Parser: parses input
js/tools.js - Grammar Parser → FIRST and FOLLOW: provides productions
js/tools.js - UI Event Handlers → FIRST and FOLLOW: computes sets
js/tools.js - FIRST and FOLLOW → Symbol Identification: identifies symbols
js/tools.js - UI Event Handlers → Result Rendering: renders results
js/tools.js - Workbench UI → LL(1) Table: offers table generation
README.md - LL(1) Table → Conflict Detection: detects collisions
README.md - Workbench UI → Left Recursion Removal: offers transformation
README.md - Workbench UI → Left Factoring: offers transformation
README.md - Workbench UI → Regex Tester: offers tester