Support for Ctrl-C cancellation in new parser. Added tests for it too.

This commit is contained in:
ridiculousfish
2014-01-02 12:37:50 -08:00
parent 1863be7be4
commit 993148552e
6 changed files with 98 additions and 9 deletions

View File

@@ -287,6 +287,9 @@ class parser_t
/** Position of last error */
int err_pos;
/** Indication that we should skip all blocks */
bool cancellation_requested;
/** Stack of execution contexts. We own these pointers and must delete them */
std::vector<parse_execution_context_t *> execution_contexts;