Sha256: 47be06f29d63bc0ebb35e7d6155f0052674251e20e7ca3e61cc9c26d744bb749
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
#!/usr/bin/env ruby require 'hilbert' # Hilbert command line require 'hilbert/exec' # Hilbert interpreter require 'hilbert/iq' # TODO: There are vanch of todo .. case ARGV.first when '-i' loop do print 'Enjoy! -> ' begin input = $stdin.gets output = Hilbert::Iq.execute(input) $stdout.puts output rescue => e puts e end end when '-v' puts Hilbert::VERSION when '-r', '-rb', '-py' exec = Hilbert::Exec::Compiler.new(ARGV) exec.output! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hilbert-0.0.2700100 | bin/hilbert |