From: Morgan Deters Date: Fri, 27 Dec 2013 17:21:20 +0000 (-0500) Subject: Fix for ANTLR warning. X-Git-Tag: cvc5-1.0.0~6987^2~18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b75a8f448288f416dcfeb5672c915c7add877da;p=cvc5.git Fix for ANTLR warning. --- 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(); }