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

13 lines
271 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type Foo = unit {
x: bytes &size=1;
switch ( self.x ) {
b"A" -> a8: int8;
b"B" -> a16: int16;
b"C" -> a32: int32;
};
on %done { print self; }
};