def get_actions_from_parse(parse):
actions = []
if "symbol_type" in parse:
if parse["symbol_type"] == "event":
#tmp_event, tmp_event_value = parse["symbol"].rsplit("_",1)
actions.append(parse["symbol"])
if "children" in parse:
for child in parse["children"]:
child_actions = get_actions_from_parse(child)
actions += child_actions
return actions
评论列表
文章目录