Grammar guided genetic programming application