Example usage for org.antlr.v4.runtime BaseErrorListener subclass-usage

List of usage examples for org.antlr.v4.runtime BaseErrorListener subclass-usage

Introduction

In this page you can find the example usage for org.antlr.v4.runtime BaseErrorListener subclass-usage.

Usage

From source file ai.grakn.graql.internal.parser.GraqlErrorListener.java

/**
 * ANTLR error listener that listens for syntax errors.
 *
 * When a syntax error occurs, it is recorded. Call {@link GraqlErrorListener#hasErrors()} to see if there were errors.
 * View the errors with {@link GraqlErrorListener#toString()}.
 *

From source file boa.compiler.listeners.BoaErrorListener.java

public abstract class BoaErrorListener extends BaseErrorListener {
    public boolean hasError = false;

    public void error(final String kind, final TokenSource tokens, final Object offendingSymbol, final int line,
            final int charPositionInLine, final int length, final String msg, final Exception e) {
        hasError = true;

From source file ca.nines.ise.dom.ParserErrorListener.java

/**
 * ParserErrorListener intercepts antlr parser errors and generates error
 * messages in the log. Used by MessageBuilder.
 */
public class ParserErrorListener extends BaseErrorListener {

From source file carbon.compiler.ErrorManager.java

public class ErrorManager extends BaseErrorListener {

    private final CarbonCompiler compiler;

    private int errorCount, warningCount;

From source file cloudlens.parser.ASTError.java

public class ASTError extends BaseErrorListener {
    public static ASTError INSTANCE = new ASTError();

    @Override
    public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine,
            String msg, RecognitionException e) {

From source file com.basho.contact.ContactErrorListener.java

public class ContactErrorListener extends BaseErrorListener {

    RuntimeContext runtimeCtx;

    public ContactErrorListener(RuntimeContext runtimeCtx) {
        this.runtimeCtx = runtimeCtx;

From source file com.eprosima.idl.parser.listener.DefaultErrorListener.java

public class DefaultErrorListener extends BaseErrorListener {
    public DefaultErrorListener(Context ctx) {
        ctx_ = ctx;
    }

    @Override

From source file com.facebook.presto.sql.parser.ErrorHandler.java

class ErrorHandler extends BaseErrorListener {
    private static final Logger LOG = Logger.get(ErrorHandler.class);

    private final Map<Integer, String> specialRules;
    private final Map<Integer, String> specialTokens;
    private final Set<Integer> ignoredRules;

From source file com.fizzed.rocker.compiler.DescriptiveErrorListener.java

/**
 *
 * @author joelauer
 */
public class DescriptiveErrorListener extends BaseErrorListener {
    static private final Logger log = LoggerFactory.getLogger(DescriptiveErrorListener.class);

From source file com.github.sip.SipErrorListener.java

public class SipErrorListener extends BaseErrorListener {

    // length of the string already parsed
    private int parsedLength;

    public SipErrorListener() {