def p_literal_list(self, p):
if len(p) == <NUM_LIT:3>:<EOL><INDENT>p[<NUM_LIT:0>] = p[<NUM_LIT:1>] + [p[<NUM_LIT:2>][<NUM_LIT:1>:-<NUM_LIT:1>]]<EOL><DEDENT>else:<EOL><INDENT>p[<NUM_LIT:0>] = [p[<NUM_LIT:1>][<NUM_LIT:1>:-<NUM_LIT:1>]]<EOL><DEDENT>
literal_list : literal_list LITERAL
                        | LITERAL