Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dig666

#1
newLISP in the real world / Re: REPL and newline
July 10, 2010, 04:15:33 AM
I tried to explore command-event hook to inject tags before they get into reader, but at the end I ended up rolling additional tags to mark when expression was ready for evaluation, which is another wrapper around the given problem: still I need to write additional Vim script for it. But, this will also not be possible, as screen is not able to accept large content (when sent from Vim) and expression needs to be sent in parts... which will not be correctly recognized from REPL.



Anyway, guys thank you for replies and explanations. Although I would like the author himself participated this tiny discussion, looks like he nicely ignored all of this. Who knows, maybe this bug (as it obviously is) is not worth of any discussion, because it's solution probably does not fit into his vision how things should work.
#2
newLISP in the real world / Re: REPL and newline
July 09, 2010, 02:46:31 AM
Aaahh, thanks for the tip and link :) I searched a couple of times through the forum, but seems I was looking via wrong search terms.



But, this solution is still quite odd to me, and even worse, it doesn't work. Please look at these examples:

> [cmd] (define (foo a b)
 (+ a b))
[/cmd]

ERR: value expected in function + : a

and here REPL hangs expecting something (not sure what) for input:
> [cmd] (define (foo a b) (+ a b)) [/cmd]

Please Lutz, I found newLisp quite usable and irreplaceable in a number of occasions but, can we get at least somehow usable REPL ;)? Hacking readline (as you noted in given link) to append tags is IMHO wrong solution, as newLisp can be compiled without readline, which is my case for a couple of installations on a few old platforms.



> I find the command-line 'REPL' barely usable



Me too :(



Denis.
#3
newLISP in the real world / Re: REPL and newline
July 08, 2010, 01:45:56 AM
Thank you  Kazimir for this tip; I missed it somehow :)



But... this is still strange to me, as readline is capable to accept multiple lines. Also, this makes a little bit cumbersome for sending code from environment (I can hack a vim script or rlwrap script to do this, but this solution seems to me quite strange). Does this mean how evaluator is not capable to accept multiple lines without additional markers?
#4
newLISP in the real world / REPL and newline
July 07, 2010, 04:54:05 PM
Hi to all,



I'm having a strange error with REPL in a couple of last releases; when I try to type a multiline expression, I'm receiving "ERR: missing parenthesis", e.g.

> (define (foo a b)

ERR: missing parenthesis : "...(define (foo a b)                   "
>
.

Anyone knows how to solve this? Besides this obvious limitation (typing directly in REPL), my Vim/Screen setup for live evaluation becomes pretty unusable.



I'm running this on MacOS X 10.6.3 (nl-10.2.8) and tried with and without readline/utf8 support and their combination. The same happens on my linux box.



Btw. readline version does not match (or highlight) closing parenthesis in REPL; is this intentional? I know how rlwrap will provide solution for this, but what is the point of having readline support then ;)



Thanks.

Denis.