I'm using rust nom 4.0.0 where it supports switch!
macro:
named!(sw,
switch!(take!(4),
b"abcd" => tag!("XYZ") |
b"efgh" => tag!("123")
)
);
However, nom 7.1.1 doesn't support switch!
macro and I was wondering if there are other ways to achieve the same result with nom 7.1.1.