From: Gaël de C. <Gae...@ce...> - 2012-03-21 10:19:47
|
Thanks Bill and Joel. It works with your help ! Anyway, I still doesnt understand exactly. It is not quite intuitive. I think I should read again all Spirit documentation because my last complete reading was 5 or 6 years ago, long before the major refactorings :-) Regards, Gaël Le mercredi 21 mars 2012 08:37:11 Joel de Guzman a écrit : > On 3/21/2012 1:51 AM, Gaël de Chalendar wrote: > > Hello, > > > > The attached grammar does not work anymore as I try it on a new Spirit > > version. The underscores (_) in the identifiers are now replaced by > > unpritable characters. > As Bill noted, use char_('_') if you want to make underscores > significant: > > identifier %= +(alnum | char_('_')); > > The issue is that later versions of spirit are stricter with > attributes. Plain '_' does not expose an attribute (unused_type_ > while char_('_') has a char attribute. > > Regards, -- Gael de Chalendar CEA LIST Laboratoire Vision et Ingénierie des Contenus (Vision and Content Engineering Laboratory) CEA SACLAY - NANO INNOV BAT. 861 Point courier 173 91191 GIF SUR YVETTE Tél.:+33.1.69.08.01.50 Fax:+33.1.69.08.01.15 Email : Gael.D.O.T.de-Chalendar.A@T.cea.D.O.T.fr |