Macro genco::toks [] [src]

macro_rules! toks {
    ($($x:expr),*) => { ... };
    ($($x:expr,)*) => { ... };
}

Helper macro to reduce boilerplate needed with nested token expressions.

Examples

Be careful when using this code, it's not being tested!
let n1: genco::Tokens<()> = toks!("var v = ", "bar".quoted(), ";");