guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding srfi-30 comments.


From: Rob Browning
Subject: Re: Adding srfi-30 comments.
Date: Tue, 03 Sep 2002 13:14:02 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-pc-linux-gnu)

Marius Vollmer <address@hidden> writes:

> Would we be compliant if we just extend the existing code that handles
> #! !# to handle #| |# as well?  If so, I don't see why we shouldn't do
> it right away.

I'd have to do some testing to be sure.  The primary requirements seem
to be:

  - #| comments are visible to scheme as a single whitespace

  - an error is signaled if a closing is |# not found.

  - #| comments can be nested

  - R5RS <delimiter> is not extended so tokens, etc. must be separated
    from #| comments by a regular R5RS <delimiter>.  I presume this
    means that you want foo #|bar|#, not foo#|bar|#.

If our #! handling accmodates these requirements, then we're set,
though we might want to specify how #! and #| interact.  I'd be likely
to propose:

  - a multi-line comment started with #! must end with !#.
  - a multi-line comment started with #| must end with |#.
  - #! and #| comments may be nested.

and perhaps even

  - a #! multi-line comment is only permitted at the start of a scheme
    file.

though perhaps there are good reasons not to specify that...

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD




reply via email to

[Prev in Thread] Current Thread [Next in Thread]