pest_derive 2.9.3

pest's derive macro
Documentation
1
2
3
4
5
6
7
8
9
// Example grammar from the issue demonstrating deep nesting
// This grammar can cause stack overflow with deeply nested parentheses

WHITESPACE = _{ " " | "\t" | "\n" | "\r" }
expression = { SOI ~ add_expr ~ EOI }
add_expr = { mul_expr ~ ("+" ~ mul_expr)* }
mul_expr = { primary ~ ("*" ~ primary)* }
primary = { number | "(" ~ add_expr ~ ")" }
number = @{ ASCII_DIGIT+ }