Skip to content

greydelta/cyk

Repository files navigation

Contributors Forks Stargazers Issues license


Logo

chomsky

A CLI-based program to generate a CYK table for any given grammar in Chomsky Normal Form (CNF)
Explore the docs »

View Demo · Report Bug · Request Feature

About The Project

Program description:

The user will be able to either (1) load from file OR (2) input manually the regular grammar which will be checked against an input string. The first step will involve checking the starting variable of each input. Then step 2 will compare each variable to the neighbouring variable. Step 3 onwards will involve determining the initial coordinates of the position, then updating the coordinates as it traverses down each row. Each variable will be compared against the string to get the corresponding variable.

Scenarios where more than 1 variable are present to be compared can also be handled by the system. A CYK table will then be generated based on the grammar to determine if the string is part of the language.

Program flowchart:

flowchart

Program output:

output

(back to top)

Built With

Java

(back to top)

Getting Started

Using Visual Studio Code :

Prerequisites

  • Install Extension Pack for Java

Installation

  • Import Project Folder in VS Code

Usage

  1. Right click on App.java

  2. Click "Run Java"

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the GNU AGPLv3 License. See LICENSE.txt for more information.

(back to top)

Contact


Project Link: https://github.com/greydelta/cyk

(back to top)

Acknowledgments

Collaborators

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages