[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nested comments, 2
Original-Via: uk.ac.ukc; Thu, 20 Sep 90 12:09:57 BST
From: Kent Karlsson <kent>
Date: Thu, 20 Sep 90 12:22:38 +0200
To: haskell@cs.glasgow.ac.uk
Subject: Re: nested comments, 2
Original-Sender: kent%se.chalmers.cs@sunic.sunet.se
Sender: haskell-request@cs.glasgow.ac.uk
On the second alternative
-------------------------
> I like Kent's second solution better -- syntactically disallowing
> "{-" and "-}" in non-nested comments and strings -- but again the
> solution is not perfect.
Is there any technical problem?
> (One idea, by the way, is to treat {- and -} as lexemes
Maybe not, but I think that a stray -} should be detected as such,
rather than as the special syntax for negate followed by end of
definition block, which (fortunetely :-) leads to a syntax error...
/kn