pub fn parse_to_ast(source: &str) -> Result<Program, ParseError>Expand description
Parse bash source and convert to the typed AST. Returns an error if any node kind is unrecognized (we treat unknown kinds as a bug rather than silently dropping them, so the typed surface stays in lockstep with the grammar).