In a 3-quart pan, melt the butter over medium heat. Add nuts, if used, and stir until lightly toasted; lift out with a slotted spoon and set aside. Increase heat to medium-high and add onion, carrot, garlic, and parsley. Cook, stirring frequently, until limp. Add barley , rice, and bulgur; cook, stirring, until lightly browned. Add broth, sherry, basil, and oregano. Bring to boiling, then reduce heat, cover, and simmer until tender, about 45 minutes. Remove pan from heat and let stand covered 10 minutes. Add salt and pepper to taste. Garnish with toasted nuts.