multi-line statements in REBOL?
Asked Answered
A

1

6

An annoying problem I'm having with the REBOL3 REPL is that it won't accept multi-line statements. For instance, I would like to type "some_obj: make obj! [" , hit enter, and then continue the statement.

This is relevant for me as I am using a Vim plugin that sends visually selected source code to the REPL.

I have read on another StackOverflow question that REBOL2 supports multi-line statements, while REBOL3 does not. Has anyone provided a fix for this, or is there a fork with a multi-line support in the REPL?

Ardeen answered 23/4, 2015 at 2:16 Comment(4)
Mainline Rebol3 is not scheduled for good multi-line input, but Red supports it today. However... the future may not be so grim... see Ren Garden for "more than just multi-line" :-)Tender
Note: I upvoted you to try and help you get enough points to chat where you can have this and your other questions about "what's going on?" answered. However I'm also voting to close. Project roadmap questions aren't "good SO questions". (SO kind of puts us between a rock and a hard place on that.)Tender
@HostileFork Well thanks for the points :), I've been trying to get enough points to ask questions on the chat.Ardeen
Looks like you got your bump. First time's free. :-) Come join...Tender
S
1

Unfortunately Rebol 3 Console doesn't support multi line statements.

I usually write my statements into a text editor, copy them to clipboard and then do in Rebol3 console:

do to string! read clipboard://

Better put that into a function:

do-clip: does [do to string! read clipboard://]
Smitty answered 23/4, 2015 at 11:44 Comment(1)
Yeah...hm but I'm working on a remote VM, so clipboard is not readily accessible to me. I'm thinking about modifying Vim SLIME to do something like what you suggested.Ardeen

© 2022 - 2024 — McMap. All rights reserved.