def p_stmt_list1(p):
    # stmt may be a list of simple_stmt due to this piece of grammar:
    # simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
    stmt = p[1]
    if isinstance(stmt, list):
        res = stmt + p[2]
    else:
        res = [stmt] + p[2]
    p[0] = res
stmt_list : stmt stmt_list
dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_stmt_list1