Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DFA ¶
type DFA struct { States []string Alphabet []rune InitialState string AcceptingStates []string CurrentState string Transition map[string]map[rune]string }
DFA defines information about DFA
func (*DFA) IsAccepted ¶
IsAccepted checks whether the input so far is accepted
type NFA ¶
type NFA struct { States []string Alphabet []rune InitialState string AcceptingStates []string CurrentStates []string Transition map[string]map[rune][]string }
NFA defines Non Deterministic Finite Automaton
func NFAfromCSV ¶
NFAfromCSV builds an NFA from Transcition Table specified in a csv file.
func NFAfromTable ¶
NFAfromTable creates a DFA from Transition Table
func (*NFA) IsAccepted ¶
IsAccepted checks whether the input so far is accepted
Click to show internal directories.
Click to hide internal directories.