Accepts a text file containing grammar of a language (in Chomsky Normal Form) and uses CYK Algorithm to check whether a given string can be accepted by the language
- Run Driver.java
- Enter name of text file when prompted (eg cnf_part1.txt). NOTE: The text file should be in the Project folder (ICSI409_HW2), in the same level as the src and bin folders.
- At the next prompt, enter string that you would like to check
- The program will print whether the string can be obtained or not.
- At the next prompt, enter "y" if you would like to continue testing more strings for the same CNF. Enter "n" to exit the program.