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

Re: Quoting "zoi"



I wrote:
> On IRC, I tried to quote the word {zoi} and wrote {zo zoi}.
> Surprisingly, jbofi'e didn't parse it. So I checked Reference
> Grammar, and it seems ZOI takes precedence over ZO.

Jordan DeLong replied:
> Where's it say that?  The bnf looks like they should be at the same
> level. It's just a bug in jbofi'e.  The official parser supports
> it (though it does use an older version of the grammar).

It is stated at Chapter 21 of Reference Grammar. You are right in
that in BNF, they are at the same level, but RefGram states:

> In case of discrepancies, the YACC version is official.

So let's look up the YACC version. Following is a verbatim copy
from RefGram:

----
Step 2 - Filtering

>From start to end, performing the following filtering and lexing
tasks using the given order of precedence in case of conflict:

a. If the Lojban word ``zoi'' (selma'o ZOI) is identified, take the
following Lojban word (which should be end delimited with a pause for
separation from the following non-Lojban text) as an opening
delimiter. Treat all text following that delimiter, until that
delimiter recurs *after a pause*, as grammatically a single token
(labelled 'anything_699' in this grammar). There is no need for
processing within this text except as necessary to find the closing
delimiter.

b. If the Lojban word ``zo'' (selma'o ZO) is identified, treat the
following Lojban word as a token labelled 'any_word_698', instead of
lexing it by its normal grammatical function.
----

Note the phrase, "using the given order of precedence in case of
conflict."

mi'e sanxiyn.