aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_tree.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-02 16:03:05 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-02 16:03:05 -0800
commit1fa9167f25d24b9c067ecb67c688adf40e418c00 (patch)
treeb0c565ca9a40ad5e1dc38c65203ab2e751e2567e /parse_tree.h
parentcc12225142fbb0085dc4af935aa84a747384d717 (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.h4
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: