How akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1- works
This is a browser-based teaching tool for visualizing top-down parsing. Users choose Recursive Descent Parsing (RDP) or LL(1); the LL(1) workflow accepts a grammar and input, computes grammar analysis and a predictive table, then displays conflicts and a parsing trace with acceptance or rejection. The sampled code confirms the LL(1) calls and result display. The README documents RDP visualization and backtracking, but its implementation details are not shown; that branch is therefore kept at the documented capability level.
Main entry points: App.jsx Parser App · main.jsx React Entry · ll1Parser.js Grammar Parsing
Components 10
Interactive UI
- React Entry
src/main.jsx - Parser App
src/App.jsx - Grammar and Input
src/App.jsx - Sets, Table, Trace
src/App.jsx
LL(1) Engine
- Grammar Parsing
src/ll1Parser.js - FIRST and FOLLOW
src/ll1Parser.js - Predictive Table
src/ll1Parser.js - LL(1) Parse Trace
src/ll1Parser.js
RDP Visualization
- RDP Step Visualization
src/App.jsx
Other components
- Learner
Connections 11
- Learner → React Entry: opens app
src/main.jsx - React Entry → Parser App: renders
src/main.jsx - Learner → Parser App: chooses mode
src/App.jsx - Learner → Grammar and Input: enters grammar
src/App.jsx - Grammar and Input → Parser App: submits input
src/App.jsx - Parser App → Grammar Parsing: parses grammar
src/App.jsx - Parser App → FIRST and FOLLOW: computes sets
src/App.jsx - Parser App → Predictive Table: builds table
src/App.jsx - Parser App → LL(1) Parse Trace: runs parser
src/App.jsx - Parser App → Sets, Table, Trace: renders results
src/App.jsx - Learner → RDP Step Visualization: opens RDP
src/App.jsx