Skip to content

Commit 47f6831

Browse files
authored
Reorganize function parameter grammar (#3854)
1 parent 2e3bb9e commit 47f6831

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/function.dd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ $(GNAME ParameterList):
4242
$(GLINK VariadicArgumentsAttributes)$(OPT) $(D ...)
4343

4444
$(GNAME Parameter):
45+
$(GLINK ParameterDeclaration)
46+
$(GLINK ParameterDeclaration) $(D ...)
47+
$(GLINK ParameterDeclaration) $(D =) $(ASSIGNEXPRESSION)
48+
49+
$(GNAME ParameterDeclaration):
4550
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, BasicType) $(GLINK2 declaration, Declarator)
46-
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, BasicType) $(GLINK2 declaration, Declarator) $(D ...)
47-
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, BasicType) $(GLINK2 declaration, Declarator) $(D =) $(ASSIGNEXPRESSION)
4851
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, Type)
49-
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, Type) $(D ...)
50-
$(GLINK ParameterAttributes)$(OPT) $(GLINK2 type, Type) $(D =) $(ASSIGNEXPRESSION)
5152

5253
$(GNAME ParameterAttributes):
5354
$(GLINK ParameterStorageClass)

0 commit comments

Comments
 (0)