Re: recursive comments and Re: Techniques for writing an interpreter

Stefan Monnier <monnier+comp/compilers/news/@tequila.cs.yale.edu>
20 Mar 1998 23:42:27 -0500

          From comp.compilers

Related articles
Techniques for writing an interpreter simon@magnorth.nildram.co.uk (Simon Chapman) (1998-03-06)
Re: Techniques for writing an interpreter adrian@dcs.rhbnc.ac.uk (1998-03-12)
Re: Techniques for writing an interpreter ct7@mitre.org (W. Craig Trader) (1998-03-15)
Re: Techniques for writing an interpreter fjh@cs.mu.OZ.AU (1998-03-15)
Re: Techniques for writing an interpreter hgg9140@heckle.ca.boeing.com (1998-03-18)
recursive comments and Re: Techniques for writing an interpreter monnier+comp/compilers/news/@tequila.cs.yale.edu (Stefan Monnier) (1998-03-20)
Re: recursive comments and Re: Techniques for writing an interpreter sestoft@ellemose.dina.kvl.dk (1998-03-20)
Re: recursive comments and Re: Techniques for writing an interpreter monnier+comp/compilers/news/@tequila.cs.yale.edu (Stefan Monnier) (1998-03-20)
Re: recursive comments and Re: Techniques for writing an interpreter bjartem@idi.ntnu.no (Bjarte MayanjaØstvold) (1998-03-24)
Re: recursive comments and Re: Techniques for writing an interpreter pilz@ifi.unizh.ch (1998-03-24)
Re: recursive comments and Re: Techniques for writing an interpreter sethml@ugcs.caltech.edu (1998-03-24)
| List of all articles for this month |

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
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.