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

[lojban] Re: left recursion changes



On Sun, Jun 22, 2008 at 7:15 PM, Chris Capel <pdf23ds@gmail.com> wrote:
>
> -tag <- tense-modal (joik-jek tense-modal)*
> +tag <- tag joik-jek tense-modal / tense-modal
>
> -stag <- simple-tense-modal ((jek / joik) simple-tense-modal)* /
> tense-modal (joik-jek tense-modal)*
> +stag <- stag (jek / joik) simple-tense-modal / simple-tense-modal / tag
>
> Now these two I'm not entirely sure about. But I don't think it hurts
> anything too much. On 'stag', besides the recursion I also changed the
> last option to just be a reference to 'tag', since the sequences were
> identical.

In fact, you could just do:

stag <- tag

or just remove "stag" from the grammar and replace everywhere with "tag".
The PEG eliminated the distinction that existed between them, as it was
a consequence of the LALR(1) restriction.

mu'o mi'e xorxes


To unsubscribe from this list, send mail to lojban-list-request@lojban.org
with the subject unsubscribe, or go to http://www.lojban.org/lsg2/, or if
you're really stuck, send mail to secretary@lojban.org for help.