Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 788 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 788 Bytes

CFG-converter

This app is a tool for converting an input context-free grammar (CFG) to its equivalent grammar in normal forms such as Chomsky normal form (CNF) and Greibach normal form (GNF).

Demo

live demo: http://mahshidhp.pythonanywhere.com

Installation

run this command in root folder of project

pip3 install -r requirements.txt

run this command in root-folder/client

npm install

Usage

run server:

run this command in root folder of project

python3 server.py

run front-end:

run this command in root-folder/client

npm start

this will open up a browser tab on http://localhost:3000 running the project

Screenshots

Chomsky normal form

Greibach normal form