Alternative syntaxes for the prolog

An ixml grammar without a prolog starts with a namestart character (plus 
spaces and comment start character).

That means that any other character is available to signal the start of a 
prolog.

I heard a request at the meeting for bracketing.

So that would mean that any bracketing characters are perfectly reasonable, 
non-ambiguous, syntaxes:

 [ixml version "1.1"]

 <ixml version "1.1">

 (ixml version "1.1")

but there is no functional reason for the "ixml", so better:

[version "1.1"]
(version "1.1")
<version "1.1">

I personally like the ( ) style, since it looks like you're indicating 
"just saying". 

Steven

Received on Friday, 15 December 2023 13:43:08 UTC