[YG Conlang Archives] > [jboske group] > messages [Date Index] [Thread Index] >


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

Re: [jboske] Syntactic unambiguity



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@hidden.email
Diphenyltrichloroethane.                                (aka DDT)