def p_lconst_list(self, p):
        '''lconst_list : lconst_list COMMA lconst
                       | lconst'''
        if len(p) == 4:
            p[1].append(p[3])
            p[0] = p[1]
        elif len(p) == 2:
            p[0] = [p[1]]
def p_lconst_list ( self , p ) : if len ( p ) == 4 : p [ 1 ] . append ( p [ 3 ] ) p [ 0 ] = p [ 1 ] elif len ( p ) == 2 : p [ 0 ] = [ p [ 1 ] ]
lconst_list : lconst_list COMMA lconst
                       | lconst