List of usage examples for org.antlr.v4.runtime.atn LexerATNSimulator LexerATNSimulator
public LexerATNSimulator(Lexer recog, ATN atn, DFA[] decisionToDFA, PredictionContextCache sharedContextCache)
From source file:BrahmsLexer.java
License:Open Source License
public BrahmsLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:amulet.translator.CLexer.java
public CLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:aqua.nix.cli.dsl.InputLexer.java
License:Open Source License
public InputLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:br.unicamp.cst.representation.owrl.grammar.OwrlLexer.java
License:Open Source License
public OwrlLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:com.gigaspaces.persistency.parser.SQL2MongoLexer.java
License:Open Source License
public SQL2MongoLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:com.github.minlywang.dsl.calc.CalcLexer.java
License:MIT License
public CalcLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:com.github.robozonky.strategy.natural.SideEffectFreeParser.java
License:Apache License
private static void modifyInterpreter(final NaturalLanguageStrategyLexer l) { final int originalSize = l.getInterpreter().decisionToDFA.length; final DFA[] emptyDFA = new DFA[originalSize]; // give our own array so the static one isn't used final LexerATNSimulator newInterpreter = new LexerATNSimulator(l, l.getATN(), emptyDFA, new PredictionContextCache()); newInterpreter.clearDFA(); // initialize our array so that the lexer functions properly l.setInterpreter(newInterpreter); // replace the interpreter to bypass all static caches }
From source file:com.liferay.dynamic.data.mapping.expression.internal.parser.DDMExpressionLexer.java
License:Open Source License
public DDMExpressionLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:com.liferay.dynamic.data.mapping.form.values.query.internal.parser.DDMFormValuesQueryLexer.java
License:Open Source License
public DDMFormValuesQueryLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }
From source file:com.netflix.java.refactor.aspectj.AspectJLexer.java
License:Apache License
public AspectJLexer(CharStream input) { super(input); _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); }