Sha256: 0c0d75b50ba71c4ad1e7ff706c2a19e37a9abf4c42b9952d37f0e851e4519f69

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 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 '-R', '-Ruby'
  exec = Qlang::Exec::Compiler.new(ARGV)
  exec.output!
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qlang-0.0.27180000 bin/qlang
qlang-0.0.27100000 bin/qlang