From: Morgan Deters Date: Sun, 8 Jun 2014 21:55:23 +0000 (-0400) Subject: Better error when there are \backslashes in |quoted symbols|. X-Git-Tag: cvc5-1.0.0~6850 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bf6c4aa1dabef2f3abd14124b16cbf1900cf3de;p=cvc5.git Better error when there are \backslashes in |quoted symbols|. --- diff --git a/src/parser/smt2/Smt2.g b/src/parser/smt2/Smt2.g index 39f746244..8fa047885 100644 --- a/src/parser/smt2/Smt2.g +++ b/src/parser/smt2/Smt2.g @@ -1551,8 +1551,12 @@ symbol[std::string& id, PARSER_STATE->checkDeclaration(id, check, type); } } - | UNTERMINATED_QUOTED_SYMBOL EOF - { PARSER_STATE->unexpectedEOF("unterminated |quoted| symbol"); } + | UNTERMINATED_QUOTED_SYMBOL + ( EOF + { PARSER_STATE->unexpectedEOF("unterminated |quoted| symbol"); } + | '\\' + { PARSER_STATE->unexpectedEOF("backslash not permitted in |quoted| symbol"); } + ) ; /**