Sha256: 87fa5250660e2ba0e133356cf3be8433841d352a9190a9060e903de6e9b30c88

Contents?: true

Size: 828 Bytes

Versions: 3

Compression:

Stored size: 828 Bytes

Contents

require 'set'
require 'time'
require 'pathname'

module Finitio

  require_relative "finitio/version"
  require_relative "finitio/errors"
  require_relative "finitio/support"
  require_relative 'finitio/type'
  require_relative 'finitio/system'

  IDENTITY = ->(object){ object }

  ANY_TYPE = AnyType.new

  STDLIB_PATHS = [
    File.expand_path('../finitio/stdlib', __FILE__)
  ]

  def stdlib_path(path)
    STDLIB_PATHS << path
  end

  def parse(source)
    require "finitio/syntax"
    Syntax.parse(source)
  end

  def system(source)
    require "finitio/syntax"
    Syntax.compile(source)
  end

  def ast(source)
    require "finitio/syntax"
    Syntax.ast(source)
  end

  extend self

  DEFAULT_SYSTEM = system(File.read(
    File.expand_path('../finitio/stdlib/finitio/data.fio', __FILE__)
  ))
end # module Finitio

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finitio-0.7.0.pre.rc3 lib/finitio.rb
finitio-0.7.0.pre.rc2 lib/finitio.rb
finitio-0.7.0.pre.rc1 lib/finitio.rb