class Panini::Automaton::NonDeterministic

Defined in:

automaton.cr

Constructors

Instance Method Summary

Instance methods inherited from class Panini::Automaton::Finite

accepts?(input_symbols) accepts?, process(input : Char)
process(input : String)
process
, reset reset, to_s(io) to_s

Constructor Detail

def self.new(states, symbols : Set(Char), transitions, start_state, accepting_states) #

[View source]

Instance Method Detail

def acceptors : Set(State) #

[View source]
def current : Set(State) #

[View source]
def epsilon_closure(state_set : Set(State)) #

[View source]
def epsilon_closure(state : State) #

[View source]
def start : Set(State) #

[View source]
def states : Set(State) #

[View source]
def symbols : Set(Char) #

[View source]
def to_dfa #

[View source]
def transitions : Hash(State, Hash(Char, Set(State))) #

[View source]