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

22 lines
329 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
public type test = unit {
foo: Foo &try;
bar: Bar;
on %done { print self; }
};
type Foo = unit {
a: int8 {
if ( $$ != 1 )
self.backtrack();
}
b: int8;
};
type Bar = unit {
a: int8;
b: int8;
};