def p_start(p):
    """start : NEWLINE lines end
             | lines end"""
    if len(p) == 4:
        lines = p[2]
        end = p[3]
    elif len(p) == 3:
        lines = p[1]
        end = p[2]
    if end:
        lines.append(end)
    p[0] = lines
