Sha256: 0606b62e5a65e202b4d9a889b36ca1631f01640d85f8ad17923bdde3db9282e5

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

#!/usr/bin/env ruby
require 'qlang'
include Qlang

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qlang-0.0.27182000 bin/qlang