Sha256: 925142aeb75401cb89a602c4da79c6112cf1475cb702884f4c55f22b5835f4de
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'rubylisp/parser' require 'rubylisp/repl' USAGE = <<~HEREDOC Usage: To start a REPL session: #{File.basename $0} To run a file: #{File.basename $0} <filename> HEREDOC case ARGV.length when 0 RubyLisp::REPL::start when 1 file_contents = File.read ARGV[0] input = file_contents.gsub(/\A#!.*\n/, '') puts RubyLisp::Parser.parse(input) else puts USAGE end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbl-0.0.5 | bin/rbl |
rbl-0.0.4 | bin/rbl |