跳转至内容

注释国王参考手册/方面

来自维基教科书,开放世界开放书籍

方面子句

[编辑 | 编辑源代码]

-

aspect_clause ::= attribute_definition_clause

attribute_definition_clause ::=
            for local_name'attribute_designator use expression;
          | for local_name'attribute_designator use name;

local_name ::= direct_name | direct_name'attribute_designator | library_unit_name 
null_declaration ::= null;

基本原理

[编辑 | 编辑源代码]

-

-

方面规范

[编辑 | 编辑源代码]
Append : procedure (Onto : in out List; Item : in Element) with
   Precondition => not Onto.Is_Full,
   Postcondition => not Onto.Is_Empty and Onto.Value (Onto.Last) = Item;

type Byte_Value is range 0 .. 255 with Signed_Representation => False;
aspect_specification ::= with aspect_mark [=> aspect_definition] {, aspect_mark [=> aspect_definition]}

aspect_mark ::= aspect_identifier

aspect_definition ::= name | expression | identifier | aggregate | global_aspect_definition

global_aspect_definition ::=
            null
          | Unspecified
          | global_mode global_designator
          | (global_aspect_element{; global_aspect_element})

global_aspect_element ::=
            global_mode global_set
          | global_mode all
          | global_mode Synchronized

global_mode ::= basic_global_mode | extended_global_mode

basic_global_mode ::= in | in out | out

extended_global_mode ::= Overriding basic_global_mode

global_set ::= global_name {, global_name}

global_designator ::= all | Synchronized | global_name

global_name ::= object_name | module_name

基本原理

[编辑 | 编辑源代码]

-

-

华夏公益教科书