blambeau/finitio-rb

View on GitHub
lib/finitio/syntax/definitions.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Finitio
  module Syntax
    module Definitions
      include Node

      def compile(system)
        captures[:type_def].each do |node|
          node.compile(system)
        end
        system
      end

      def to_ast
        captures[:type_def].map(&:to_ast)
      end

    end # module Definitions
  end # module Syntax
end # module Finitio