parse parens
This commit is contained in:
parent
e2bdfc58cd
commit
cb714e70b7
1 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue