[][src]Macro peepmatic_traits::define_parse_and_typing_rules_for_operator

macro_rules! define_parse_and_typing_rules_for_operator {
    (
        $operator:ident {
            $(
                $keyword:ident => $variant:ident {
                    $( immediates( $($immediate:ident),* ); )?
                    $( parameters( $($parameter:ident),* ); )?
                    result( $result:ident );
                    $( is_reduce($is_reduce:expr); )?
                    $( is_extend($is_extend:expr); )?
                }
            )*
        }
        $( parse_cfg($parse_cfg:meta); )?
    ) => { ... };
}

Define both a wast::parser::Parse implementation and a peepmatic_traits::TypingRules implementation for the given operator type.