Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> Result<Tree, String>
Expand description

Parse source with tree-sitter-yaml. Returns the parsed tree; source must be kept alive alongside the tree because nodes hold byte offsets into it.