diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/parser/smt2/Smt2.g | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index e2e52b158..13850aba6 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -336,8 +336,10 @@ command returns [CVC4::Command* cmd = NULL] } | /* value query */ GET_VALUE_TOK { PARSER_STATE->checkThatLogicIsSet(); } - LPAREN_TOK termList[terms,expr] RPAREN_TOK - { $cmd = new GetValueCommand(terms); } + ( LPAREN_TOK termList[terms,expr] RPAREN_TOK + { $cmd = new GetValueCommand(terms); } + | term[expr, expr2] + { 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(); } { cmd = new GetAssignmentCommand(); } |