Sha256: eb905ec30d89ab51daba60edd42dacfa78c4367cd0da9fe62e527b64863d4e30
Contents?: true
Size: 782 Bytes
Versions: 5
Compression:
Stored size: 782 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' if ARGV[1] == '-zfc' Hilbert::Iq.execute('postulate zfc_analysis') print %|Hi guys, your postulating zfc_analysis is success. :) \n\n| else print %|Hi guys,thank you for using Hilbert.\nYou need to execute "postulate zfc_analysis" if you wanna do real analysis.\n\n| end 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hilbert-0.0.2700400 | bin/hilbert |
hilbert-0.0.2700320 | bin/hilbert |
hilbert-0.0.2700300 | bin/hilbert |
hilbert-0.0.2700210 | bin/hilbert |
hilbert-0.0.2700110 | bin/hilbert |