From cb714e70b793ff31cc568c482e41697039ebb917 Mon Sep 17 00:00:00 2001 From: mehbark Date: Thu, 1 Jan 2026 23:42:39 -0500 Subject: [PATCH] parse parens --- src/parser.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 0adfed3..a2958a0 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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))