grammars: comment on rule repetitions

This commit is contained in:
Olivier Chafik 2024-04-24 14:11:42 +01:00
parent 724f879fa2
commit a61281fef5

View file

@ -163,6 +163,7 @@ namespace grammar_parser {
// the following rewrite rules: // the following rewrite rules:
// S{m,n} --> S S S (m times) S'(n-m) // S{m,n} --> S S S (m times) S'(n-m)
// S'(x) ::= S S'(x-1) | // S'(x) ::= S S'(x-1) |
// (... x definitions of these S' rules ...)
// S'(1) ::= S | // S'(1) ::= S |
// S{m,} --> S S S (m times) S' // S{m,} --> S S S (m times) S'
// S' ::= S S' | // S' ::= S S' |