def debug_print(lst, lvl=<NUM_LIT:0>):
pad = '<STR_LIT>'.join(['<STR_LIT>'] * lvl)<EOL>t = type(lst)<EOL>if t is list:<EOL><INDENT>for p in lst:<EOL><INDENT>debug_print(p, lvl)<EOL><DEDENT><DEDENT>elif hasattr(lst, '<STR_LIT>'):<EOL><INDENT>print(pad, t)<EOL>debug_print(list(flatten(lst.tokens)), lvl + <NUM_LIT:1>)<EOL><DEDENT>
Print scope tree
    args:
        lst (list): parse result
        lvl (int): current nesting level