Commit ebb84131 authored by Damien George's avatar Damien George
Browse files

unix/main: Allow to print the parse tree in coverage build.

Passing -v -v -v on the command line of the coverage build will now print
the parse tree (as well as other things at this verbosity level).
parent c305ae32
......@@ -113,11 +113,14 @@ STATIC int execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind,
mp_parse_tree_t parse_tree = mp_parse(lex, input_kind);
mp_parse_node_print(parse_tree.root, 0);
// allow to print the parse tree in the coverage build
if (mp_verbose_flag >= 3) {
mp_parse_node_print(parse_tree.root, 0);
mp_obj_t module_fun = mp_compile(&parse_tree, source_name, emit_opt, is_repl);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment