def p_unit_list(self, p):
if isinstance(p[<NUM_LIT:1>], list):<EOL><INDENT>if len(p) >= <NUM_LIT:3>:<EOL><INDENT>if isinstance(p[<NUM_LIT:2>], list):<EOL><INDENT>p[<NUM_LIT:1>].extend(p[<NUM_LIT:2>])<EOL><DEDENT>else:<EOL><INDENT>p[<NUM_LIT:1>].append(p[<NUM_LIT:2>])<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>p[<NUM_LIT:1>] = [p[<NUM_LIT:1>]]<EOL><DEDENT>p[<NUM_LIT:0>] = p[<NUM_LIT:1>]<EOL>
unit_list                : unit_list unit
                                     | unit