def p_statement_list(p):
    """statement_list : statement statement_list
                      | empty"""
    if p[1] is None:
        return []
    if len(p) < 3 or p[2] is None:
        p[0] = [p[1]]
    else:
        p[0] = [p[1]] + p[2]
