summaryrefslogtreecommitdiff
path: root/src/parser/parser.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-05-17 17:04:34 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-05-20 17:00:56 -0400
commitaef543d74c4fb23a86ad2986d67e7fc7f11d1feb (patch)
tree61fa1130327fffd2c48e340c54b41f80445c0509 /src/parser/parser.h
parentcb1871573012e12029b06674ccc13f143b09c8a4 (diff)
Fix parsing of SMT-LIBv2 |quoted| symbols that span newlines in interactive mode.
Thanks to David Cok for raising this issue.
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r--src/parser/parser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h
index d13fbf2d6..0761b4cda 100644
--- a/src/parser/parser.h
+++ b/src/parser/parser.h
@@ -462,6 +462,11 @@ public:
d_input->parseError(msg);
}
+ /** Unexpectedly encountered an EOF */
+ inline void unexpectedEOF(const std::string& msg) throw(ParserException) {
+ d_input->parseError(msg, true);
+ }
+
/**
* If we are parsing only, don't raise an exception; if we are not,
* raise a parse error with the given message. There is no actual
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback