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

[lojban] Re: Annotated PEG grammar



On 11/15/08, Jorge Llambías <jjllambias@gmail.com> wrote:
> On Sat, Nov 15, 2008 at 8:21 PM, Stephen Pollei
>  <stephen.pollei@gmail.com> wrote:

>  > magic words in a way most can agree on would be great.

> Those are already handled properly by Robin's grammar:
>  <http://www.digitalkingdom.org/~rlpowell/hobbies/lojban/grammar/lojban.peg.txt>

>  (Except for SA, which is still a big mess.)
yes and I think the sa was just for some cases like with brivla or
cmevla,  and some nesting cases. Otherwise yes I think his peg
supported the magic words pretty well. I also thought he had some
nonstandard extensions as well though?

http://digitalkingdom.org/~rlpowell/hobbies/lojban/grammar/
[[ # There is possibly some wierd interaction lurking with hadling of
SI inside of ZOI+SA clauses. If anyone finds a sentence that behaves
wierdly in that sort of situation, please let me know.
# As a subset of the morphological problems, cmavo starting with a
vowel don't work without a space after them in lo'u...le'u quotes, and
probably other places.
# Currently does not handle "nested" SA, nor SA+BRIVLA or SA+CMENE.]]
[[Multiple sa in a row delete back to further previous instances of
that selma'o. For example, "le le broda cu brode sa sa le brodi" is
the same as "le brodi". ]]

>  > {paragraph <- (statement / fragment) (I !jek !joik !joik-jek free*
>  > (statement / fragment)?)*}

> Yes. In fact that !joik-jek in front of free* is extremely weird. If
>  it's needed at all, it has to go after free*,

paragraph <- (statement / fragment) (I free* !jek !joik (statement /
fragment)?)*

I agree. And think the rule I just stated is an optimazation and still
accomplishes what I think the intent was. I don't know enough to
really say though.

http://pdf23ds.net/lojban/Annotated%20Grammar.html and
http://digitalkingdom.org/~rlpowell/hobbies/lojban/grammar/lojban.peg.txt
seem to difer more than I suspected at first.

I was going to suggest that just about every place where "NIhO+" was
used to be expanded into "NIhO+ I?" . I see that Chris's version chops
off a "-clause" from the end of lots of the rules concerning selma'o.
That's why I was getting confused if CMENE+ was doing the right thing
or not, the real rules use CMENE-clause+ which does.

So I quess I suggest that places that do a "NIhO-clause+" be changed
into a "NIhO-clause+ I-clause?"  or a "(NIhO-clause I-clause?)+"

Mostly it's so it a tiny bit more consistant with the implied " ni'o i
" that the rules in the magic words sections seems to imply exist for
"sa i" and "su" to work.

I could be totally crazy on my "ni'o i" suggestion, take with shaker of salt.


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.