List of usage examples for org.antlr.v4.runtime DefaultErrorStrategy subclass-usage
From source file com.eprosima.idl.parser.strategy.DefaultErrorStrategy.java
public class DefaultErrorStrategy extends org.antlr.v4.runtime.DefaultErrorStrategy { public static final DefaultErrorStrategy INSTANCE = new DefaultErrorStrategy(); @Override public void reportError(Parser recognizer, RecognitionException e) { if (inErrorRecoveryMode(recognizer)) {
From source file com.github.jknack.handlebars.internal.HbsErrorStrategy.java
/**
* Fail in upon first error.
*
* @author edgar.espina
* @since 0.10.0
*/
From source file com.globalforge.infix.FixRulesErrorStrategy.java
/** * An extension to the Antlr class allowing for more detailed error handling. * * @see DefaultErrorStrategy * @author Michael C. Starkie */ public class FixRulesErrorStrategy extends DefaultErrorStrategy {
From source file com.huawei.streaming.cql.semanticanalyzer.parser.CQLErrorStrategy.java
/**
* CQL?
* <p/>
* ??debug??
* ???????
* parser?
From source file com.nextbreakpoint.nextfractal.contextfree.compiler.CompilerErrorStrategy.java
public class CompilerErrorStrategy extends DefaultErrorStrategy { private static final Logger logger = Logger.getLogger(CompilerErrorStrategy.class.getName()); private List<CompilerError> errors; public CompilerErrorStrategy(List<CompilerError> errors) { this.errors = errors;
From source file com.nextbreakpoint.nextfractal.mandelbrot.compiler.CompilerErrorStrategy.java
public class CompilerErrorStrategy extends DefaultErrorStrategy { private static final Logger logger = Logger.getLogger(CompilerErrorStrategy.class.getName()); private List<CompilerError> errors; public CompilerErrorStrategy(List<CompilerError> errors) { this.errors = errors;
From source file compile.compilersource.ExceptionErrorStrategy.java
/** * * @author chris */ public class ExceptionErrorStrategy extends DefaultErrorStrategy {
From source file de.up.ling.irtg.codec.ExceptionErrorStrategy.java
/** * * @author koller */ public class ExceptionErrorStrategy extends DefaultErrorStrategy {
From source file eagle.query.parser.EagleANTLRErrorStrategy.java
public class EagleANTLRErrorStrategy extends DefaultErrorStrategy { /** Instead of recovering from exception {@code e}, re-throw it wrapped * in a {@link org.antlr.v4.runtime.misc.ParseCancellationException} so it is not caught by the * rule function catches. Use {@link Exception#getCause()} to get the * original {@link org.antlr.v4.runtime.RecognitionException}. */
From source file it.polimi.tower4clouds.rules.ErrorStrategy.java
class ErrorStrategy extends DefaultErrorStrategy { //OVERRIDE METHODS TO AVOID USELESS (ACCORDING TO OUR PURPOSE) BEHAVIOUR OF ANTLR4 /** Instead of recovering from exception e, rethrow it wrapped * in a generic RuntimeException so it is not caught by the * rule function catches. Exception e is the "cause" of the