pub type Hook = Rc<dyn Fn(&mut PrdGlobal<'_>, &[Token], usize, &mut Vec<ASTNode>) -> Result<usize, String>>;Expand description
Arguments:
&mut PrdGlobal- context&[Token]- tokenstreamusize- position in tokenstream.&mut Vec<ASTNode>- current partially-produced AST item.
Aliased Typeยง
pub struct Hook { /* private fields */ }