Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 1372

Show
Ignore:
Timestamp:
12/12/09 10:08:22 (15 years ago)
Author:
walter
Message:

bugzilla 3595

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docsrc/attribute.dd

    r1257 r1372  
    1919    $(LINK2 #abstract, $(B abstract)) 
    2020    $(LINK2 #const, $(B const)) 
    2121    $(LINK2 #auto, $(B auto)) 
    2222    $(LINK2 #scope, $(B scope)) 
    2323$(V2    $(LINK2 #gshared, $(B __gshared)) 
    2424    $(LINK2 #shared, $(B shared)) 
    2525    $(LINK2 #immutable, $(B immutable)) 
    2626 
    2727) 
    2828 
    29 $(GNAME DeclarationBlock) 
     29$(GNAME DeclarationBlock): 
    3030    $(LINK2 module.html#DeclDef, $(I DeclDef)) 
    3131    $(B { }) 
    3232    $(B {) $(LINK2 module.html#DeclDefs, $(I DeclDefs)) $(B }) 
    3333) 
    3434 
    3535    $(P Attributes are a way to modify one or more declarations. 
    3636    The general forms are: 
    3737    ) 
    3838 
    3939<pre> 
  • trunk/docsrc/iasm.dd

    r850 r1372  
    3232    $(B db) $(I Operands) 
    3333    $(B ds) $(I Operands) 
    3434    $(B di) $(I Operands) 
    3535    $(B dl) $(I Operands) 
    3636    $(B df) $(I Operands) 
    3737    $(B dd) $(I Operands) 
    3838    $(B de) $(I Operands) 
    3939    $(I Opcode) 
    4040    $(I Opcode Operands) 
    4141 
    42 $(GNAME Operands) 
     42$(GNAME Operands): 
    4343    $(I Operand) 
    4444    $(I Operand) $(B ,) $(I Operands) 
    4545) 
    4646 
    4747<h2>Labels</h2> 
    4848 
    4949    $(P Assembler instructions can be labeled just like other statements. 
    5050    They can be the target of goto statements. 
    5151    For example: 
    5252    ) 
     
    260260$(GNAME AsmUnaExp): 
    261261    $(I AsmTypePrefix) $(I AsmExp) 
    262262    $(B offsetof) $(I AsmExp) 
    263263    $(B seg) $(I AsmExp) 
    264264    $(B +) $(I AsmUnaExp) 
    265265    $(B -) $(I AsmUnaExp) 
    266266    $(B !) $(I AsmUnaExp) 
    267267    $(B ~) $(I AsmUnaExp) 
    268268    $(I AsmPrimaryExp) 
    269269 
    270 $(GNAME AsmPrimaryExp) 
     270$(GNAME AsmPrimaryExp): 
    271271    $(I IntegerConstant) 
    272272    $(I FloatConstant) 
    273273    $(B __LOCAL_SIZE) 
    274274    $(B $) 
    275275    $(I Register) 
    276276    $(I DotIdentifier) 
    277277 
    278 $(GNAME DotIdentifier) 
     278$(GNAME DotIdentifier): 
    279279    $(I Identifier) 
    280280    $(I Identifier) $(B .) $(I DotIdentifier) 
    281281) 
    282282 
    283283    $(P The operand syntax more or less follows the Intel CPU documentation 
    284284    conventions. 
    285285    In particular, the convention is that for two operand instructions 
    286286    the source is the right operand and the destination is the left 
    287287    operand. 
    288288    The syntax differs from that of Intel's in order to be compatible 
  • trunk/docsrc/interface.dd

    r932 r1372  
    11Ddoc 
    22 
    33$(SPEC_S Interfaces, 
    44 
    55$(GRAMMAR 
    66$(GNAME InterfaceDeclaration): 
    77    $(B interface) $(I Identifier) $(I InterfaceBody) 
    88    $(B interface) $(I Identifier) $(B :) $(I SuperInterfaces) $(I InterfaceBody) 
    99 
    10 $(GNAME SuperInterfaces) 
     10$(GNAME SuperInterfaces): 
    1111    $(I Identifier) 
    1212    $(I Identifier) $(B ,) $(I SuperInterfaces) 
    1313 
    1414$(GNAME InterfaceBody): 
    1515    $(B {) DeclDefs $(B }) 
    1616) 
    1717 
    1818    $(P Interfaces describe a list of functions that a class that inherits 
    1919    from the interface must implement. 
    2020    A class that implements an interface can be converted to a reference 
  • trunk/docsrc/template.dd

    r1327 r1372  
    1111) 
    1212 
    1313$(GRAMMAR 
    1414$(GNAME TemplateDeclaration): 
    1515    $(B template) $(I TemplateIdentifier) $(B $(LPAREN)) $(I TemplateParameterList) $(B $(RPAREN)) $(V2 $(GLINK Constraint)$(SUB $(I opt))) 
    1616        $(B {) DeclDefs $(B }) 
    1717 
    1818$(GNAME TemplateIdentifier): 
    1919    $(I Identifier) 
    2020 
    21 $(GNAME TemplateParameterList) 
     21$(GNAME TemplateParameterList): 
    2222    $(I TemplateParameter) 
    2323    $(I TemplateParameter) , $(I TemplateParameterList) 
    2424 
    2525$(GNAME TemplateParameter): 
    2626    $(GLINK TemplateTypeParameter) 
    2727    $(GLINK TemplateValueParameter) 
    2828    $(GLINK TemplateAliasParameter) 
    2929    $(GLINK TemplateTupleParameter) 
    3030$(V2 
    3131    $(GLINK TemplateThisParameter)) 
  • trunk/docsrc/version.dd

    r1359 r1372  
    109109} 
    110110else 
    111111{ 
    112112    ... // use default, but slow, version 
    113113} 
    114114------ 
    115115 
    116116<h3>$(LNAME2 VersionSpecification, Version Specification)</h3> 
    117117 
    118118$(GRAMMAR 
    119 $(GNAME VersionSpecification) 
     119$(GNAME VersionSpecification): 
    120120    $(B version =) $(I Identifier) $(B ;) 
    121121    $(B version =) $(I Integer) $(B ;) 
    122122) 
    123123 
    124124    $(P The version specification makes it straightforward to group 
    125125    a set of features under one major version, for example: 
    126126    ) 
    127127 
    128128------ 
    129129version (ProfessionalEdition) 
     
    318318    int a, b; 
    319319    debug: 
    320320    int flag; 
    321321} 
    322322------ 
    323323 
    324324 
    325325<h3>Debug Specification</h3> 
    326326 
    327327$(GRAMMAR 
    328 $(GNAME DebugSpecification) 
     328$(GNAME DebugSpecification): 
    329329    $(B debug =) $(I Identifier) $(B ;) 
    330330    $(B debug =) $(I Integer) $(B ;) 
    331331) 
    332332 
    333333    $(P Debug identifiers and levels are set either by the command line switch 
    334334    $(B -debug) or by a $(I DebugSpecification). 
    335335    ) 
    336336 
    337337    $(P Debug specifications only affect the module they appear in, they 
    338338    do not affect any imported modules. Debug identifiers are in their