From 4b75a8f448288f416dcfeb5672c915c7add877da Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Fri, 27 Dec 2013 12:21:20 -0500 Subject: [PATCH] Fix for ANTLR warning. --- src/parser/smt2/Smt2.g | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index 13850aba6..efddb031b 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -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(); } -- 2.30.2