#!/usr/bin/env ruby require 'qlang' include Qlang case ARGV.shift when '-i' loop do print 'Q:-> ' begin input = $stdin.gets output = Iq.execute(input) $stdout.puts output rescue => e puts e end end when '-c' compiler = Qlang::Exec::Compiler.new(ARGV) compiler.parse! end