macro_rules! asn1 {
() => { ... };
(seq $def:tt { $($body:tt)* } $($rest:tt)*) => { ... };
(choice $def:tt { $($body:tt)* } $($rest:tt)*) => { ... };
(seq of $name:ident($combinator:expr): $combinator_type:ty; $($rest:tt)*) => { ... };
(set of $name:ident($combinator:expr): $combinator_type:ty; $($rest:tt)*) => { ... };
}
Expand description
Allows multiple definitions involving SEQUENCE, SEQUENCE OF, SET OF, and CHOICE