def p_stmt_list(p):
    """stmt_list : stmt_list stmt"""
    p[0] = p[1]
    if p[2].type not in ("newline",):
        p[0].children.append(p[2])
dataset/ETHPy150Open cournape/Bento/bento/parser/rules.py/p_stmt_list/original