[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Re: How do you parse lujvo into the component rafsi?
On Sat, 10 Mar 2001, seidensticker@msn.com wrote:
>Assuming the grammar below is correct, I've made the following
>algorithm, which I assume to be equivalent.
>
>if the remainder of the string begins CVVr or CVVn or CVV or CVCy
>then chop off that token and recurse
>else if the remainder begins CCV
> then if the remainder begins Cy
> then chop off the CCVCy and recurse
> else if the remainder begins CV<eof>
> then chop off the terminal CCVCV and end
> else chop off the CCV and recurse
> else if the remainder begins CVC
> then if the remainder begins Cy
> then chop off the CVCCy and recurse
> else if the remainder begins CV<eof>
> then chop off the terminal CVCCV and end
> else chop off the CVC and recurse
>
>Does this sound like the correct way to parse a lujvo into rafsi
>tokens?
Remainder ki'a. This sounds like you need to throw in a bunch of goi ko'as to
make it comprehensible.
phma