Re: A BibTeX grammar

>> Am I missing something?
>
> What am *I* missing?

A comma.

  entry: -"@", @type, s*, -'{', s*, @citekey, fields?, s* -'}' .

By that rule, an entry is an “@”, followed by blah blah blah, followed by
optional fields, followed by zero or more whitespaces separated by “}”.

Not

  entry: -"@", @type, s*, -'{', s*, @citekey, fields?, s*, -'}' .

as I had intended.

That’s ugly. I wonder if there’s anything reasonable that we could do to
make that less likely.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Thursday, 17 February 2022 06:35:29 UTC