Skip to content

Commit 021ed12

Browse files
committed
Expand PS0 macro and remove unused macros
1 parent e4c2b08 commit 021ed12

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

spec/statement.dd

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ $(GNAME ForStatement):
374374

375375
$(GNAME Initialize):
376376
$(D ;)
377-
$(PS0)
377+
$(GLINK NoScopeNonEmptyStatement)
378378

379379
$(GNAME Test):
380380
$(EXPRESSION)
@@ -452,7 +452,7 @@ $(GNAME AggregateForeach):
452452
$(GLINK Foreach) $(D $(LPAREN)) $(GLINK ForeachTypeList) $(D ;) $(GLINK ForeachAggregate) $(D $(RPAREN))
453453

454454
$(GNAME ForeachStatement):
455-
$(GLINK AggregateForeach) $(PS0)
455+
$(GLINK AggregateForeach) $(GLINK NoScopeNonEmptyStatement)
456456

457457
$(GNAME Foreach):
458458
$(D foreach)
@@ -1642,13 +1642,13 @@ $(GNAME Catches):
16421642
$(GLINK Catch) $(GSELF Catches)
16431643

16441644
$(GNAME Catch):
1645-
$(D catch $(LPAREN)) $(GLINK CatchParameter) $(D $(RPAREN)) $(PS0)
1645+
$(D catch $(LPAREN)) $(GLINK CatchParameter) $(D $(RPAREN)) $(GLINK NoScopeNonEmptyStatement)
16461646

16471647
$(GNAME CatchParameter):
16481648
$(GLINK2 type, BasicType) $(GLINK_LEX Identifier)$(OPT)
16491649

16501650
$(GNAME FinallyStatement):
1651-
$(D finally) $(PS0)
1651+
$(D finally) $(GLINK NoScopeNonEmptyStatement)
16521652
)
16531653

16541654
$(P $(I CatchParameter) declares a variable v of type T, where T is
@@ -1995,10 +1995,5 @@ Macros:
19951995
EXPRESSION=$(GLINK2 expression, Expression)
19961996
PSSEMI_PSCURLYSCOPE=$(GLINK Statement)
19971997
PSSEMI_PSCURLYSCOPE_LIST=$(GLINK ScopeStatementList)
1998-
PS0=$(GLINK NoScopeNonEmptyStatement)
19991998
PSSCOPE=$(GLINK ScopeStatement)
2000-
PSCURLY=$(GLINK BlockStatement)
2001-
PSSEMI=$(GLINK NoScopeStatement)
2002-
PSCURLY_PSSCOPE=$(GLINK ScopeBlockStatement)
2003-
PSCURLYSCOPE=$(GLINK NonEmptyOrScopeBlockStatement)
20041999
_=

0 commit comments

Comments
 (0)