/**
* Create an crsx ANTLR listener for CRSX4
* @param factory
* @param sink
* @param prefix Prefix to apply to constructor names
* @param metachar Language specific meta variable prefix
* @param parser
*/
public SinkAntlrListener(org.transscript.runtime.Sink sink, String prefix, String metachar, Parser parser,
Map<String, org.transscript.runtime.Variable> bounds)
{
this.sink4 = sink;
this.consCount = new ArrayDeque<>();
this.ruleContext = new ArrayDeque<>();
this.parser = parser;
this.prefix = prefix;
this.metachar = metachar;
this.state = State.PARSE;
this.sort = TokenSort.STRING;
this.binderNames = new HashMap<>();
this.bounds = new ArrayDeque<>();
if (bounds != null)
this.bounds.addAll(bounds.values());
this.freshes = new ArrayDeque<>();
this.embedCrsx4 = prefix.equals("Text4_") || prefix.equals("TransScript_");
this.nilDesc = sink.context().lookupDescriptor("Nil");
this.consDesc = sink.context().lookupDescriptor("Cons");
}
SinkAntlrListener.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:tosca
作者:
评论列表
文章目录