Sha256: f70fb9b88209be103ff7246fd6f512d8546a6d1973717133ea6bdbe0ee49fec0

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

#!/usr/bin/env ruby

require 'qlang'

# Q command line
require 'qlang/exec'

# Q interpreter
require 'qlang/iq'

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
hilbert-0.0.2700000 bin/qlang
qlang-0.0.27182124 bin/qlang
qlang-0.0.27182123 bin/qlang
qlang-0.0.27182122 bin/qlang
qlang-0.0.27182121 bin/qlang
qlang-0.0.27182120 bin/qlang