You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it's more efficient to factor out common left prefix. For example instead of <code>
185
185
anyOf(expr.followedBy(";"), expr)</code>, use <code>expr.optionallyFollowedBy(";")</code> instead.
186
186
187
-
<p>WARNING: A poorly-written grammar with long common prefixes may incur expensive backtracking
188
-
overhead. And if you define recursive grammars using <ahref="#define(java.util.function.Function)"><code>define()</code></a> or <ahref="Parser.Rule.html" title="class in com.google.common.labs.parse"><code>Parser.Rule</code></a>, maliciously crafted input (think of 10K left parens in an expression parser)
187
+
<p>WARNING: A poorly-written grammar with long common prefixes among <code>anyOf()</code> choices
188
+
may incur expensive backtracking overhead.
189
+
190
+
<p>WARNING: If you define recursive grammars using <ahref="#define(java.util.function.Function)"><code>define()</code></a> or <ahref="Parser.Rule.html" title="class in com.google.common.labs.parse"><code>Parser.Rule</code></a>, maliciously crafted input (think of 10K left parens in an expression parser)
0 commit comments