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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,50e705cdf2767cc6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Parser interface design Date: Thu, 14 Apr 2011 19:22:43 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <4d9c8c19$0$6769$9b4e6d93@newsspool3.arcor-online.net> <1ovsbvdul64pw$.1q49g3o7n296m$.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1302826967 15562 69.95.181.76 (15 Apr 2011 00:22:47 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 15 Apr 2011 00:22:47 +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.5931 Xref: g2news1.google.com comp.lang.ada:18795 Date: 2011-04-14T19:22:43-05:00 List-Id: "Natasha Kerensikova" wrote in message news:slrniqd6if.2fnq.lithiumcat@sigil.instinctive.eu... > Hello, > > On 2011-04-13, Randy Brukardt wrote: >> "Natasha Kerensikova" wrote in message >> news:slrniqan7b.2fnq.lithiumcat@sigil.instinctive.eu... >> ... >>> These dangerous features are what made me want to cripple the parser in >>> the first place, and I thought it makes no sense to allow only a few >>> features to be disabled when I can just as easily allow all of them to >>> be independently turned on or off -- hence my example of disabling >>> emphasis. >>> >>> Are my motivations clearer now, or is it still just a whim of the >>> customer imposing a fragile design? >> >> Your intentions are fine, but I still don't think you should be trying to >> modify the behavior of the parser; that's the job for the >> "interpretation" >> layer. Maybe that's because of my compiler background, but what you are >> trying to do is very similar to a compiler, or to the Ada Standard >> formatter, or many other batch-oriented tools. > > Well, I intended to do both, modify the parser behavior and put some > logic on the interpretation/output layer. > > Isn't it the parser role to tell whether the string "