Re: A BibTeX grammar

Norm Tovey-Walsh writes:

> Here’s the grammar:

> bibtex: item+itemsep, s* .
> itemsep: s+ .
>
> ...
> -s: (-[Zs]; -#9; -#d; -#a) .

> And here’s a toy file that parses:

> %C
> @Book{K,
>   t = "a"
> }
>
> @Book{K,
>   t = "a"
> }

> If you take the space out between the two entries, it fails. And I don’t
> see why.

Because itemsep is required between entries by the definition of bibtex,
and whitespace is required in itemsep by the definition of itemsep?

Am I missing something?

Michael



-- 
C. M. Sperberg-McQueen
Black Mesa Technologies LLC
http://blackmesatech.com

Received on Wednesday, 16 February 2022 21:57:48 UTC