Skip to main content

parse_slang

Function parse_slang 

Source
pub fn parse_slang(src: &str) -> Option<Tree>
Expand description

Parse Slang source into a tree-sitter CST.

None only if the grammar fails to load or the parser is cancelled; syntax errors do not return None, they appear as ERROR nodes in the tree.