Skip to content

Commit

Permalink
Use dfa's, not nfa when converting a state machine to a state table
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Sep 26, 2009
1 parent fab0d7c commit a693fac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/hopcroft/regex/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def to_nfa
end
end

alias_method :to_machine, :to_nfa
def to_dfa
to_nfa.to_dfa
end

alias_method :to_machine, :to_dfa

private

Expand Down

0 comments on commit a693fac

Please sign in to comment.