diff --git a/src/parser.js b/src/parser.js
index <HASH>..<HASH> 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -1489,12 +1489,17 @@ function parseExpression() {
 }
 
 export default function parse(code) {
-  source = '(' + code + ')';
+  source = code;
   index = 0;
   length = source.length;
   lookahead = null;
 
   peek();
 
-  return parseExpression();
+  var expr = parseExpression();
+
+  if (lookahead.type !== TokenEOF) {
+    throw new Error("Unexpect token after expression.");
+  }
+  return expr;
 }
Check that there is an EOF after the parsed expression