From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!news.ecp.fr!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Is there a way to do large block of source code comments Date: Wed, 1 Oct 2014 16:15:55 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8fd27434-43c2-4bd1-b72b-dd7a0ef5af75@googlegroups.com> <4407fc6e-a3a6-47d6-8f49-a5a0a1e8e0c4@googlegroups.com> <1409734659.7121.231.camel@obry.net> <1409759532.7121.252.camel@obry.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1412198158 14095 69.95.181.76 (1 Oct 2014 21:15:58 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 1 Oct 2014 21:15:58 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: number.nntp.giganews.com comp.lang.ada:189292 Date: 2014-10-01T16:15:55-05:00 List-Id: wrote in message news:alpine.DEB.2.11.1409032257530.28165@debian... On Wed, 3 Sep 2014, Pascal Obry wrote: >> Parsing a comment section???? Strange idea, I doubt this is reasonable. > >Hey, what do you think your Ada compiler is actually doing now? After >"--", it searches for the line end. This *is* parsing. Well, I'd call it lexing (it's part of the tokenizer, not the parser). But of course the line between lexing and parsing is rather arbitrary and typically depends on the implementation. For Ada, I would say that the contents of Section 2 are lexing, and everything else is parsing. That was literally true in early versions of Janus/Ada, including pragmas [they really were dealt with lexically]). For Ada 95 and later, pragmas have gotten too complex and don't belong in Section 2, but everything else there is lexical. Getting back to the topic, since comments are in Section 2, they are clearly lexical and not parsed. QED. :-) So talking about "parsing" them is definitely nonsense. But since the rule in question would be purely lexical, it certainly could have made sense. Randy.