📖
Rede Language Design
  • Overview
    • Introduction
    • Scope
    • Terms and Definitions
  • Annexes
    • Annex A - Complete Grammar
    • Annex B - Symbols and Keywords
    • Annex C - Code Examples
      • Behaviors
      • Comments
      • Crashes
      • Data Types
        • Built-in Types
          • Context Collections
            • Buckets
            • Compositions
              • Registrations
              • Deregistrations
            • Operables
          • Primitives
          • Value Collections
            • Arrays
            • Dictionaries
            • Lists
            • Sets
            • Tuples
        • Custom Types
      • Evaluation
      • Mappings
      • Meta
      • Operations
        • Groups
      • Patterns
    • Annex D - Program Examples
      • Hello World
      • FizzBuzz
      • Fibonacci
      • Shape Drawing
      • Deserialization
      • Serialization
Powered by GitBook
On this page
  • General Declaration
  • Assignment Variations
  • Reference Variations
  • Renaming Variations
  1. Annexes
  2. Annex C - Code Examples

Meta

The following code examples demonstrate how namespaces, renames, and constants can be specified for parts of a codebase through the meta declaration. See section [TBD] for details.

General Declaration

Section Name: 
    in Some Namespace (Inner Namespace),
    using Other Namespace,
    New Name [Other Namespace (Other Name)].

Assignment Variations

Section Name: in Some Namespace (Inner Namespace).
Section Name:  `Multiple namespace assignment, for three namespaces.`
    in Some Namespace (Inner Namespace, Other Inner Namespace),
    in Another Namespace( Inner Namespace (Inner Inner Namespace)).

Reference Variations

Section Name: using OtherNamespace(InnerNamespace).
Section Name:  `Multiple namespace referencing, for three namespaces.`
    using Other Namespace (Inner Namespace, Other Inner Namespace),
    using Another Namespace (Inner Namspace (Inner Inner Namespace)).

Renaming Variations

Section Name: New Context Name [Other Namespace (Other Context Name)].
Section Name: 
    New Context Name A [ Other Namespace (Other Context Name)],
    New Context Name B [Another Namespace (Inner Namespace (Another Context Name))].
PreviousMappingsNextOperations

Last updated 1 year ago