Closed GoogleCodeExporter closed 9 years ago
Ok, I think this was a case of user error. Parser.not(e) does not, and cannot,
consume any input upon success, because it was generated by a failure of the
underlying parser, and failures do not consume input. Therefore in order to use
a
not() with a repeat() or repeat1(), one has to add a parser in between which
consumes
the right amount of input, e.g.
character(e, sat, 'A').not(e).repeat1()
must be rewritten as:
character(e, sat, 'A').not(e).sequence(character(e)).repeat1()
Original comment by pelo...@gmail.com
on 19 Mar 2010 at 7:57
Original comment by pelo...@gmail.com
on 19 Mar 2010 at 7:59
Original issue reported on code.google.com by
pelo...@gmail.com
on 19 Mar 2010 at 2:20Attachments: