Skip to main content

parse_ast

Function parse_ast 

Source
pub fn parse_ast(query: &str) -> Result<Ast>
Expand description

Parse a script and transform it into the AST.

The tokens are produced once and handed to both halves. Calling crate::parse here instead would be shorter and would tokenize the query a second time, which cargo xtask bench prices at about a tenth of the whole front end.