Skip to main content

parse_with

Function parse_with 

Source
pub fn parse_with(parser: &Tabnas, source: &str) -> Result<Value, TabnasError>
Expand description

Parse with a parser the caller built, realizing the tree into plain engine values.

A parse builds its tree in a per-thread arena and the value the engine returns is a handle into it, so a caller driving a tabnas instance directly must call realize on the result before the next parse on that thread. This function does it for you.