parse parens

This commit is contained in:
mehbark 2026-01-01 23:42:39 -05:00
parent e2bdfc58cd
commit cb714e70b7

View file

@ -98,6 +98,12 @@ where
// let semicolon = just(Token::Semicolon).repeated().at_least(1);
choice((
just(Token::OpenParen)
.ignore_then(expr.clone())
.then_ignore(just(Token::CloseParen)),
// expr.clone()
// .then(expr.clone())
// .map(|(f, x)| Ast::App(Box::new(f), Box::new(x))),
ident
.clone()
.then_ignore(just(Token::Set))