Module: Stamina::RegLang::Node
- Included in:
- Alternative, Parenthesized, Plus, Question, Regexp, Sequence, Star, Symbol
- Defined in:
- lib/stamina-induction/stamina/reg_lang/parser/node.rb
Instance Method Summary collapse
Instance Method Details
#to_cdfa ⇒ Object
16 17 18 |
# File 'lib/stamina-induction/stamina/reg_lang/parser/node.rb', line 16 def to_cdfa to_fa.to_cdfa end |
#to_dfa ⇒ Object
12 13 14 |
# File 'lib/stamina-induction/stamina/reg_lang/parser/node.rb', line 12 def to_dfa to_fa.to_dfa end |
#to_fa ⇒ Object
5 6 7 8 9 10 |
# File 'lib/stamina-induction/stamina/reg_lang/parser/node.rb', line 5 def to_fa from, to = to_fa!(fa = Automaton.new) from.initial! to.accepting! fa end |