Macro vhdl_lang::expect_token
source · macro_rules! expect_token { ($tokens:expr, $token:ident, $($($kind:ident)|+ => $result:expr),*) => { ... }; }
Expand description
Expect any number of token kind patterns, return on no match with error diagnostic based on expected kinds
Note: never consumes a token it does not expect