mahshidhp / cfg-converter

A tool for converting context-free grammars to different normal forms.

Home Page:http://mahshidhp.pythonanywhere.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A tool for converting context-free grammars to different normal forms.

http://mahshidhp.pythonanywhere.com/


Languages

Language:Python 45.8%Language:JavaScript 45.0%Language:CSS 5.8%Language:HTML 3.4%