# akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1- architecture

> Architecture diagram of the GitHub repository akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-
- Repository: https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-

## Overview

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: [`src/App.jsx`](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx) (Parser App), [`src/main.jsx`](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/main.jsx) (React Entry), [`src/ll1Parser.js`](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js) (Grammar Parsing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Interactive UI"]
  node_entry["React Entry<br/>[main.jsx]"]
  node_app["Parser App<br/>[App.jsx]"]
  node_ll1form["Grammar and Input<br/>[App.jsx]"]
  node_results["Sets, Table, Trace<br/>[App.jsx]"]
end

subgraph group_ll1["LL&#40;1&#41; Engine"]
  node_grammar["Grammar Parsing<br/>[ll1Parser.js]"]
  node_sets["FIRST and FOLLOW<br/>[ll1Parser.js]"]
  node_table["Predictive Table<br/>[ll1Parser.js]"]
  node_parser["LL&#40;1&#41; Parse Trace<br/>[ll1Parser.js]"]
end

subgraph group_rdp["RDP Visualization"]
  node_rdpview["RDP Step Visualization<br/>[App.jsx]"]
end

node_user(("Learner"))

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_user -->|"chooses mode"| node_app
node_user -->|"enters grammar"| node_ll1form
node_ll1form -->|"submits input"| node_app
node_app -->|"parses grammar"| node_grammar
node_app -->|"computes sets"| node_sets
node_app -->|"builds table"| node_table
node_app -->|"runs parser"| node_parser
node_app -->|"renders results"| node_results
node_user -->|"opens RDP"| node_rdpview

click node_entry "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/main.jsx"
click node_app "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx"
click node_ll1form "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx"
click node_results "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx"
click node_rdpview "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx"
click node_grammar "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js"
click node_sets "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js"
click node_table "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js"
click node_parser "https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_ll1form,node_results toneBlue
class node_grammar,node_sets,node_table,node_parser toneAmber
class node_rdpview toneMint
class node_user toneIndigo
```

## Components

### Interactive UI

- [React Entry](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/main.jsx): `src/main.jsx`
- [Parser App](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx): `src/App.jsx`
- [Grammar and Input](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx): `src/App.jsx`
- [Sets, Table, Trace](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx): `src/App.jsx`

### LL(1) Engine

- [Grammar Parsing](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js): `src/ll1Parser.js`
- [FIRST and FOLLOW](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js): `src/ll1Parser.js`
- [Predictive Table](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js): `src/ll1Parser.js`
- [LL(1) Parse Trace](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/ll1Parser.js): `src/ll1Parser.js`

### RDP Visualization

- [RDP Step Visualization](https://github.com/akshiy1804/interactive-gui-for-top-down-parsing-rdp-and-ll-1-/blob/main/src/App.jsx): `src/App.jsx`

### Other components

- **Learner**

## Connections

- Learner → React Entry: opens app (evidence: `src/main.jsx`)
- React Entry → Parser App: renders (evidence: `src/main.jsx`)
- Learner → Parser App: chooses mode (evidence: `src/App.jsx`)
- Learner → Grammar and Input: enters grammar (evidence: `src/App.jsx`)
- Grammar and Input → Parser App: submits input (evidence: `src/App.jsx`)
- Parser App → Grammar Parsing: parses grammar (evidence: `src/App.jsx`)
- Parser App → FIRST and FOLLOW: computes sets (evidence: `src/App.jsx`)
- Parser App → Predictive Table: builds table (evidence: `src/App.jsx`)
- Parser App → LL(1) Parse Trace: runs parser (evidence: `src/App.jsx`)
- Parser App → Sets, Table, Trace: renders results (evidence: `src/App.jsx`)
- Learner → RDP Step Visualization: opens RDP (evidence: `src/App.jsx`)
