[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Lojban CFG Questions
On Monday 13 December 2010 22:38:42 Robin Lee Powell wrote:
> On Mon, Dec 13, 2010 at 10:32:19PM +0100, Roman Naumann wrote:
>
> The hard part is actually situations in which removing a terminator
> makes it not parse at all, which the toy doesn't have. Example in
> real Lojban: {nu le klama ku broda}; if you take the "ku" out that
> breaks because {klama broda} is a tanru, which is higher precendence
> than inserting the elidablue ku, and with the tanru the nu has no
> selbri. To tweak the toy language to have this, I think allowing
> {klama klama} as a tanru with high precedence should be sufficient.
I see, i'll remember that point.
The sample grammar (acc. to my interpretation) has several places, where
eliding terminators - even though not break - change the parse tree.
According to my interpretation, we can leave out "ku" as long as a "klama"
follows without anything else (such as "mi") inbetween, except "ku", which is
allowed.
Examples are:
1.: {lenu klama lenu klama mi ku ku klama}
2.: {lenu klama lenu klama ku mi ku klama}
3.: {lenu klama lenu klama ku ku mi klama}
1: we can leave out either or both "ku" without changing the parse tree.
2: we can only leave out the latter "ku", else "mi" becomes part of the inner
sentence.
3: we cannot leave out any "ku". If we leave out one, "mi" is in the inner
sentence; if we leave out both, "mi" belongs to the innermost sentence.
The grammar produces correct parse trees according to this interpretation and
the three points above. I didn't look at 'nu' and a whole bunch of other
selma'o yet, though, and it's way to early to get excited about anything. I'll
look into a lot of problems soon, but the next few days i'll be something
between rather busy with real-life issues. (- still, christmas holidays with
plenty of time are near).
Regards,
Roman
--
You received this message because you are subscribed to the Google Groups "lojban" group.
To post to this group, send email to lojban@googlegroups.com.
To unsubscribe from this group, send email to lojban+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lojban?hl=en.