File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Modules
2
2
3
- A module is a container for zero or more [ items] .
3
+ > ** <sup >Syntax:<sup >**
4
+ > _ Module_ :
5
+ >   ;  ;   ;  ; ` mod ` [ IDENTIFIER] ` ; `
6
+ >   ;  ; | ` mod ` [ IDENTIFIER] ` { `
7
+ >   ;  ;   ;  ;  ;  ; [ _ InnerAttribute_ ] <sup >\* </sup >
8
+ >   ;  ;   ;  ;  ;  ; [ _ Item_ ] <sup >\* </sup >
9
+ >   ;  ;   ;  ; ` } `
4
10
5
- [ items ] : items.html
11
+ A module is a container for zero or more [ items] .
6
12
7
13
A _ module item_ is a module, surrounded in braces, named, and prefixed with the
8
14
keyword ` mod ` . A module item introduces a new, named module into the tree of
@@ -61,3 +67,11 @@ mod thread {
61
67
mod local_data;
62
68
}
63
69
```
70
+
71
+ [ IDENTIFIER ] : identifiers.html
72
+
73
+ [ _InnerAttribute_ ] : attributes.html
74
+ [ _OuterAttribute_ ] : attributes.html
75
+
76
+ [ _Item_ ] : items.html
77
+ [ items ] : items.html
You can’t perform that action at this time.
0 commit comments