From 7326cf6c2cb08069ef29b281244ae57f90171ce1 Mon Sep 17 00:00:00 2001 From: Rainer Date: Thu, 31 Mar 2011 09:03:25 +0200 Subject: [PATCH] grammar formatting corrections --- attribute.dd | 22 +--------------------- expression.dd | 4 +--- template.dd | 4 ++-- 3 files changed, 4 insertions(+), 26 deletions(-) diff --git a/attribute.dd b/attribute.dd index 050a385..5db0dc8 100644 --- a/attribute.dd +++ b/attribute.dd @@ -277,10 +277,6 @@ $(GNAME ProtectionAttribute):

$(LNAME2 const, Const Attribute)

-$(GRAMMAR -$(B const) -) - $(P The $(B const) attribute declares constants that can be evaluated at compile time. For example: ) @@ -392,10 +388,6 @@ void main()

$(LNAME2 override, Override Attribute)

-$(GRAMMAR -$(B override) -) - $(P The $(B override) attribute applies to virtual functions. It means that the function must override a function with the same name and parameters in a base class. The override attribute @@ -423,10 +415,6 @@ class Foo2 : Foo

Static Attribute

-$(GRAMMAR -$(B static) -) - $(P The $(B static) attribute applies to functions and data. It means that the declaration does not apply to a particular instance of an object, but to the type of the object. In @@ -472,10 +460,6 @@ private int y = 4; // y is local to module foo

$(LNAME2 auto, Auto Attribute)

-$(GRAMMAR -$(B auto) -) - $(P The $(B auto) attribute is used when there are no other attributes and type inference is desired. ) @@ -486,10 +470,6 @@ auto i = 6.8; // declare i as a double

$(LNAME2 scope, Scope Attribute)

-$(GRAMMAR -$(B scope) -) - $(P The $(B scope) attribute is used for local variables and for class declarations. For class declarations, the $(B scope) attribute creates @@ -541,5 +521,5 @@ $(P Macros: TITLE=Attributes WIKI=Attribute - CATEGORY_SPEC=$0 + CATEGORY_SPEC=$0 diff --git a/expression.dd b/expression.dd index cfee8d2..615441e 100644 --- a/expression.dd +++ b/expression.dd @@ -656,7 +656,6 @@ $(GNAME CatExpression):

Mul Expressions

-$(V1 $(GRAMMAR $(GNAME MulExpression): $(GLINK UnaryExpression) @@ -664,7 +663,6 @@ $(GNAME MulExpression): $(I MulExpression) $(B /) $(GLINK UnaryExpression) $(I MulExpression) $(B %) $(GLINK UnaryExpression) ) -) $(P The operands must be arithmetic types. They undergo integral promotions, and then are brought to a common type using the @@ -1931,7 +1929,7 @@ void main() Macros: TITLE=Expressions WIKI=Expression - CATEGORY_SPEC=$0 + CATEGORY_SPEC=$0 GLINK=$(LINK2 #$0, $(I $0)) GNAME=$(I $0) DOLLAR=$ diff --git a/template.dd b/template.dd index e46fe4d..8bbd9db 100644 --- a/template.dd +++ b/template.dd @@ -1000,13 +1000,13 @@ void test() $(V2

Template Constraints

---- +$(GRAMMAR $(GNAME Constraint): $(B if) $(B $(LPAREN)) $(I ConstraintExpression) $(B $(RPAREN)) $(I ConstraintExpression): $(I $(GLINK2 expression, Expression)) ---- +) $(P $(I Constraint)s are used to impose additional constraints on matching arguments to a template beyond what is possible -- 1.7.3.1.msysgit.0