Sha256: 09aae97884b466f90a1ab977233d10707272f74d3a448a19df6e62a1d6694359

Contents?: true

Size: 647 Bytes

Versions: 3

Compression:

Stored size: 647 Bytes

Contents

require 'set'
require 'time'

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 }

  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/Finitio/default.fio', __FILE__)
  ))
end # module Finitio

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finitio-0.5.2 lib/finitio.rb
finitio-0.5.1 lib/finitio.rb
finitio-0.5.0 lib/finitio.rb