Method: Kleene::DSL#with_err

Defined in:
lib/kleene/dsl.rb

#with_err(nfa, alphabet = nfa.alphabet) ⇒ Object

always clones the given nfa and returns a new nfa with a non-final error state



56
57
58
# File 'lib/kleene/dsl.rb', line 56

def with_err(nfa, alphabet = nfa.alphabet)
  with_err!(nfa.deep_clone, alphabet)
end