Re: Syntactic unambiguity
John Cowan <[email protected]>
| Newsgroups | gmane.science.linguistics.lojban.jboske |
|---|---|
| Message-ID | <[email protected]> |
Arnt Richard Johansen scripsit: > How is it that we know that Lojban is syntactically unambiguous? Is it > impossible to write unambiguous grammars in YACC? Or do conformant YACC > parsers handle ambiguities in their inputs in some well-defined way? YACC complains about ambiguities, though it will still cope with them. The Lojban grammar reports zero conflicts, so it is unambiguous, EXCEPT for the various hacks put in to keep YACC from spotting places where 1-token lookahead isn't enough. Ambiguities can lurk there, and have to be searched for by hand. -- A mosquito cried out in his pain, John Cowan "A chemist has poisoned my brain!" http://www.ccil.org/~cowan The cause of his sorrow http://www.reutershealth.com Was para-dichloro- jcowan-k6JZYsoqQQ8PxK1qzZLvrwC/[email protected] Diphenyltrichloroethane. (aka DDT)