Sha256: 1454742a3b013b3faf20bc3b116470595e15c045e4bb514ec923e5e816bd2a6e

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

module Finitio
  module Syntax
    module SeqType

      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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
finitio-0.4.1 lib/finitio/syntax/seq_type.rb
finitio-0.4.0 lib/finitio/syntax/seq_type.rb