main.aug diagrams
Function and constructor middleware
Project overview · Compiled explanation
Class interactions
100%
Mermaid source
flowchart TD
n0["Greeter"]
n1["describe"]
n2["main.aug"]
n2 -->|"calls; calls greet"| n0
n2 -->|"calls"| n1
Sequences
Call arrows identify checked targets; loop and branch frames determine when they run. Open that target’s module to follow its implementation. Branches describe alternatives; loops describe repeated work. Native calls and interface dispatch stop at their declared contracts. Exit notes end that path; enclosing recovery and cleanup remain visible.
Startup
100%
Mermaid source
sequenceDiagram
participant p0 as Startup
participant p1 as app
participant p2 as August runtime
participant p3 as Greeter
participant p4 as greeter: Greeter
opt Try body; stops on a checked failure
p0->>p1: describe(label=”value”, x=6)
p1-->>p0: describe result: string
p0->>p2: print(value=describe result)
end
opt Catch ValidationError
p0->>p2: print(value=”rejected”)
end
p0->>p3: Greeter(name=”AugScript”)
p3-->>p0: greeter: Greeter
p0->>p4: greet()
p4-->>p0: greet result: string
p0->>p2: print(value=greet result)
opt Try body; stops on a checked failure
p0->>p1: describe(x=-1, label=”invalid”)
p1-->>p0: describe result 2: string
end
opt Catch ValidationError
p0->>p2: print(value=”rejected”)
end
Called contracts
- Greeter — app.aug
- Greeter.greet — app.aug
- describe — app.aug