Andreas237 / UCCS_CS5700_NFA_DFA_Maker

Finite Automaton creator and classifier based on PJ01.pdf
0 stars 0 forks source link

Running the code

Author: Andreas Slovacek Date: 23 September 2018

System Requirements

Knowing the the files

Please see ./html/index.html for Doxygen generation. It is complete documentation.

Functions are listed in the order they are called.

fa_master.py

Master script. Reads directories and passes definition files to FA constructor and string processor

finite_automaton.py

Implementation of NFA. DFA functionality handled the same as the NFA, except strings containing epsilon transitions aren't processed.

fa_logger.py

Handles file and directory operations.

cleanup.sh

Cleans residual .log and .txt files in PJ01/results

code/

Contains the Python files

results/

Contains the output .log and .txt files generated in fa_logger.py

NFA_DFA_Maker

Finite Automaton creator and classifier based on PJ01.pdf

In this project you will write a program that will read a simplified description of a finite automaton, validate it, and then simulate it on each string read from an input text file. Each string that is accepted by the DFA will be echoed to a text file; in addition each machine will have a log file prepared containing specific pieces of information.

To avoid operating-specific case-sensitivity issues, all filenames will be all lowercase. So that all of the files can be in the same directory and the following naming conventions will be used: