Kleene::NFA
Inherits Reference < Object
Constructors
Instance methods
Determine the epsilon closure of the given state set That is, determine what states are reachable on an epsilon transition from the current state set (@current_states). Returns a Set of State objects.
Returns an array of matches found in the input string, each of which begins at the offset input_start_offset
Returns a set of State objects which are reachable through any transition path from the NFA's start_state.
This implements the subset construction algorithm presented on page 118 of the first edition of the dragon book. I found a similar explanation at: http://web.cecs.pdx.edu/~harry/compilers/slides/LexicalPart3.pdf
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.