Sha256: ea012e8d73187cd7f66b1598274582e246a9341c20d13cf19f1e761ad07e7edb

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

module Finitio
  module Syntax
    module TypeRef

      def compile(factory)
        factory.fetch(type_name.to_s) do |n|
          raise Error, "Unknown type `#{n}`"
        end
      end

      def to_ast
        [:type_ref, type_name.to_s]
      end

    end # module TypeRef
  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/type_ref.rb
finitio-0.4.0 lib/finitio/syntax/type_ref.rb