#!/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