本文整理汇总了Java中org.antlr.v4.runtime.atn.LexerATNSimulator类的典型用法代码示例。如果您正苦于以下问题:Java LexerATNSimulator类的具体用法?Java LexerATNSimulator怎么用?Java LexerATNSimulator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LexerATNSimulator类属于org.antlr.v4.runtime.atn包,在下文中一共展示了LexerATNSimulator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LexerInterpreter
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public LexerInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input) {
super(input);
if (atn.grammarType != ATNType.LEXER) {
throw new IllegalArgumentException("The ATN must be a lexer ATN.");
}
this.grammarFileName = grammarFileName;
this.atn = atn;
this.tokenNames = tokenNames.toArray(new String[tokenNames.size()]);
this.ruleNames = ruleNames.toArray(new String[ruleNames.size()]);
this.modeNames = modeNames.toArray(new String[modeNames.size()]);
this._decisionToDFA = new DFA[atn.getNumberOfDecisions()];
for (int i = 0; i < _decisionToDFA.length; i++) {
_decisionToDFA[i] = new DFA(atn.getDecisionState(i), i);
}
this._interp = new LexerATNSimulator(this,atn,_decisionToDFA,_sharedContextCache);
}
示例2: FunctionExpressionLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public FunctionExpressionLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例3: CLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public CLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例4: FWPolicyLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public FWPolicyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA,
_sharedContextCache);
}
示例5: SqlGrammarLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public SqlGrammarLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例6: CypherLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public CypherLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例7: ExpressionEditorLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public ExpressionEditorLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例8: Verilog2001Lexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public Verilog2001Lexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例9: ObjCLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public ObjCLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例10: HelloLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public HelloLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例11: AccountingLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public AccountingLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例12: ExpressionConstraintLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
/**
* Instantiates a new expression constraint lexer.
*
* @param input the input
*/
public ExpressionConstraintLexer(CharStream input) {
super(input);
_interp =
new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例13: EditorConfigLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public EditorConfigLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
示例14: SkinnyLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public SkinnyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
示例15: tlvLexer
import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public tlvLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}