def parse_nested(<EOL>bels: list, char_locs: CharLocs, parsed: Parsed, errors: Errors<EOL>) -> Tuple[Parsed, Errors]:
for sp in char_locs[<EOL>"<STR_LIT>"<EOL>]:  <EOL><INDENT>ep, level = char_locs["<STR_LIT>"][sp]<EOL>if ep == -<NUM_LIT:1>:<EOL><INDENT>ep = len(bels) + <NUM_LIT:1><EOL><DEDENT>parsed[(sp, ep)] = {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT>": (sp, ep)}<EOL><DEDENT>return parsed, errors<EOL>
Parse nested BEL object