shapeMap ::= shapeAssociation (',' shapeAssociation)* would be a bit nicer for automation (i.e., shapeMap generators) if the , was also allowed at the very end of the document so that it behaves more like a terminator than a separator. This is a somewhat common practice in syntaxes.
Perhaps something like this?
shapeMap ::= shapeAssociation (',' shapeAssociation?)*
shapeMap ::= shapeAssociation (',' shapeAssociation)*
would be a bit nicer for automation (i.e., shapeMap generators) if the,
was also allowed at the very end of the document so that it behaves more like a terminator than a separator. This is a somewhat common practice in syntaxes.Perhaps something like this?
shapeMap ::= shapeAssociation (',' shapeAssociation?)*