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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5412c98a3943e746 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.229 with SMTP id pz5mr2739063pbc.5.1331142545689; Wed, 07 Mar 2012 09:49:05 -0800 (PST) Path: h9ni50465pbe.0!nntp.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Verified compilers? Date: Wed, 07 Mar 2012 19:49:04 +0200 Organization: Tidorum Ltd Message-ID: <9rplcgF5a2U1@mid.individual.net> References: <9207716.776.1331054644462.JavaMail.geo-discussion-forums@ynaz38> <4edda5mav3cf$.149pbgyxl1wx5.dlg@40tude.net> Mime-Version: 1.0 X-Trace: individual.net Em1OcI7x+P0lzsO+5qPHrACzIjjk3RpoxcdlHkL1ngjFMfQhwE Cancel-Lock: sha1:VWE30PNolWMBBmRw+5WWik9fAko= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <4edda5mav3cf$.149pbgyxl1wx5.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-03-07T19:49:04+02:00 List-Id: On 12-03-07 11:12 , Dmitry A. Kazakov wrote: > I was always wondering why people bother to study grammars, LR, LL parsers > and other useless stuff. Grammars and the notion of parsing (derivations) rigorously define what a given string of characters means, in some formally defined language. That is fundamental to all programming and most computing. As far as I can see, the only alternative would be to define the meaning of a language by defining a specific interpreter as the standard interpreter, and defining the meaning of a sentence as whatever this interpreter does, when interpreting this sentence. > This is a great example of making a "science" out > of nothing and for nothing. The various types of grammars and the corresponding parsing procedures help us understand which parsing methods work for which kinds of grammars. This is useful even when one writes one's parsers by hand. But I agree that the differences between the LR(k) languages, for various values of k, are mostly irrelevent in practice. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .