[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lojban] Re: Just Bizarre (offical parser stuff)



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 <bapli VAU> KEI} ku) (le {nu <cpacu [(la paitn) VAU]> 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). When something weird happens, I break it into pieces, and in this case it was easy to find a problem.

The le za'i abstraction has no selbri that I can tell; the third ku terminates it and probably confuses the parser.


I suppose this accounts for why there is a vau kei ku after nu bapli.


--
"The war was supposed to be quick. We were supposed to be greeted as liberators. It was to pay for itself with oil revenues. And we were supposed to find chemical and biological weapons."
Col. Sam Gardiner USAF-retired, National Defense University