For Programmers: Free Programming Magazines  


Home > Archive > Scheme > March 2008 > Advanced Interactive Shell









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Advanced Interactive Shell
solistic@gmx.net

2008-03-21, 4:42 am

Hello Group,
I'm looking for a somewhat advanced scheme shell (something like
ipython for python, but, well for scheme).

Features that I'd appreciate:

* gnu readline line editing
* visual parentheses matching (like the vim standard-plugin MatchParen
does)
* <tab> syntax completion

One solution that provides line editing is to pipe through ledit, but
then you do not have parentheses matching. DrScheme comes with
parentheses matching, but without line editing (and you can't use it
without X). I did not find any syntax completion, but this has lowest
priority (for me;).

Is there anything around?

Thx;)
Nils M Holm

2008-03-21, 8:17 am

solistic@gmx.net wrote:
> * gnu readline line editing
> * visual parentheses matching (like the vim standard-plugin MatchParen
> does)
> * <tab> syntax completion


I have once written a tiny editor that provides paren highlighting, go
to matching paren, and expression evaluation in an interactive buffer.
Having said that, it is hardly maintained, has a Wordstar-like interface
and requires T3X to compile. If you are interested anyways:

http://www.t3x.org/attic/index.html#tse

--
Nils M Holm <n m h @ t 3 x . o r g> -- http://t3x.org/nmh/
solistic@gmx.net

2008-03-21, 8:17 am

> Is there anything around?
I just discovered that Guile with readline support does exactly what I
want:

http://www.gnu.org/software/guile/m...eadline-Support
Marc Feeley

2008-03-21, 7:25 pm

On Mar 21, 5:03=A0am, solis...@gmx.net wrote:
> Hello Group,
> I'm looking for a somewhat advanced scheme shell (something like
> ipython for python, but, well for scheme).
>
> Features that I'd appreciate:
>
> * gnu readline line editing
> * visual parentheses matching (like the vim standard-plugin MatchParen
> does)
> * <tab> syntax completion
>
> One solution that provides line editing is to pipe through ledit, but
> then you do not have parentheses matching. DrScheme comes with
> parentheses matching, but without line editing (and you can't use it
> without X). I did not find any syntax completion, but this has lowest
> priority (for me;).
>
> Is there anything around?


Gambit has all of that and it highlights the input in bold to
distinguish it from the output in plain text.

Marc

Pascal J. Bourguignon

2008-03-25, 4:51 am

solistic@gmx.net writes:

> Hello Group,
> I'm looking for a somewhat advanced scheme shell (something like
> ipython for python, but, well for scheme).
>
> Features that I'd appreciate:
>
> * gnu readline line editing
> * visual parentheses matching (like the vim standard-plugin MatchParen
> does)
> * <tab> syntax completion
>
> One solution that provides line editing is to pipe through ledit, but
> then you do not have parentheses matching. DrScheme comes with
> parentheses matching, but without line editing (and you can't use it
> without X). I did not find any syntax completion, but this has lowest
> priority (for me;).
>
> Is there anything around?


I would advise:

_\| |/_
_ emacs _
/| |\



This is a nice lisp shell in general. It has even better than
readline editing. It has a very nice paredit mode to edit
parenthesized code. It also has TAB completion. And it works as well
in a terminal as in X (or other native GUIs).


Having put (setq inferior-lisp-program "/usr/bin/mzscheme") in ~/.emacs

you would launch your scheme shell with:

emacs -f inferior-lisp



Have a look at:
http://www.gnu.org/software/emacs/
http://www.emacswiki.org/cgi-bin/wiki/ParEdit
http://groups.google.com/group/comp...e010bdba239db05
http://www.emacswiki.org/cgi-bin/wiki/GaucheScheme
etc...

--
__Pascal Bourguignon__
Marek Kubica

2008-03-25, 7:30 pm

On Fri, 21 Mar 2008 02:03:39 -0700, solistic wrote:

> * gnu readline line editing

I usually wrap rlwrap (take a recent wersions, old ones don't work
properly) around mzscheme, that works.

MzScheme had readline support some time ago, but it is no longer linked
against readline due to license mismatches.

regards,
Marek
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com