Derive Macro wagon_macros::TokenMapper

source ·
#[derive(TokenMapper)]
Expand description

Derive macro for the wagon-parser::helpers::TokenMapper trait.

If we have an enum that has fields with the exact same names as that of specific wagon-lexer::math::Math tokens. We can automatically derive this trait to convert those tokens into instances of this enum.