diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-02 16:03:05 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-04 02:54:08 -0800 |
commit | 8d6b0c8d764ee6500301ecb937eb636216d9bcd4 (patch) | |
tree | ea98ef7245551499729cdf46717544f9cb61edf2 /parse_tree.h | |
parent | 14867742492f928cd702499da8662d344c144e39 (diff) |
Allow the caller to specify the goal node when parsing a string via the
new parser. This enables parsing either a job list or an argument list.
Diffstat (limited to 'parse_tree.h')
-rw-r--r-- | parse_tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_tree.h b/parse_tree.h index 0add08cd..f6406be4 100644 --- a/parse_tree.h +++ b/parse_tree.h @@ -200,8 +200,8 @@ public: parse_node_list_t specific_statements_for_job(const parse_node_t &job) const; }; -/* The big entry point. Parse a string! */ -bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse_node_tree_t *output, parse_error_list_t *errors); +/* The big entry point. Parse a string, attempting to produce a tree for the given goal type */ +bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t flags, parse_node_tree_t *output, parse_error_list_t *errors, parse_token_type_t goal = symbol_job_list); /* Fish grammar: |