Skip to main content

parse_shell_commands_tree_sitter

Function parse_shell_commands_tree_sitter 

Source
pub fn parse_shell_commands_tree_sitter(
    script: &str,
) -> Result<Vec<Vec<String>>, String>
Expand description

Parses a shell script using tree-sitter bash grammar only (no fallback tokenization).

Use this when caller behavior must be strictly gated on bash grammar validity.