Evolution of symbolic grammar systems