Andreas237 / UCCS_CS5700_NFA_DFA_Maker

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

process_string catch all catching too much #7

Closed Andreas237 closed 6 years ago

Andreas237 commented 6 years ago

Runs, master does the master thing. finite_automaton.py has function process_string() which is allowing all machines to pass with a null string,

Need to remove that check from general string processing. Check in another function whether there is an accept state, and if so skip that check.

Andreas237 commented 6 years ago

The length of the input string - 1 resulted in EOL character. Adjusted functions to look at input string - 2 when checking the end of the string.