From: Andy Wingo <wingo@pobox.com>
To: Noah Lavine <noah.b.lavine@gmail.com>
Cc: "Jose A. Ortega Ruiz" <jao@gnu.org>, guile-devel@gnu.org
Subject: Re: problem with trailing comment in repl
Date: Sun, 13 Feb 2011 20:19:54 +0100 [thread overview]
Message-ID: <m3d3mv91yd.fsf@unquote.localdomain> (raw)
In-Reply-To: <AANLkTinhQQW3UXd1HfV_cPg-_J26pkTZ=syy7AE-3hGf@mail.gmail.com> (Noah Lavine's message of "Sun, 13 Feb 2011 10:22:24 -0500")
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 <noah.b.lavine@gmail.com> 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/
next prev parent reply other threads:[~2011-02-13 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 21:15 problem with trailing comment in repl Jose A. Ortega Ruiz
2011-02-12 12:34 ` Andy Wingo
2011-02-12 13:21 ` Jose A. Ortega Ruiz
2011-02-12 14:36 ` Andy Wingo
2011-02-13 15:22 ` Noah Lavine
2011-02-13 19:19 ` Andy Wingo [this message]
2011-02-13 21:27 ` Noah Lavine
2011-02-14 10:09 ` Ludovic Courtès
2011-02-15 2:42 ` Noah Lavine
2011-03-03 22:56 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d3mv91yd.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=jao@gnu.org \
--cc=noah.b.lavine@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).