Paren expression

This commit is contained in:
greg 2016-01-15 01:15:57 -08:00
parent e3c8753a4d
commit 1f7ae2e30f
1 changed files with 4 additions and 2 deletions

View File

@ -221,8 +221,10 @@ impl Parser {
} }
fn paren_expr(&mut self) -> ParseResult<Expression> { fn paren_expr(&mut self) -> ParseResult<Expression> {
expect!(self, LParen, "Expected LParen");
unimplemented!() let expr = try!(self.expression());
expect!(self, RParen, "Expected LParen");
Ok(expr)
} }
} }