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
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.