Function parse_expr

Source
pub fn parse_expr(pairs: Pairs<'_, Rule>) -> Expr
Expand description

Parse the input pairs into an abstract syntax tree representing the expression.

§Arguments

  • pairs - A sequence of tokens representing the input expression.

§Returns

An abstract syntax tree representing the parsed expression.