def p_const_vector_elem_list(p):
    """ const_number_list : expr
    """
    if p[1] is None:
        return

    if not is_static(p[1]):
        if isinstance(p[1], symbols.UNARY):
            tmp = make_constexpr(p.lineno(1), p[1])
        else:
            api.errmsg.syntax_error_not_constant(p.lexer.lineno)
            p[0] = None
            return
    else:
        tmp = p[1]

    p[0] = [tmp]
def p_const_vector_elem_list ( p ) : if p [ 1 ] is None : return if not is_static ( p [ 1 ] ) : if isinstance ( p [ 1 ] , symbols . UNARY ) : tmp = make_constexpr ( p . lineno ( 1 ) , p [ 1 ] ) else : api . errmsg . syntax_error_not_constant ( p . lexer . lineno ) p [ 0 ] = None return else : tmp = p [ 1 ] p [ 0 ] = [ tmp ]
const_number_list : expr