6 Nov
2004
6 Nov
'04
4:13 p.m.
Of "course". That is what the optional operator is for. Something like: *alpha_p << !(ch_p('-') << *digit_p) Cory Nelson wrote:
I'm trying to write a parser with elements that might not occur - is this possible?
like:
string ['-' number]
that matches "foo" or "foo-123"