Sha256: bad0e266edec4a64e6a5335d8ae5e83f4ff312602348faa851e22a6a12915cc8

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

#!/usr/bin/env ruby

require 'hilbert'

# Q command line
require 'hilbert/exec'

# Q interpreter
require 'hilbert/iq'

# TODO: There are vanch of todo ..
case ARGV.first
when '-i'
  loop do
    print 'Q:-> '
    begin
      input = $stdin.gets
      output = Hilbert::Iq.execute(input)
      $stdout.puts output
    rescue => e
      puts e
    end
  end
when '-v'
  puts Hilbert::VERSION
when '-r', '-rb', '-py'
  exec = Hilbert::Exec::Compiler.new(ARGV)
  exec.output!
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hilbert-0.0.2700001 bin/hilbert