Skip to main content

parse_to_ast

Function parse_to_ast 

Source
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).