Function pomelo_parse::grammar::combinators::descend_right
source · pub fn descend_right(
p: &mut Parser<'_>,
inner_node_kind: SyntaxKind,
before: impl Fn(&mut Parser<'_>),
continue_if: impl Fn(&mut Parser<'_>) -> bool,
caller: impl Fn(&mut Parser<'_>)
)
Expand description
outer_node_kind: e.g. EXP inner_node_kind: e.g., ORELSE_EXP
This folds expressions right associatively.
It should be called recursively by putting the
calling function in the caller
arg.