June 1, 2010
1:42 p.m.
Hi Adrien 2010/6/1 Adrien BARREAU <abarreau.dev@live.fr>:
Hello,
I need some help with petitparser. I encountered 2 problems. Here they are:
- I don't find to way in petitparser to: parse every string except a list of strings. For example, I want to parse all string except 'string' and 'STRING'.
Something like... ( 'string' asParser / 'STRING' asParser ) negate matches: 'STRING' ( 'string' asParser / 'STRING' asParser ) negate matches: 'STING'
- I don't find a way to parse a string without taking care of its case. For example, I want to parse 'string', 'STRING', 'String', 'stRINg', etc ...
you may lowercase your input String with #asLowercase? Hope it helps. Hernán