Symbolic Learning Enables Self-Evolving Agents