From 1f7ae2e30f83f79a13c06f753339bf01e34e9969 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 15 Jan 2016 01:15:57 -0800 Subject: [PATCH] Paren expression --- src/parser.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 1167620..c1bb5d0 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -221,8 +221,10 @@ impl Parser { } fn paren_expr(&mut self) -> ParseResult { - - unimplemented!() + expect!(self, LParen, "Expected LParen"); + let expr = try!(self.expression()); + expect!(self, RParen, "Expected LParen"); + Ok(expr) } }