Lojban In General

Lojban In General


PEG-grammar/camxes and selbri negation

posts: 10

When discussing selbri negation on IRC, we noticed the following:

The CLL states:
> Negations made with "na'e" or "na'eke" also
> include within their scope any sumti attached to the brivla or tanru
> with "be" or "bei". Such attached sumti are
> considered part of the brivla or tanru

Therefore, a sentence like {mi na'e klama be fu lo birka lo zarci}
should be grouped someway similar to {mi (na'e (klama be fu lo birka))
lo zarci}. camxes however outputs the follwing parse tree:
> sentence
> |- CMAVO
> | KOhA: mi
> |- bridiTail3
> |- tanruUnit1
> | |- tanruUnit2
> | | |- CMAVO
> | | | NAhE: na'e
> | | |- BRIVLA
> | | gismu: klama
> | |- linkargs1
> | |- CMAVO
> | | BE: be
> | |- term1
> | |- CMAVO
> | | FA: fu
> | |- sumti6
> | |- CMAVO
> | | LE: lo
> | |- BRIVLA
> | gismu: birka
> |- sumti6
> |- CMAVO
> | LE: lo
> |- BRIVLA
> gismu: zarci

Adding a {ke} ({mi na'e ke klama be fu lo birka lo zarci}) yields:
> sentence
> |- CMAVO
> | KOhA: mi
> |- bridiTail3
> |- tanruUnit2
> | |- CMAVO
> | | NAhE: na'e
> | |- tanruUnit2
> | |- CMAVO
> | | KE: ke
> | |- tanruUnit1
> | |- BRIVLA
> | | gismu: klama
> | |- linkargs1
> | |- CMAVO
> | | BE: be
> | |- term1
> | |- CMAVO
> | | FA: fu
> | |- sumti6
> | |- CMAVO
> | | LE: lo
> | |- BRIVLA
> | gismu: birka
> |- sumti6
> |- CMAVO
> | LE: lo
> |- BRIVLA
> gismu: zarci
Which seems to be more accurate with respect to to what the CLL says.

While this probably isn't a bug per se, it might still hint at some
faulty handling of precedence.

Maybe somebody who is more familiar with the PEG grammar can comment on
this?

mu'o mi'e florolf

PS: In case this turns out to be significant, it was xalbo (Adam) who
pointed this out in the first place.


To unsubscribe from this list, send mail to lojban-list-request@lojban.org
with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if
you're really stuck, send mail to secretary@lojban.org for help.

On Thu, Sep 24, 2009 at 5:27 PM, Florian Larysch
<florolf@devbraindump.de> wrote:
> When discussing selbri negation on IRC, we noticed the following:
>
> The CLL states:
>> Negations made with "na'e" or "na'eke" also
>> include within their scope any sumti attached to the brivla or tanru
>> with "be" or "bei". Such attached sumti are
>> considered part of the brivla or tanru

That's incorrect, at least so far as the formal grammar in Chapter 21
has precedence over the informal description (the PEG just follows
that). NAhE (and SE for that matter) bind closer than linkargs. The KE
part is correct.

> Therefore, a sentence like {mi na'e klama be fu lo birka lo zarci}
> should be grouped someway similar to {mi (na'e (klama be fu lo birka))
> lo zarci}.

Consider "lo zarci cu se na'e klama be mi". Which place of "klama"
does "mi" fill?

mu'o mi'e xorxes


To unsubscribe from this list, send mail to lojban-list-request@lojban.org
with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if
you're really stuck, send mail to secretary@lojban.org for help.