invisibleXML / ixml

Invisible XML
GNU General Public License v3.0
51 stars 7 forks source link

In spec grammar, alias delimiter ">" should be hidden #250

Open cmsmcq opened 4 months ago

cmsmcq commented 4 months ago

In the spec dated 2024-04-30, and the accompanying ixml specification grammar, the rule for naming is given as:

-naming: (mark, s)?, name, s, (">", s, alias, s)?.

I think the literal ">" should be hidden and the rule should be:

-naming: (mark, s)?, name, s, (-">", s, alias, s)?.

If there is a reason for preserving the delimiter in the XML form of the grammar, I am not seeing it.

(This may be useful as an example for any future effort to create regression tests for the ixml specification grammar, if only to illustrate that continuing to parse existing grammars in the same way does not quite show the absence of slip-ups.)

spemberton commented 4 months ago

You are right

Steven

On Sunday 12 May 2024 20:20:37 (+02:00), C. M. Sperberg-McQueen wrote:

In the spec dated 2024-04-30, and the accompanying ixml specification grammar, the rule for naming is given as:

-naming: (mark, s)?, name, s, (">", s, alias, s)?.

I think the literal ">" should be hidden and the rule should be:

-naming: (mark, s)?, name, s, (-">", s, alias, s)?.

If there is a reason for preserving the delimiter in the XML form of the grammar, I am not seeing it.

— Reply to this email directly, view it on GitHub https://github.com/invisibleXML/ixml/issues/250 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNIXL63OH33ZSUEUJKP6U3ZB6XHLAVCNFSM6AAAAABHTAC3WCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TCNBUGUZDENI . You are receiving this because you are subscribed to this thread.