aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-18 14:14:32 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-20 21:32:02 -0700
commite5ef45e4c04b6126ea74c4010b2d8fe1c0b06cca (patch)
treed200c10a700c9cfae10d170a600acfda8508086a /parser.h
parente780637cf42bc8d26e0e963f5ff84b11007459c5 (diff)
Rewrite parser_t::test_args and parser_t::eval_args to use new parser
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/parser.h b/parser.h
index 3e4a431f..15de1e98 100644
--- a/parser.h
+++ b/parser.h
@@ -345,7 +345,7 @@ public:
\param arg_src String to evaluate as an argument list
\param output List to insert output into
*/
- void eval_args(const wcstring &arg_src, std::vector<completion_t> &output);
+ void expand_argument_list(const wcstring &arg_src, std::vector<completion_t> &output);
/**
Sets the current evaluation error. This function should only be used by libraries that are called by
@@ -438,12 +438,9 @@ public:
void get_backtrace(const wcstring &src, const parse_error_list_t &errors, wcstring *output) const;
/**
- Test if the specified string can be parsed as an argument list,
- e.g. sent to eval_args. The result has the first bit set if the
- string contains errors, and the second bit is set if the string
- contains an unclosed block.
+ Detect errors in the specified string when parsed as an argument list. Returns true if an error occurred.
*/
- int test_args(const wchar_t * buff, wcstring *out, const wchar_t *prefix);
+ bool detect_errors_in_argument_list(const wcstring &arg_list_src, wcstring *out_err, const wchar_t *prefix);
/**
Tell the parser that the specified function may not be run if not