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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Re: Parser interface design Date: Thu, 14 Apr 2011 06:55:11 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <4d9c8c19$0$6769$9b4e6d93@newsspool3.arcor-online.net> <1ovsbvdul64pw$.1q49g3o7n296m$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Thu, 14 Apr 2011 06:55:11 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Mda950WjNwNLAFOE7yJXQw"; logging-data="31912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GVUWgs/H2EYOrurvo9OMx" User-Agent: slrn/0.9.9p1 (FreeBSD) Cancel-Lock: sha1:ZnhxcnDgA1KO/mNhb/JIiTsD2ok= Xref: g2news1.google.com comp.lang.ada:18791 Date: 2011-04-14T06:55:11+00:00 List-Id: 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 "