From fe1691da78540dcb4cf828655787c4a78154903d Mon Sep 17 00:00:00 2001 From: parrt Date: Fri, 25 Nov 2011 16:25:30 -0800 Subject: [PATCH] update comment [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9461] --- runtime/Java/src/org/antlr/v4/runtime/BailErrorStrategy.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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