Current implementation of executeDFA has type:
executeDFA :: DFA -> [Alpha] -> Maybe [State]
The function returns a list of states in case there is a valid path for the word given or Nothing instead. This gives us no information about the path until we get to the non-valid symbol.
Should we change the implementation for getting the path until the non-valid symbol?
Current implementation of
executeDFAhas type:The function returns a list of states in case there is a valid path for the word given or
Nothinginstead. This gives us no information about the path until we get to the non-valid symbol.Should we change the implementation for getting the path until the non-valid symbol?