0.0
No commit activity in last 3 years
No release in over 3 years
Crystal's design does not allow for a full traditional REPL. This one treats each line as indepentant crystal programs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

Simple Crystal REPL (crepl)

Forked version of "Simple Ruby repl" to make an even simpler crystal repl :D

Read the associated blog post for more information: http://jpsilvashy.com/posts/build-a-simple-ruby-repl.html

Installation

Install it as: $ gem install crystal-repl

Usage

The whole gem is essentially a single binary, crepl Thus use it as crepl. The limitation of this repl is that every line you type is independant from the others. Thus if you want to run multiple lines, you should concatenate them with ;

WRONG
puts 1
puts 2

RIGHT
puts 1; puts 2

Contributing

  1. Fork it ( https://github.com/ktaragorn/crystal-repl/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request