Is there a REPL balancing scheme for * nix?

I need a command line (should be a command line!) Read-eval-print-loop Scheme interpreter. But rather, I need an interpreter that can at least highlight parentheses and maybe even save a story, such as programs that support reading in GNU format. All this at the REPL level.

Does it exist? Is it possible? Should I hack this in open source REPL? Am I just bad at the computer? Should I even bother?

I checked other questions for this, but I didn’t quite find what I was looking for. I tried Racket and mzscheme, but it doesn't seem to do what I want. At the moment I am using the mit-scheme, but this balancing function (like any program that they used in SICP lectures) would be almost what I could ever want.

+7
source share
1 answer

Both Racket (with readline support loaded, see below) and Chez Scheme will do this. :-) So Guile , but it will fold multi-line forms on one line (unlike Racket / Chez).


To enable parenthesis matching for Racket, add this line to your ~/.racketrc :

 (#%require readline/rep) 

and this line to ~/.inputrc :

 set blink-matching-paren on 
+8
source

All Articles