Updated README.

pull/3/head
yhirose 9 years ago
parent 4eab716a6a
commit 0654a16ebc
  1. 4
      README.md

@ -295,14 +295,14 @@ The following are available operators:
Adjust definitions
------------------
It's possible to add and override definitions with parser operaters.
It's possible to add/override definitions.
```c++
auto syntax = R"(
ROOT <- _ 'Hello' _ NAME '!' _
)";
Rules rules = {
Rules additional_rules = {
{
"NAME", usr([](const char* s, size_t n, SemanticValues& sv, any& c) -> size_t {
static vector<string> names = { "PEG", "BNF" };

Loading…
Cancel
Save