mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 05:31:14 -03:00
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.
This commit is contained in:
@@ -200,8 +200,8 @@ class parse_node_tree_t : public std::vector<parse_node_t>
|
||||
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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user