Re: Pragmas Reqs 9-10

Bethan Tovey-Walsh <bytheway@linguacelta.com> writes:
> 9 Pragmas must be able to annotate an iXML grammar as a whole, individual rules in a grammar, and nonterminals.

Yep.

> 10 Pragmas should also be able to annotate any grammar constructs for which robust use cases can be put forward, bearing in mind the importance of balancing succinctness, expressive power, and readability of grammars.

I’ll sign up for that.

I think the items identified in requirement 9 are the ones for which significant use cases have been identified. Certainly, I have pragmas that apply to each of those items.

My intuition is that the annotating literals wouldn’t be too hard; annotating individual character classes or hex tokens (or any of the other smaller “atomic” parts) might be possible, but complex. The more complex it is, I think the more impact it’s going to have on succinctness and readability so the use cases have to be progressively more robust.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Wednesday, 29 January 2025 14:53:23 UTC