[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with trailing comment in repl
From: |
Andy Wingo |
Subject: |
Re: problem with trailing comment in repl |
Date: |
Sun, 13 Feb 2011 20:19:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi Noah,
I think it makes sense to have a reader that actually returns comments.
That, to me, is the general solution: the REPL reader just treats a
comment as whitespace.
On Sun 13 Feb 2011 16:22, Noah Lavine <address@hidden> writes:
> - The quicker way: if the language in use is scheme, change the
> next-char function (repl.scm line 205) to know about comments, so that
> if it saw a semicolon, it would snarf everything until the end of the
> line.
Nasty, but a good idea I think! Care to submit a patch? :)
Andy
--
http://wingolog.org/
- problem with trailing comment in repl, Jose A. Ortega Ruiz, 2011/02/11
- Re: problem with trailing comment in repl, Andy Wingo, 2011/02/12
- Re: problem with trailing comment in repl, Jose A. Ortega Ruiz, 2011/02/12
- Re: problem with trailing comment in repl, Andy Wingo, 2011/02/12
- Re: problem with trailing comment in repl, Noah Lavine, 2011/02/13
- Re: problem with trailing comment in repl,
Andy Wingo <=
- Re: problem with trailing comment in repl, Noah Lavine, 2011/02/13
- Re: problem with trailing comment in repl, Ludovic Courtès, 2011/02/14
- Re: problem with trailing comment in repl, Noah Lavine, 2011/02/14