3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 20:38:43 +00:00

parsing of SMT 2.5 style string literals

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-12-03 09:46:18 -08:00
parent b6b5065571
commit a4d9642cf2

View file

@ -171,11 +171,17 @@ namespace smt2 {
throw scanner_exception("unexpected end of string", m_line, m_spos);
if (c == '\"') {
next();
m_string.push_back(0);
return STRING_TOKEN;
if (curr() == '\"') {
m_string.push_back(c);
}
else {
m_string.push_back(0);
return STRING_TOKEN;
}
}
if (c == '\n')
else if (c == '\n') {
new_line();
}
else if (c == '\\') {
next();
c = curr();