From: | Stefan Monnier <monnier+comp/compilers/news/@tequila.cs.yale.edu> |
Newsgroups: | comp.compilers |
Date: | 20 Mar 1998 23:42:27 -0500 |
Organization: | Compilers Central |
References: | 98-03-032 98-03-098 98-03-141 98-03-147 98-03-159 98-03-183 98-03-191 |
Keywords: | syntax |
sestoft@ellemose.dina.kvl.dk (Peter Sestoft) writes:
> Stefan Monnier <monnier@tequila.cs.yale.edu> writes:
> (1) What languages allow recursive comments ?
> Standard ML does:
Well, yes, that's the one I already know.
> (2) What languages enforce a "lexing" of the content of comments
> (so that an end-comment inside a string inside a comment is ignored) ?
> Standard ML doesn't. Would it be useful? It would prevent you from
> writing comments containing otherwise innocent TeX code such as
The only use I can see for recursive cvomments is to comment out a block of
code (which can itself contain comments), in which case it's nice to know that
it works also if the piece of code contains a string like "*)".
But I'm not really interested in knowing whether recursive comments are good or
not, just which languages (or rather how many languages) support such comments
in order to know whether it's worth having good support for such features in
a programming tool (like an editor, a lexer, ...).
Stefan
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.