Re: [scala] An uber REPL

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [scala] An uber REPL

by Steve Lianoglou-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

I think I should have posted this to the lounge, so I'm moving it  
there ...

>  Shouldn't the
> scala eclipse plugin project have code that could be reused?

I was thinking that, too ... though diving into the scala-plugin code  
would be a bit much for me and my noob-fingers atm.

I started toying with something earlier today but quickly ran into a  
wall that made me realize that spending a few hours reading through  
the PinS book would be a lot smarter than trying this blind.

> > I would love something like SLIME for Scala...

Yeah, that *would* be really cool ... I played w/ SLIME a bit when I  
was doing lisp in my AI class, it's intense ... and complex  
(understatement of the year ... hey, we're only 5 days in ;-)

> Hehe, definitely. Until then you can "M-x term" and direct emacs at
> the scala executable... That'll get the repl going and even support
> tab completion if it gets included.

I spent some time looking over jline. I have a feeling that getting in  
some form of basic (and admittedly dumb) tab completion might not  
actually be too bad (for methods of objects already declared in the  
interpreter, for instance) by registering a `ClassNameCompletor` with  
the reader that is the  
`scala.tools.nsc.interpreter.JLineReader.consoleReader`.

Unfortunately I won't have much time to look at this again until  
another week or so, but I'll be giving it a go nonetheless.

I was thinking about calling the "enhanced" repl something like  
"banister" ... cuz, you know, banisters help you claim the stairs :-)

Regards,
-steve