Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stmt.pre, re.grammar, gram] Use a separate bnf environment for each nonterminal. #4070

Merged
merged 1 commit into from Jul 7, 2020

Conversation

Eelis
Copy link
Contributor

@Eelis Eelis commented Jul 4, 2020

This is already done everywhere else in the document as far as I can tell.

No visible difference in the PDF.

(Incidentally, this change makes life easier for cxxdraft-htmlgen.)

@Eelis Eelis changed the title [stmt.pre, re.grammar] Use a separate bnf environment for each nonterminal. [stmt.pre, re.grammar, gram] Use a separate bnf environment for each nonterminal. Jul 4, 2020
@jensmaurer
Copy link
Member

Ideally, we would script-check this in the future, to avoid introducing regressions.
Also, if most every "bnf" environment starts with a \nontermdef, we might want to consider having a bnfnontermdef environment or so. Later, maybe.

@jensmaurer
Copy link
Member

jensmaurer commented Jul 7, 2020

@tkoeppe , could you have a look, please? This seems an easy one.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 7, 2020

Looks good, thanks! I agree that if we never want to have multiple definitions per environment, we could have a more structured environment -- that would probably also obviate the need for a presubmi check (assuming we could get rid of the permissive existing environment that allows multiple definitions).

@tkoeppe tkoeppe merged commit df88130 into cplusplus:master Jul 7, 2020
@Eelis Eelis deleted the bnfsep branch July 7, 2020 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants