Skip to main content

parse

Function parse 

Source
pub fn parse(source: &str) -> Option<Node>
Expand description

Parse a bash command string into an AST.

Returns None when tree-sitter fails to parse (e.g. malformed syntax) or when the grammar is unavailable.