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

[lojban] Re: Official Parser wierdness I have no intention of investigating.



On Sun, Mar 28, 2004 at 08:43:13PM -0500, John Cowan wrote:
> Robin Lee Powell scripsit:
> 
> > The official parser accepts "mi djuno le du'u" with no problems:
> > 
> > 1       terms_80        mi
> > 2       selbri_130      djuno
> > 3       tail_terms_71   VAU
> > 4       bridi_tail_50   2   3
> > 5       text_0  1       4
> > 
> > Seems rather odd to *me*.
> 
> This is a known problem: if there is a grammar error in the last two
> tokens, the yacc skeleton can't cope.  Its rule is to skip down three
> tokens before attempting error recovery, but instead it sees EOF and
> stops parsing, causing the last token or two to be quietly ignored.
> Another result of abusing error recovery.

Aaaah.  It all makes sense.

-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