Expand description
Internal utilities for parser.
Re-exports§
pub use duration::display_duration;
pub use duration::parse_duration;
pub use number::parse_str_radix;
Modules§
Traits§
- Expr
Visitor - Trait that implements the Visitor pattern
for a depth first walk on Expr AST.
pre_visit
is called before any children are visited, and thenpost_visit
is called after all children have been visited. Onlypre_visit
is required.
Functions§
- walk_
expr - A util function that traverses an AST Expr in depth-first order. Returns
Ok(true)
if all nodes were visited, andOk(false)
if any call topre_visit
orpost_visit
returnedOk(false)
and may have cut short the recursion.