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

19 lines
266 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type A = unit {
a: b"A";
};
type B = unit {
b: uint16(0xffff);
};
public type Foo = unit {
switch {
-> a: A;
-> b: B;
};
on %done { print self; }
};