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:
parent
b6b5065571
commit
a4d9642cf2
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue