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

15 lines
263 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type Foo = unit {
a: int8;
if ( self.a == 1 ) {
b: int8;
}
else {
c: int8;
}; # note the trailing semicolon
on %done { print self; }
};