WikiDiscuss Help

Forums > WikiDiscuss > Magic Words > Magic Words

Magic Words


rlpowell posts: 14214

On Sat, Nov 06, 2004 at 09:23:15PM -0800, Jorge Llamb?as wrote:
>
> --- Robin Lee Powell wrote:
> > To be more specific: the rule for ZEI in my PEG grammar is
> > (simplified slightly):
> >
> > any-word (ZEI any-word)+ indicators*
> >
> > any-word matches a single Lojban word. Duh.
>
> Any word at all? What does {zo zei cmavo} give?

zo wins, due to being farther up the food chain:

text
sentence
|- zoClause
| |- ZO: zo
| |- anyWord: zei
|- BRIVLA: cmavo

> > Note that currently, as a side effect, my parser is just fine
> > with {ti zei zei broda} and such.
>
> Isn't that {ti-zei-zei broda}?

Nope.

text
sentence
|- KOhA: ti
|- tanruUnit2
|- anyWord: zei
|- ZEI: zei
|- anyWord: cmavo

But your question reminds me of why Cowan and I decided that ZEI shouldn't act
on ZEI: there's no obvious choice for whether to group left or group right.
Thanks.

-Robin

 


Show posts: