Skip to main content

parse

Function parse 

Source
pub fn parse(expression: &str) -> Result<AstNode, ParserError>
Expand description

Parse a JSONata expression string into an AST

This is the main entry point for parsing. Runs the post-parse ast_transform pass (ancestor-slot resolution, @/#/% unification) unconditionally, matching jsonata-js’s processAST always running immediately after the raw Pratt parse.