mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Updated README.
This commit is contained in:
parent
4eab716a6a
commit
0654a16ebc
@ -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…
Reference in New Issue
Block a user