Re: A BibTeX grammar

> >> What am *I* missing?
> >
> > A comma.
> >
> > entry: -"@", @type, s*, -'{', s*, @citekey, fields?, s* -'}' .
> > ...
> > entry: -"@", @type, s*, -'{', s*, @citekey, fields?, s*, -'}' .
> > ...
>
> > That’s ugly. I wonder if there’s anything reasonable that we could do
> > to make that less likely.

I was thinking last night, and one way would be to make repetition with separators different, by doubling the sign:


numbers: number++(",", " "*).
   words: word**s.

Steven

Received on Friday, 18 February 2022 14:03:39 UTC