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

RE: XML as a transition to s-expr

> If optional keyword attributes allowed, and keyword names are
> themselves are allowed in a body (at least as the first element),
> it's ambiguous.

Yes.  This problem occurs in Curl text formats:

      color = "red",
	not-a-keyword \= foo,
	also-not-a-keyword = bar,

The '=' needs to be escaped so that the parser does not treat the expression
as a keyword parameter.  You could also workaround this by puttting a
do-nothing curly expression between the real keyword and the text.

In practice, this happens very rarely.

- Christopher