Skip to content

Commit 6d03c8d

Browse files
committed
Add documentation for contrib/limit_depth.hpp
1 parent 663a9f4 commit 6d03c8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/Contrib-and-Examples.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ For all questions and remarks contact us at **taocpp(at)icemx.net**.
4040

4141
* Grammars and actions for PEGTL-input-to-integer conversions.
4242

43+
###### `<tao/pegtl/contrib/limit_depth.hpp>`
44+
45+
* Limits the nesting level of rules when parsing a grammar, prevents stack overflows.
46+
* Can be applied selectively at specific rules to improve efficiency.
47+
* See `src/test/pegtl/limit_depth.cpp`.
48+
4349
###### `<tao/pegtl/contrib/json.hpp>`
4450

4551
* JSON grammar according to [RFC 7159](https://tools.ietf.org/html/rfc7159) (for UTF-8 encoded JSON only).

0 commit comments

Comments
 (0)