Fix for ANTLR warning.
authorMorgan Deters <mdeters@cs.nyu.edu>
Fri, 27 Dec 2013 17:21:20 +0000 (12:21 -0500)
committerMorgan Deters <mdeters@cs.nyu.edu>
Fri, 27 Dec 2013 17:21:20 +0000 (12:21 -0500)
src/parser/smt2/Smt2.g

index 13850aba6962fdf89000f816e3ff69de0daa85b9..efddb031b7092ef126c1c3216bdb7812d6939ffa 100644 (file)
@@ -338,7 +338,7 @@ command returns [CVC4::Command* cmd = NULL]
     GET_VALUE_TOK { PARSER_STATE->checkThatLogicIsSet(); }
     ( LPAREN_TOK termList[terms,expr] RPAREN_TOK
       { $cmd = new GetValueCommand(terms); }
-    | term[expr, expr2]
+    | ~LPAREN_TOK
       { PARSER_STATE->parseError("The get-value command expects a list of terms.  Perhaps you forgot a pair of parentheses?"); } )
   | /* get-assignment */
     GET_ASSIGNMENT_TOK { PARSER_STATE->checkThatLogicIsSet(); }