dol 0.8.1

DOL (Design Ontology Language) - A declarative specification language for ontology-first development
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Test: Basic module with gene and function
// Expected: Should parse as module with two declarations

pub gene Container {
    has id: UInt64
    has name: String
}

pub fun create(name: String) -> Container {
    return Container { id: 0, name: name }
}

exegesis {
    Basic module test case demonstrating a gene and function
    in a single module file.
}