tree grammar example