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 /builtin.cpp | |
parent | ec469782c8f146476de28453e971642095e4f381 (diff) |
Eliminate class parse_t
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin.cpp b/builtin.cpp index e4a3bf6f..4aab71d4 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -4298,7 +4298,7 @@ int builtin_parse(parser_t &parser, wchar_t **argv) const wcstring src = str2wcstring(&txt.at(0), txt.size()); parse_node_tree_t parse_tree; parse_error_list_t errors; - bool success = parse_t::parse(src, parse_flag_none, &parse_tree, &errors, true); + bool success = parse_tree_from_string(src, parse_flag_none, &parse_tree, &errors, true); if (! success) { stdout_buffer.append(L"Parsing failed:\n"); @@ -4311,7 +4311,7 @@ int builtin_parse(parser_t &parser, wchar_t **argv) stdout_buffer.append(L"(Reparsed with continue after error)\n"); parse_tree.clear(); errors.clear(); - parse_t::parse(src, parse_flag_continue_after_error, &parse_tree, &errors, true); + parse_tree_from_string(src, parse_flag_continue_after_error, &parse_tree, &errors, true); } const wcstring dump = parse_dump_tree(parse_tree, src); stdout_buffer.append(dump); |