Sha256: 5751eb21d693cb65b63dc815efd73ca797dfd6c41039f88975891f5784c87776

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

module Finitio
  module Syntax
    module BuiltinType
      include Support

      def compile(factory)
        clazz = resolve_ruby_const(builtin_type_name.to_s)
        factory.builtin(clazz)
      end

      def to_ast
        [:builtin_type, builtin_type_name.to_s]
      end

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