当前位置: 首页>>代码示例>>Java>>正文


Java LexerATNSimulator类代码示例

本文整理汇总了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);
}
 
开发者ID:MegaApuTurkUltra,项目名称:Scratch-ApuC,代码行数:20,代码来源:LexerInterpreter.java

示例2: FunctionExpressionLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public FunctionExpressionLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:5,代码来源:FunctionExpressionLexer.java

示例3: CLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public CLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:Skypr,项目名称:BEAST,代码行数:5,代码来源:CLexer.java

示例4: FWPolicyLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public FWPolicyLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA,
            _sharedContextCache);
}
 
开发者ID:servicecatalog,项目名称:oscm-app,代码行数:6,代码来源:FWPolicyLexer.java

示例5: SqlGrammarLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public SqlGrammarLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
 
开发者ID:michalwojciechowski,项目名称:coherence-sql,代码行数:5,代码来源:SqlGrammarLexer.java

示例6: CypherLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public CypherLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:DTG-FRESCO,项目名称:cyp2sql,代码行数:5,代码来源:CypherLexer.java

示例7: ExpressionEditorLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public ExpressionEditorLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:capitalone,项目名称:Hydrograph,代码行数:5,代码来源:ExpressionEditorLexer.java

示例8: Verilog2001Lexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public Verilog2001Lexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:xprova,项目名称:netlist-graph,代码行数:5,代码来源:Verilog2001Lexer.java

示例9: ObjCLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public ObjCLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
 
开发者ID:Consoar,项目名称:Objc2Lua,代码行数:5,代码来源:ObjCLexer.java

示例10: HelloLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public HelloLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
 
开发者ID:BruceZu,项目名称:KeepTry,代码行数:5,代码来源:HelloLexer.java

示例11: AccountingLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public AccountingLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:yongli82,项目名称:dsl,代码行数:5,代码来源:AccountingLexer.java

示例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);
}
 
开发者ID:WestCoastInformatics,项目名称:UMLS-Terminology-Server,代码行数:11,代码来源:ExpressionConstraintLexer.java

示例13: EditorConfigLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public EditorConfigLexer(CharStream input) {
    super(input);
    _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
 
开发者ID:junichi11,项目名称:netbeans-editorconfig-editor,代码行数:5,代码来源:EditorConfigLexer.java

示例14: SkinnyLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public SkinnyLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:embmicro,项目名称:SkinnyAssembler,代码行数:5,代码来源:SkinnyLexer.java

示例15: tlvLexer

import org.antlr.v4.runtime.atn.LexerATNSimulator; //导入依赖的package包/类
public tlvLexer(CharStream input) {
	super(input);
	_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
 
开发者ID:Comcast,项目名称:Oscar,代码行数:5,代码来源:tlvLexer.java


注:本文中的org.antlr.v4.runtime.atn.LexerATNSimulator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。