diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 22:39:12 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 22:39:12 -0800 |
commit | 096f8504335577d05392436ddcffd5bceabef6d4 (patch) | |
tree | 6d7f48aa9d76cc03a14cf51eb78437036b66cd74 /parse_util.cpp | |
parent | ec469782c8f146476de28453e971642095e4f381 (diff) |
Eliminate class parse_t
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index cf196db1..027a0e9b 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -878,7 +878,7 @@ std::vector<int> parse_util_compute_indents(const wcstring &src) /* Parse the string. We pass continue_after_error to produce a forest; the trailing indent of the last node we visited becomes the input indent of the next. I.e. in the case of 'switch foo ; cas', we get an invalid parse tree (since 'cas' is not valid) but we indent it as if it were a case item list */ parse_node_tree_t tree; - parse_t::parse(src, parse_flag_continue_after_error | parse_flag_accept_incomplete_tokens, &tree, NULL /* errors */); + parse_tree_from_string(src, parse_flag_continue_after_error | parse_flag_accept_incomplete_tokens, &tree, NULL /* errors */); /* Start indenting at the first node. If we have a parse error, we'll have to start indenting from the top again */ node_offset_t start_node_idx = 0; @@ -994,7 +994,7 @@ parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src, pars // Parse the input string into a parse tree // Some errors are detected here - bool parsed = parse_t::parse(buff_src, parse_flag_leave_unterminated, &node_tree, &parse_errors); + bool parsed = parse_tree_from_string(buff_src, parse_flag_leave_unterminated, &node_tree, &parse_errors); if (! parsed) { errored = true; |