summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-15 02:36:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-15 02:36:50 -0400
commit50ee03e3f0a44197722e6c3e85d1f60c48403576 (patch)
tree17e0c914e8493cb8028b5d02b64cf6f6f2b83b5e /src/parser.h
parentb73c31c7259ee12bf746f477c9c9919fe72d5394 (diff)
downloadfork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.tar.gz
fork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.tar.bz2
fork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.zip
Fixed the way that nested caught exceptions are rethrown, and how value
expressions are displayed when errors are found in them.
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser.h b/src/parser.h
index a9828c05..1ad80e82 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -92,10 +92,11 @@ public:
TRACE_DTOR(parser_t);
}
- ptr_op_t parse(std::istream& in, const flags_t flags = EXPR_PARSE_NORMAL);
+ ptr_op_t parse(std::istream& in, const flags_t flags = EXPR_PARSE_NORMAL,
+ const string * original_string = NULL);
ptr_op_t parse(string& str, const flags_t flags = EXPR_PARSE_NORMAL) {
std::istringstream stream(str);
- return parse(stream, flags);
+ return parse(stream, flags, &str);
}
};