Version 5 (modified by Charles, 12 years ago) |
---|
Namespace
namespace <namespaceId>
Declare a namespace to be followed by declarations belonging to it. Indenting the content of the namespace is optional.
<namespaceId> may be a single Toplevel Identifier ([A-Z][a-zA-Z0-9_]*) or a sequence of Identifiers separated by '.'.
Each Identifier within the Namespace sequence must start with an uppercase letter.
A Namespace may contain
- A DocString directly after the namespace declaration documenting the Namespace. (Currently not implemented)
- Class Definition
- Interface Definition
- Structure Definition
- Enumeration
- Signature
- Extension Definition
- Mixin Definition
Example
namespace Test ... namespace Foo.Bar.Baz ...