enum_parse

Function enum_parse 

Source
pub fn enum_parse<N, T>(
    f: fn(&T) -> Option<N>,
    stack: &'_ mut Vec<T>,
) -> Option<N>
Expand description

Parser for consuming and testing a single token. Takes a function and the stack as input. The input function should convert the token into the parse node.