- From: Tim Bray <tbray@textuality.com>
- Date: Wed, 22 Jul 1998 15:54:24 -0700
- To: abrahams@acm.org, xml-editor@w3.org
- Cc: abrahams@acm.org
At 06:16 PM 7/22/98 -0400, Paul Abrahams wrote:
>I've noticed a syntactic ambiguity in productions 49/50 that could be
>troublesome for parsers even though it has an obvious interpretation.
>If "children" has the form "(Name)", i.e., it's a singleton, then it can
>be interpreted either as a choice or as a seq. One cure would be to
>replace the *s in P49/P50 by +s and to add a production P50A:
> singleton ::= '(' S? cp ')'
OK, but why? When there's only one, the semantics are the same. -Tim
Received on Wednesday, 22 July 1998 18:55:32 UTC