[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

SOLVED Re: FM+SGML: Ambiguous EDD General Rules - Why?





Thanks to Elaine Brennan for the answer.

A, B?, C, D, ^C?, (H| J)*, B*, ^C?

everything following the first optional C is also optional, so
that if the content  was A. C. D. C. the parser wouldn't know if that
final C was the one that can be followed by (H | J)*, B*  or whether it's
the final C that can't be followed by anything.

And on that note, we realised that we need at least one (H| J)* so changing the
rules to
A, B?, C, D, ^C?, (H| J)+, B*, ^C? and similar should also work as a solution.

Once it was explained to me the answer seems so obvious. ;-)

Eric L. Dunn



** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **