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.

<<attachment: fasta1.jpg>>

_______________________________________________
Pharo-users mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users

Reply via email to