cpp-peglib icon indicating copy to clipboard operation
cpp-peglib copied to clipboard

A single file C++ header-only PEG (Parsing Expression Grammars) library

Results 17 cpp-peglib issues
Sort by recently updated
recently updated
newest added

Hello! I'm encountering some bizarre nondeterministic parsing errors when using `cpp-peglib`. I cannot reproduce the issue on another system, but I have a "minimal reproducer" which demonstrates the issue on...

need more information to verify

I would like to ask if it is possible to pass a specific target rule instead of using the main priority chain when parsing a string. Let me clarify with...

Not sure if it is ok to be merges as it, may be it need a bit of rework.

Hello, I noticed that the test [UserRuleTest.User_defined_rule_test](https://github.com/yhirose/cpp-peglib/blob/2ab5d27d7b866b210c52ee2718f00ef202da173a/test/test2.cc#L816) crash with a segmentation fault. The problem is hidden when running the test with ctest and appears when executing `build/test/peglib-test-main` directly. The segfault...

The following grammar produces a syntax error that has duplicate `expected` symbols. Given this input: `/foo:bar` It produces this error: `syntax error, unexpected ':', expecting '[', '[', '{', '$'.` Duplicate...

need more information to verify

[This article](https://duckdb.org/2024/11/22/runtime-extensible-parsers.html) reports cpp-peglib is 10 times slower than the YACC based parser used in Postgress. > Postgres takes on average 24 ms to parse this file using YACC. Note...

performance

Hi, When I use the latest version the function `line_info` return unexcepted result,Is it because char to char32_t,or any other reason.

need more information to verify