Re: Grammar validation?

On Sunday 07 November 2021 13:14:58 (+01:00), Dave Pawson wrote:

 > Thanks Steven.
 >
 > =====================
 > Spec.
 >
 > The grammar must not contain more than one rule defining any given
 > name. {needed?}
 > May contradict nonterminals defn
 > This name refers to the rule that defines this name, which must exist,
 > and there must only be one such rule.
 >
 > Which disallows names n and m, each having a different xpath location
 > in the tree?
 > Is this intended?
Yes. What is says is that if you have a rule

    a: m, n.

there must be exactly one rule

   m: ...

and one rule

   n: ...

The reason that {needed?} is there, is because I believe the second rule 
covers the first rule.

Steven

 >
 > regards
 >
 >
 > On Sun, 7 Nov 2021 at 11:51, Steven Pemberton <steven.pemberton@cwi.nl> 
wrote:
 > >
 > > Sure. From the tutorial there is a link where you can upload an ixml
 > > grammar, and a sample input.
 > > See http://www.cwi.nl/~steven/ixml/tutorial and go to the page "How it
 > > works".
 > >
 > > Steven
 > >
 > > On Sunday 07 November 2021 12:00:49 (+01:00), Dave Pawson wrote:
 > >
 > > > If I try to write a grammar for some input, is there any way I can
 > > validate
 > > > what I've written please?
 > > >
 > > > regards
 > > >
 >
 >
 >

Received on Sunday, 7 November 2021 21:53:56 UTC