[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Elision, or: Nick rides again in jbonai
Guy,
You've raised a very good question. I'll let John Cowan or any of
the others who've worked with the formal grammar a bit more than I have
feel free to correct anything I've said here, but my understanding of
the situation is as follows:
1) The formal grammar with all of the terminators made non-elidible is
LR(1) and hence unambiguous.
2) There is at least one case where eliding a terminator does result in
ambiguity. Unfortunately, the condition which determines if elision
is permitted is context sensitive. For example "La Bab blanu" versus
"Le fengu cu blanu".
3) In other cases (hopefully all of the rest) attempts to specify the
elision in the grammar have resulted in complaints that the grammar
is no longer LR(1). Now, as you well know, non-LR(1) does not
necessarily mean ambiguous. I've done some investigation on the
question of whether real ambiguities result in some of these cases,
but I haven't reached any definite answers.
All of this leaves us with a big research project, namely can we develop
a grammar acceptable to yacc (or some other parser generating system) which
will specify the language with elibible terminators. Maybe I should have
made that my dissertation topic.
Dave Bowen