Sha256: 71820f588557f2243b32e5c13cedc9aeaef918d9b4c44defc3ddd96e06134048

Contents?: true

Size: 340 Bytes

Versions: 7

Compression:

Stored size: 340 Bytes

Contents

module Stamina
  class RegLang
    module Node

      def to_fa
        from, to = to_fa!(fa = Automaton.new)
        from.initial!
        to.accepting!
        fa
      end

      def to_dfa
        to_fa.to_dfa
      end

      def to_cdfa
        to_fa.to_cdfa
      end

    end # module Node
  end # class RegLang
end # module Stamina

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stamina-induction-0.6.1 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.6.0 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.5.4 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.5.3 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.5.2 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.5.1 lib/stamina-induction/stamina/reg_lang/parser/node.rb
stamina-induction-0.5.0 lib/stamina-induction/stamina/reg_lang/parser/node.rb