WikiDiscuss

WikiDiscuss


PEG Morphology Algorithm

posts: 14214

On Mon, Dec 20, 2004 at 12:55:54PM -0800, wikidiscuss@lojban.org wrote:
> Re: PEG Morphology Algorithm
> This:
>
> cmavo

Boy, that sure failed spectacularily.

This:

cmavo <- !cmene !gismu !lujvo !fuhivla consonant? vowels &(spaces / consonant)

can't work, because at least one of those ! productions has stuff
out front that calls cmavo (or !cmavo, or whatever). One of them
I've found, which is the lujvo !tosmabru test, but there's at least
one other. Having cmavo call cmavo to match cmavo is left
recursion, and is bad.

-Robin