Posted by
hernanmd on
Oct 08, 2010; 7:29pm
URL: https://forum.world.st/Consuming-delimiters-in-PetitParser-tp2968917.html
Hi all,
I'm writing a parser like the following
( $> asParser , 'gi' asParser , $| asParser ,
( #digit asParser plus flatten plusLazy: $| asParser ) ,
( (#letter asParser / #digit asParser / #space asParser /
#punctuation asParser ) asParser plus flatten ) ) end
In the attachment you will see the my sample input and the parsing
result collection in which the last element is "|abc", but I want the
#plusLazy: (or #plusGreedy: ?) to consume the $| delimiter so it
results in
#($> 'gi' $| #('648') $| 'abc')
any suggestions?
Cheers,
--
Hernán Morales
Information Technology Manager,
Institute of Veterinary Genetics.
National Scientific and Technical Research Council (CONICET).
La Plata (1900), Buenos Aires, Argentina.
Telephone: +54 (0221) 421-1799.
Internal: 422
Fax: 425-7980 or 421-1799.
_______________________________________________
Pharo-users mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users