Skip to content

RishitGG/TAFL-Project-DerivationTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CFG Derivation & Parse Tree Generator

An interactive web-based tool for visualizing Context-Free Grammar (CFG) derivations and parse trees. This project is part of the Theory of Automata and Formal Languages (TAFL) curriculum.

Features

  • Step-by-Step Derivations: Generate detailed derivation steps for any given grammar and input string
  • Interactive Parse Trees: Visualize parse trees with D3.js for better understanding
  • Preset Examples: Pre-loaded examples including:
    • Palindrome grammars
    • Mathematical expressions
    • Balanced parentheses
  • Custom Grammars: Input your own Context-Free Grammars easily
  • Dark Mode UI: Modern, responsive interface built with Tailwind CSS

How to Use

  1. Enter or select a Context-Free Grammar
  2. Specify the target string to derive
  3. Click "Generate" to see the step-by-step derivation and parse tree
  4. Hover over tree nodes to explore the structure

Links

Tech Stack

  • HTML5
  • CSS (Tailwind CSS)
  • JavaScript (Vanilla)
  • D3.js (Data visualization)

License

This project is part of an academic coursework.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors