From rlpowell@digitalkingdom.org Sun Apr 04 14:51:02 2004 Received: with ECARTIS (v1.0.0; list lojban-list); Sun, 04 Apr 2004 14:51:02 -0700 (PDT) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.30) id 1BAFW4-0006CG-BL for lojban-list@lojban.org; Sun, 04 Apr 2004 14:50:56 -0700 Date: Sun, 4 Apr 2004 14:50:56 -0700 To: lojban-list@lojban.org Subject: [lojban] Re: Just Bizarre (offical parser stuff) Message-ID: <20040404215056.GB23652@digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org References: <20040330032550.GB6569@digitalkingdom.org> <5.2.0.9.0.20040330103207.03075ec0@pop.east.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.0.20040330103207.03075ec0@pop.east.cox.net> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Robin Lee Powell X-archive-position: 7428 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list On Tue, Mar 30, 2004 at 10:37:03AM -0500, Bob LeChevalier wrote: > At 07:25 PM 3/29/04 -0800, Robin Lee Powell wrote: > >$ echo "mi troci le nu bapli le za'i le kagni poi ponse le skami pe > >la duramater ku ku ku le nu cpacu la paitn" | parser > >3;0;00moi ke lojbo genturfa'i > >Copyright 1991,1992,1993 The Logical Languages Group, Inc. All Rights > >Reserved > >(mi {troci <[(le {nu KEI} ku) (le {nu > >KEI} KU)] VAU>}) > > > > > >That's just *wierd*. It ate like 80% of the sentence without a > >trace. > > I don't know why the stuff disappeared, but the sentence is > ungrammatical (and the YACC parser has never been good at telling > people why something is bad - it just tries to recover; the 2.33 > parser was somewhat more robust at this than the 3.0 parser, as I > recall). Just for the record, I care very little that it ate a bunch of stuff or that it's bad at error handling or whatever. What I care about, a lot, is that it responded to an ungrammatical sentence by returning a return value that indicated a successful parse. This makes it hard to do automated testing, because at any time the official parser could be generating a false positive. -Robin -- Me: http://www.digitalkingdom.org/~rlpowell/ *** I'm a *male* Robin. "Constant neocortex override is the only thing that stops us all from running out and eating all the cookies." -- Eliezer Yudkowsky http://www.lojban.org/ *** .i cimo'o prali .ui