- From: John Lumley <john@saxonica.com>
- Date: Mon, 2 Mar 2026 15:44:24 +0000
- To: public-ixml@w3.org
Received on Monday, 2 March 2026 15:44:38 UTC
On 02/03/2026 15:36, Graydon Saunders wrote:
> Something like
>
> non-terminal = grammar-uri
>
> especially if it allowed nesting (=the referenced grammar can also use
> this construct) would be enormously welcome from this corner. Being
> able to write the date parsing grammar once and use it in many places
> would almost have to be a lot easier.
I think Norm was considering a two stage match/parse process. Something
like:
nonterminal: [L]+ {grammar: more-detailed-grammar.ixml}.
where during the first pass nonterminal**matches a string of letters
(which will be retained as a text node below <nonterminal>, and then
passing that input to parsing against more-detailed-grammar.ixml in a
subsequent phase. It could of course nest.
--
*John Lumley* MA PhD CEng FIEE
john@saxonica.com
Received on Monday, 2 March 2026 15:44:38 UTC