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);
}
java类org.antlr.v4.runtime.atn.LexerATNSimulator的实例源码
LexerInterpreter.java 文件源码
项目:Scratch-ApuC
阅读 26
收藏 0
点赞 0
评论 0
FunctionExpressionLexer.java 文件源码
项目:rapidminer
阅读 29
收藏 0
点赞 0
评论 0
public FunctionExpressionLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
CLexer.java 文件源码
项目:BEAST
阅读 24
收藏 0
点赞 0
评论 0
public CLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
FWPolicyLexer.java 文件源码
项目:oscm-app
阅读 22
收藏 0
点赞 0
评论 0
public FWPolicyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA,
_sharedContextCache);
}
SqlGrammarLexer.java 文件源码
项目:coherence-sql
阅读 28
收藏 0
点赞 0
评论 0
public SqlGrammarLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
FWPolicyLexer.java 文件源码
项目:oscm
阅读 24
收藏 0
点赞 0
评论 0
public FWPolicyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA,
_sharedContextCache);
}
CypherLexer.java 文件源码
项目:cyp2sql
阅读 29
收藏 0
点赞 0
评论 0
public CypherLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
ExpressionEditorLexer.java 文件源码
项目:Hydrograph
阅读 24
收藏 0
点赞 0
评论 0
public ExpressionEditorLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
Verilog2001Lexer.java 文件源码
项目:netlist-graph
阅读 25
收藏 0
点赞 0
评论 0
public Verilog2001Lexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
ObjCLexer.java 文件源码
项目:Objc2Lua
阅读 25
收藏 0
点赞 0
评论 0
public ObjCLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
HelloLexer.java 文件源码
项目:KeepTry
阅读 27
收藏 0
点赞 0
评论 0
public HelloLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
AccountingLexer.java 文件源码
项目:dsl
阅读 25
收藏 0
点赞 0
评论 0
public AccountingLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
FunctionExpressionLexer.java 文件源码
项目:rapidminer-studio
阅读 25
收藏 0
点赞 0
评论 0
public FunctionExpressionLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
FWPolicyLexer.java 文件源码
项目:development
阅读 26
收藏 0
点赞 0
评论 0
public FWPolicyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA,
_sharedContextCache);
}
ExpressionConstraintLexer.java 文件源码
项目:UMLS-Terminology-Server
阅读 24
收藏 0
点赞 0
评论 0
/**
* Instantiates a new expression constraint lexer.
*
* @param input the input
*/
public ExpressionConstraintLexer(CharStream input) {
super(input);
_interp =
new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
EditorConfigLexer.java 文件源码
项目:netbeans-editorconfig-editor
阅读 28
收藏 0
点赞 0
评论 0
public EditorConfigLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
SkinnyLexer.java 文件源码
项目:SkinnyAssembler
阅读 27
收藏 0
点赞 0
评论 0
public SkinnyLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
tlvLexer.java 文件源码
项目:Oscar
阅读 23
收藏 0
点赞 0
评论 0
public tlvLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
ByteRegexLexer.java 文件源码
项目:htools
阅读 32
收藏 0
点赞 0
评论 0
public ByteRegexLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
CliLexer.java 文件源码
项目:oap
阅读 86
收藏 0
点赞 0
评论 0
public CliLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
QuestionnaireLexer.java 文件源码
项目:poly-ql
阅读 26
收藏 0
点赞 0
评论 0
public QuestionnaireLexer( CharStream input )
{
super( input );
_interp = new LexerATNSimulator( this, _ATN, _decisionToDFA, _sharedContextCache );
}
QLLexer.java 文件源码
项目:poly-ql
阅读 28
收藏 0
点赞 0
评论 0
public QLLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
MemoryModelLexer.java 文件源码
项目:org.pshdl
阅读 24
收藏 0
点赞 0
评论 0
public MemoryModelLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
PSHDLLangLexer.java 文件源码
项目:org.pshdl
阅读 24
收藏 0
点赞 0
评论 0
public PSHDLLangLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
Lexer.java 文件源码
项目:Scratch-ApuC
阅读 30
收藏 0
点赞 0
评论 0
public void pushMode(int m) {
if ( LexerATNSimulator.debug ) System.out.println("pushMode "+m);
_modeStack.push(_mode);
mode(m);
}
Lexer.java 文件源码
项目:Scratch-ApuC
阅读 29
收藏 0
点赞 0
评论 0
public int popMode() {
if ( _modeStack.isEmpty() ) throw new EmptyStackException();
if ( LexerATNSimulator.debug ) System.out.println("popMode back to "+ _modeStack.peek());
mode( _modeStack.pop() );
return _mode;
}
Sql92ParserLexer.java 文件源码
项目:SqlParser
阅读 26
收藏 0
点赞 0
评论 0
public Sql92ParserLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
CommonLexer.java 文件源码
项目:SqlParser
阅读 28
收藏 0
点赞 0
评论 0
public CommonLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
DateLexer.java 文件源码
项目:SqlParser
阅读 32
收藏 0
点赞 0
评论 0
public DateLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
Java8Lexer.java 文件源码
项目:WHOAMI
阅读 26
收藏 0
点赞 0
评论 0
public Java8Lexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}