Skip to content

Commit

Permalink
fix Issue 13525 - Redundant SpecialKeyword grammar listd in DefaultIn…
Browse files Browse the repository at this point in the history
…itializerExpression

Remove DefaultInitializerExpression and replace with AssignExpression
  • Loading branch information
9rnsr committed Sep 24, 2014
1 parent eb5700c commit 0b4db24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions function.dd
Expand Up @@ -30,7 +30,7 @@ $(GNAME ParameterList):
$(GNAME Parameter):
$(I InOut)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator)
$(I InOut)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator) $(D ...)
$(I InOut)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator) = $(GLINK DefaultInitializerExpression)
$(I InOut)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK2 declaration, Declarator) = $(ASSIGNEXPRESSION)
$(I InOut)$(OPT) $(GLINK2 declaration, Type)
$(I InOut)$(OPT) $(GLINK2 declaration, Type) $(D ...)

Expand Down Expand Up @@ -67,10 +67,6 @@ $(GNAME MemberFunctionAttribute):
$(D inout)
$(D shared)
$(GLINK FunctionAttribute)

$(GNAME DefaultInitializerExpression):
$(ASSIGNEXPRESSION)
$(GLINK2 traits, SpecialKeyword)
)

$(GRAMMAR
Expand Down
6 changes: 1 addition & 5 deletions grammar.dd
Expand Up @@ -1145,7 +1145,7 @@ $(GNAME ParameterList):
$(GNAME Parameter):
$(I InOut)$(OPT) $(GLINK BasicType) $(GLINK Declarator)
$(I InOut)$(OPT) $(GLINK BasicType) $(GLINK Declarator) $(D ...)
$(I InOut)$(OPT) $(GLINK BasicType) $(GLINK Declarator) = $(GLINK DefaultInitializerExpression)
$(I InOut)$(OPT) $(GLINK BasicType) $(GLINK Declarator) = $(ASSIGNEXPRESSION)
$(I InOut)$(OPT) $(GLINK Type)
$(I InOut)$(OPT) $(GLINK Type) $(D ...)

Expand Down Expand Up @@ -1182,10 +1182,6 @@ $(GNAME MemberFunctionAttribute):
$(D inout)
$(D shared)
$(GLINK FunctionAttribute)

$(GNAME DefaultInitializerExpression):
$(ASSIGNEXPRESSION)
$(GLINK SpecialKeyword)
)

$(GRAMMAR
Expand Down

0 comments on commit 0b4db24

Please sign in to comment.