zeek/auxil/spicy/doc/programming/examples/_parse-unit-params.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
236 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type Bar = unit(a: string) {
x: uint8 { print "%s: %u" % (a, self.x); }
};
public type Foo = unit {
y: Bar("Spicy");
on %done { print self; }
};