Function gluon_parser::infix::reparse
source · pub fn reparse<Id>(
expr: SpannedExpr<Id>,
symbols: &dyn IdentEnv<Ident = Id>,
operators: &OpTable<Id>
) -> Result<SpannedExpr<Id>, (Spanned<Error, BytePos>, Option<Expr<Id>>)>where
Id: Eq + Hash + AsRef<str> + Debug,
Expand description
Reconstruct the infix expression using the correct associativities and precedences.
Inspired by Language.Haskell.Infix
.