File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dot-parse/src/main/java/com/google/common/labs/parse Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7070 * But it's more efficient to factor out common left prefix. For example instead of {@code
7171 * anyOf(expr.followedBy(";"), expr)}, use {@code expr.optionallyFollowedBy(";")} instead.
7272 *
73- * <p>WARNING: A poorly-written grammar with long common prefixes may incur expensive backtracking
74- * overhead. And if you define recursive grammars using {@link #define define()} or {@link
73+ * <p>WARNING: A poorly-written grammar with long common prefixes among {@code anyOf()} choices
74+ * may incur expensive backtracking overhead.
75+ *
76+ * <p>WARNING: If you define recursive grammars using {@link #define define()} or {@link
7577 * Parser.Rule}, maliciously crafted input (think of 10K left parens in an expression parser)
7678 * can cause StackOverflowError.
7779 */
You can’t perform that action at this time.
0 commit comments