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 (Was: Techniques for writing an interpreter) mkgardne@cs.uiuc.edu (1998-03-20) |
From: | mkgardne@cs.uiuc.edu (Mark K. Gardner) |
Newsgroups: | comp.compilers |
Date: | 20 Mar 1998 23:42:02 -0500 |
Organization: | University of Illinois at Urbana-Champaign |
References: | 98-03-032 98-03-098 98-03-141 98-03-147 98-03-159 98-03-183 |
Keywords: | syntax |
On 20 Mar 1998 Stefan Monnier <monnier@tequila.cs.yale.edu> wrote:
>What languages allow recursive comments ?
The Oberon language does. The following is a quotation from
http://www-vs.informatik.uni-ulm.de/projekte/Oberon-2.Report/
6. Comments may be inserted between any two symbols in a program. They are
arbitrary character sequences opened by the bracket (* and closed by *).
Comments may be nested. They do not affect the meaning of a program.
^^^^^^^^^^^^^^^^^^^^^^
>What languages enforce a "lexing" of the content of comments (so that an
>end-comment inside a string inside a comment is ignored) ?
It is not clear if this implies that comments should be able to contain end
of comment delimiters in a string or not. I believe that most compiler
implementors would exclude the closing comment delimiter from the arbitrary
character sequence if for no other reason than expediency.
Mark
--
Mark K. Gardner (mkgardne@cs.uiuc.edu)
University of Illinois at Urbana-Champaign
Real-Time Systems Laboratory
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.