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

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



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.

-- 
John Cowan                              <jcowan@reutershealth.com>
http://www.ccil.org/~cowan              http://www.reutershealth.com
                Charles li reis, nostre emperesdre magnes,
                Set anz totz pleinz ad ested in Espagnes.