Sha256: c475dbb78ea0bc93b3e5e4b4b044078d67bc027531cf94469d5369f450363f00
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 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 = 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.27182100 | bin/qlang |