blambeau/qrb

View on GitHub
lib/finitio/syntax/type/seq_type.rb

Summary

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

      capture :type

      def compile(factory)
        elm_type = type.compile(factory)
        factory.seq(elm_type)
      end

      def to_ast
        [:seq_type, type.to_ast]
      end

    end # module SeqType
  end # module Syntax
end # module Finitio