Example usage for org.antlr.v4.runtime.atn ParserATNSimulator ParserATNSimulator

List of usage examples for org.antlr.v4.runtime.atn ParserATNSimulator ParserATNSimulator

Introduction

In this page you can find the example usage for org.antlr.v4.runtime.atn ParserATNSimulator ParserATNSimulator.

Prototype

public ParserATNSimulator(Parser parser, ATN atn, DFA[] decisionToDFA,
            PredictionContextCache sharedContextCache) 

Source Link

Usage

From source file:BrahmsParser.java

License:Open Source License

public BrahmsParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:amulet.translator.CParser.java

public CParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:aqua.nix.cli.dsl.InputParser.java

License:Open Source License

public InputParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:br.unicamp.cst.representation.owrl.grammar.OwrlParser.java

License:Open Source License

public OwrlParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:com.gigaspaces.persistency.parser.SQL2MongoParser.java

License:Open Source License

public SQL2MongoParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:com.github.minlywang.dsl.calc.CalcParser.java

License:MIT License

public CalcParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:com.github.robozonky.strategy.natural.SideEffectFreeParser.java

License:Apache License

private static void modifyInterpreter(final NaturalLanguageStrategyParser p) {
    final int originalSize = p.getInterpreter().decisionToDFA.length;
    final DFA[] emptyDFA = new DFA[originalSize]; // give our own array so the static one isn't used
    final ParserATNSimulator newInterpreter = new ParserATNSimulator(p, p.getATN(), emptyDFA,
            new PredictionContextCache());
    newInterpreter.clearDFA(); // initialize our array so that the parser functions properly
    p.setInterpreter(newInterpreter); // replace the interpreter to bypass all static caches
}

From source file:com.liferay.dynamic.data.mapping.expression.internal.parser.DDMExpressionParser.java

License:Open Source License

public DDMExpressionParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:com.liferay.dynamic.data.mapping.form.values.query.internal.parser.DDMFormValuesQueryParser.java

License:Open Source License

public DDMFormValuesQueryParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}

From source file:com.netflix.java.refactor.aspectj.AnnotationSignatureParser.java

License:Apache License

public AnnotationSignatureParser(TokenStream input) {
    super(input);
    _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}