diff --git a/runtime/Java/src/org/antlr/v4/runtime/BailErrorStrategy.java b/runtime/Java/src/org/antlr/v4/runtime/BailErrorStrategy.java index 2c44ae1f2..c25e654b2 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/BailErrorStrategy.java +++ b/runtime/Java/src/org/antlr/v4/runtime/BailErrorStrategy.java @@ -29,7 +29,9 @@ package org.antlr.v4.runtime; -/** Bail out of parser at first syntax error */ +/** Bail out of parser at first syntax error. Do this to use it: + * myparser.setErrorHandler(new BailErrorStrategy()); + */ public class BailErrorStrategy extends DefaultErrorStrategy { /** Instead of recovering from exception e, Re-throw wrote it wrapped * in a generic RuntimeException so it is not caught by the