Re: Syntax of Comments (was: language design tradeoffs)

crowl@jade.cs.orst.edu (Lawrence Crowl)
Thu, 24 Sep 1992 06:09:14 GMT

          From comp.compilers

Related articles
language design tradeoffs kotula@milli.cs.umn.edu (1992-09-07)
Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-21)
Re: Syntax of Comments (was: language design tradeoffs) moss@cs.umass.edu (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) firth@sei.cmu.edu (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) tmb@arolla.idiap.ch (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) jlg@cochiti.lanl.gov (1992-09-23)
Re: Syntax of Comments (was: language design tradeoffs) jimc@tau-ceti.isc-br.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) crowl@jade.cs.orst.edu (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) beshers@hks.com (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) fjh@munta.cs.mu.OZ.AU (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) delacour@parc.xerox.com (Vincent Delacour) (1992-09-24)
Re: Syntax of Comments (was: language design tradeoffs) macrakis@osf.org (1992-09-25)
[7 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers,comp.human-factors
From: crowl@jade.cs.orst.edu (Lawrence Crowl)
Organization: Oregon State University, Corvallis Oregon
Date: Thu, 24 Sep 1992 06:09:14 GMT
References: 92-09-048 92-09-144
Keywords: C, parse, syntax

moss@cs.umass.edu writes:
>..., but the problem that Jim Giles points out
>comes from treating something like /* .... /* .... */ as a valid comment.
>Some languages (notably Modula-3) allow comments to be NESTED, so that one
>can comment out a range of code that itself contains comments, without
>getting unexpected results.


Nested comments have the same problem as #ifdef, I can't tell by looking at
a chunk of code that it is commented out. I have to search upwards in the
text for a begin comment marker. Comments that only act on the current line
are easy to find.
--
    Lawrence Crowl 503-737-2554 Computer Science Department
crowl@cs.orst.edu Oregon State University
...!hplabs!hp-pcd!orstcs!crowl Corvallis, Oregon, 97331-3202
--


Post a followup to this message

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