Yes, the #any asParser star consume all your stream.

for your example you can do:
str := 'a0b'.
#digit asParser negate star, #digit asParser, #any asParser star parse: str.

2017-01-20 15:24 GMT+01:00 Peter Uhnak <i.uhnak@gmail.com>:
Is PetitParser eager by default?

I've used PetitParser countless times so I am really baffled why this doesn't work

str := 'a0b'.
#any asParser star, #digit asParser, #any asParser star parse: str.

-> PPFailure (input expected at: 3)


Thanks,
Peter




--
Guillaume Larcheveque