def p_constant_declarations(p):
    """constant_declarations : constant_declarations COMMA constant_declaration
                             | constant_declaration"""
    if len(p) == 4:
        p[0] = p[1] + [p[3]]
    else:
        p[0] = [p[1]]
