mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
parsing of SMT 2.5 style string literals
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b6b5065571
commit
a4d9642cf2
|
@ -171,11 +171,17 @@ namespace smt2 {
|
||||||
throw scanner_exception("unexpected end of string", m_line, m_spos);
|
throw scanner_exception("unexpected end of string", m_line, m_spos);
|
||||||
if (c == '\"') {
|
if (c == '\"') {
|
||||||
next();
|
next();
|
||||||
m_string.push_back(0);
|
if (curr() == '\"') {
|
||||||
return STRING_TOKEN;
|
m_string.push_back(c);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_string.push_back(0);
|
||||||
|
return STRING_TOKEN;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (c == '\n')
|
else if (c == '\n') {
|
||||||
new_line();
|
new_line();
|
||||||
|
}
|
||||||
else if (c == '\\') {
|
else if (c == '\\') {
|
||||||
next();
|
next();
|
||||||
c = curr();
|
c = curr();
|
||||||
|
|
Loading…
Reference in a new issue