Re: Error reporting?

On Thu, 18 Nov 2021 at 08:50, Steven Pemberton <steven.pemberton@cwi.nl> wrote:
>
> The message collects together all terminal symbols (characters) that could
> occur at that point. If there is only one, it is required. If there are
> more than one, then there is a choice, and none is required, and all are
> possible.
>
> Is there a better wording that would make this clearer?

I take your point.
"Required, one of " when it's a set?
Even when it's 5 characters, one of them is required?

Could be I'm used to xml parsers?
@ndw - what wording is used in docbook? Generally 'one of' many 'required'?

I.e. it is invalid without one of the following.

HTH


>
> Steven
>
> On Thu, 18 Nov 2021 09:08:31 +0100, Dave Pawson <dave.pawson@gmail.com>
> wrote:
>
> > On Wed, 17 Nov 2021 at 20:32, Steven Pemberton <steven.pemberton@cwi.nl>
> > wrote:
> >>
> >> Do you mean a nonterminal?
> >
> > Not particularly. If known, tell me what is required at this point in
> > the syntax?
> > Or is that the same as 'permitted'?
> > Difference between 'must have' and 'may have'?
> >
> > regards
> >
> >
> >>
> >> Steven
> >>
> >> On Wed, 17 Nov 2021 13:00:18 +0100, Dave Pawson <dave.pawson@gmail.com>
> >> wrote:
> >>
> >> > ^
> >> > *** Permitted at this position: " "; "ΒΆ"; [".;:,'?!"]; [L].
> >> >
> >> > Would it be more helpful (if appropriate) to report
> >> > xxx required at this position?
> >> >
> >> > regards
> >> >
> >
> >



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Thursday, 18 November 2021 08:58:19 UTC