A Flask web application that converts regular expressions to Deterministic Finite Automata (DFA), generates equivalent Context-Free Grammars (CFG), and Pushdown Automata (PDA) representations with visualization capabilities.
- ✅ Regex to DFA conversion
- ✅ DFA visualization
- ✅ CFG generation from regex or DFA
- ✅ PDA creation from CFG
- ✅ Web-based interface (Flask)
Follow these steps to get the app running locally:
git clone https://github.com/kinza7124/RegexToDFA-CFG-TOAProject.git
cd RegexToDFA-CFG-TOAProject
# Windows
python -m venv venv
venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activate
python app.py
or
flask run
Contributions are welcome! Follow these steps:
-
Fork this repository
-
Create a new branch:
git checkout -b feature-name
-
Make your changes
-
Commit:
commit -m "Describe your changes"
- Push:
git push origin feature-name
- Open a Pull Request on GitHub
This project is licensed under the MIT License.