macro_rules! assert_syntax {
    ($cond:expr, $msg:literal) => { ... };
}
Expand description

assert_syntax! is a parser specific utility macro for asserting a syntax test, and returning a SyntaxError with the provided message if the test fails.