Skip to content

Commit 93c7910

Browse files
authored
These grammar sections are informative (#3661)
* This "Parameter List Forms" expression grammar section is informative In particular, this is only part of a rule relevant for its particular subsection, the full rule is above at the primary section header. * assuming I understand `$(GRAMMAR_INFORMATIVE` correctly * The importc "FENV_ACCESS" grammar section is informative This is describing C11 grammar, not D grammar. * assuming I understand `$(GRAMMAR_INFORMATIVE` correctly * The expression "StringLiteral" grammar section is informative This is a redeclaration of "StringLiteral" which occurred previously in the lexer section, which seems to be the primary source. * assuming I understand `$(GRAMMAR_INFORMATIVE` correctly
1 parent 2aef9fb commit 93c7910

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/expression.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,7 +1844,7 @@ $(H3 $(LNAME2 null, null))
18441844

18451845
$(H3 $(LNAME2 string_literals, String Literals))
18461846

1847-
$(GRAMMAR
1847+
$(GRAMMAR_INFORMATIVE
18481848
$(GNAME StringLiteral):
18491849
$(GLINK_LEX WysiwygString)
18501850
$(GLINK_LEX AlternateWysiwygString)
@@ -3084,7 +3084,7 @@ void foo()
30843084

30853085
$(H4 $(LNAME2 is-parameter-list, Parameter List Forms))
30863086

3087-
$(GRAMMAR
3087+
$(GRAMMAR_INFORMATIVE
30883088
$(D is $(LPAREN)) $(I Type) $(D :) $(I TypeSpecialization) $(D ,) $(GLINK2 template, TemplateParameterList) $(D $(RPAREN))
30893089
$(D is $(LPAREN)) $(I Type) $(D ==) $(I TypeSpecialization) $(D ,) $(GLINK2 template, TemplateParameterList) $(D $(RPAREN))
30903090
$(D is $(LPAREN)) $(I Type) $(I Identifier) $(D :) $(I TypeSpecialization) $(D ,) $(GLINK2 template, TemplateParameterList) $(D $(RPAREN))

spec/importc.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ $(H2 $(LNAME2 implementation, Implementation))
328328

329329
$(P This is described in C11 7.6.1)
330330

331-
$(GRAMMAR
331+
$(GRAMMAR_INFORMATIVE
332332
#pragma STDC FENV_ACCESS on-off-switch
333333

334334
on-off-switch:

0 commit comments

Comments
 (0)