Sha256: 82222e776a0cc570835c82766f1b595047a65c857454d5cc0fd8e6511426c7bd

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

#!/usr/bin/env ruby
require 'shen_ruby'

# Load the Shen Envinronment
print "Loading..."
STDOUT.flush
start = Time.now.to_f
shen = ShenRuby::Shen.new
now = Time.now.to_f
puts ". Completed in %0.2f seconds.\n" % (now - start)

# Launch the REPL
command = :"shen-shen"
begin
  shen.__eval(Kl::Cons.list([command]))
rescue StandardError => e
  # K Lambda simple errors are already handled by the Shen REPL. Therefore
  # this must be another type of exception. Print it as such and reenter
  # the REPL without re-display the initial credits.
  puts "Ruby exception: #{e.message}"
  command = :"shen-loop"
  retry
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shen-ruby-0.1.0 bin/srrepl