def p_action_blocks(p):
if isinstance(p[<NUM_LIT:1>], list):<EOL><INDENT>if isinstance(p[<NUM_LIT:1>][<NUM_LIT:0>], list):<EOL><INDENT>p[<NUM_LIT:0>] = p[<NUM_LIT:1>][<NUM_LIT:0>] + [p[<NUM_LIT:2>]]<EOL><DEDENT>else:<EOL><INDENT>p[<NUM_LIT:0>] = p[<NUM_LIT:1>] + p[<NUM_LIT:2>]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>p[<NUM_LIT:0>] = [p[<NUM_LIT:1>], p[<NUM_LIT:2>]]<EOL><DEDENT>
action_blocks : action_blocks action_block