Eval multi-line code in stdin (terminal or SHELL script):
You can just write to crystal eval
's stdin if you don't provide any arguments.
Or no source argument, to be precise.
Just close stdin to eval it. Depends on you terminal, but usually Ctrl+D
.
Another way: