This parser is an implementation of a Packrat Parser with support for left-recursion. The algorithm for left recursion is a modified version of Packrat parsers can support left recursion.
I'm using Capture() to give names to expressions. In some points of the code, if I introduce a Capture(), the parser stops parsing without giving me an error. In the code I've written I've found three points where it happens.
I'm trying to create an importer for the unicode NameList.txt (http://www.unicode.org/Public/UNIDATA/NamesList.html the grammar and https://www.unicode.org/Public/UCD/latest/ucd/NamesList.txt the data). I've been able to do it using your peg 2.0.0 library but there are two bugs in your library/features I didn't comprehend that I had to work around.
I'm using Capture() to give names to expressions. In some points of the code, if I introduce a Capture(), the parser stops parsing without giving me an error. In the code I've written I've found three points where it happens.
Source code: KlcImporter.zip
change
to
or to
or change
to
or change
to
In all the three cases, the file won't be completely parsed.