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))