Updated README.

This commit is contained in:
yhirose 2015-06-15 17:47:19 -04:00
parent 9765e095ab
commit 5ed7c738a8

View File

@ -242,7 +242,7 @@ There are some ways to *search* a peg pattern in a document.
using namespace peglib;
auto syntax = R"(
ROOT <- '[' $< [a-z0-9]+ > ']'
ROOT <- '[' $< [a-z0-9]+ > ']'
)";
auto s = " [tag1] [tag2] [tag3] ";
@ -330,10 +330,10 @@ Rules additional_rules = {
static vector<string> names = { "PEG", "BNF" };
for (const auto& name: names) {
if (name.size() <= n && !name.compare(0, name.size(), s, name.size())) {
return name.size();
return name.size(); // processed length
}
}
return -1;
return -1; // parse error
})
},
{
@ -363,7 +363,6 @@ Tested Compilers
TODO
----
* Predicate control
* Unicode support
License