本文整理汇总了C#中Antlr.Runtime.RecognizerSharedState类的典型用法代码示例。如果您正苦于以下问题:C# RecognizerSharedState类的具体用法?C# RecognizerSharedState怎么用?C# RecognizerSharedState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RecognizerSharedState类属于Antlr.Runtime命名空间,在下文中一共展示了RecognizerSharedState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AssemblerLexer
public AssemblerLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
示例2: UniAspectLexer
public UniAspectLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
示例3: NCalcLexer
public NCalcLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
示例4: FastSimpleExpressionParser
public FastSimpleExpressionParser(ITokenStream input, RecognizerSharedState state)
: base(input, state)
{
InitializeTreeAdaptor();
if ( TreeAdaptor == null )
TreeAdaptor = new CommonTreeAdaptor();
}
示例5: BaseRecognizer
public BaseRecognizer(RecognizerSharedState state)
{
if ( state==null ) {
state = new RecognizerSharedState();
}
this.state = state;
}
示例6: FuncProtoToShimLexer
public FuncProtoToShimLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
示例7: MessageContractsLexer
public MessageContractsLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
示例8: ExprParser
public ExprParser(ITokenStream input, RecognizerSharedState state)
: base(input, state)
{
ITreeAdaptor treeAdaptor = default(ITreeAdaptor);
CreateTreeAdaptor(ref treeAdaptor);
TreeAdaptor = treeAdaptor ?? new CommonTreeAdaptor();
OnCreated();
}
示例9: ProfileGrammarParser
public ProfileGrammarParser( ITokenStream input, IDebugEventListener dbg, RecognizerSharedState state )
: base( input, dbg, state )
{
Profiler p = (Profiler)dbg;
p.setParser(this);
ITreeAdaptor adap = new CommonTreeAdaptor();
TreeAdaptor = adap;
proxy.TreeAdaptor = adap;
}
示例10: TemplateParser
// overcome bug in ANTLR 3.2
public TemplateParser(ITokenStream input, RecognizerSharedState state, ICodeGenerator gen, TemplateName enclosingTemplateName)
: base(null, null)
{
this.input = input;
this.state = state;
if (gen != null)
this.gen = gen;
this._enclosingTemplateName = enclosingTemplateName;
}
示例11: BaseRecognizer
public BaseRecognizer( RecognizerSharedState state )
{
if ( state == null )
{
state = new RecognizerSharedState();
}
this.state = state;
Initialize();
InitDFAs();
}
示例12: TestParser
public TestParser(ITokenStream input, RecognizerSharedState state)
: base(input, state)
{
this.state.ruleMemo = new System.Collections.Generic.Dictionary<int, int>[12+1];
CstBuilderForAntlr3 treeAdaptor = default(CstBuilderForAntlr3);
CreateTreeAdaptor(ref treeAdaptor);
TreeAdaptor = treeAdaptor;
OnCreated();
}
示例13: DebugTreeGrammar
public DebugTreeGrammar( ITreeNodeStream input, int port, RecognizerSharedState state )
: base( input, state )
{
DebugEventSocketProxy proxy = new DebugEventSocketProxy( this, port, input.TreeAdaptor );
DebugListener = proxy;
try
{
proxy.Handshake();
}
catch ( IOException ioe )
{
ReportError( ioe );
}
}
示例14: InterpParser
public InterpParser(ITokenStream input, int port, RecognizerSharedState state)
: base(input, state) {
InitializeCyclicDFAs(dbg);
DebugEventSocketProxy proxy = new DebugEventSocketProxy(this, port, adaptor);
DebugListener = proxy;
TokenStream = new DebugTokenStream(input,proxy);
try {
proxy.Handshake();
} catch (IOException ioe) {
ReportError(ioe);
}
ITreeAdaptor adap = new CommonTreeAdaptor();
TreeAdaptor = adap;
proxy.TreeAdaptor = adap;
}
示例15: TreeRewriter
public TreeRewriter(ITreeNodeStream input, RecognizerSharedState state) : base(input, state)
{
Func<IAstRuleReturnScope> func = null;
Func<IAstRuleReturnScope> func2 = null;
this.originalAdaptor = input.TreeAdaptor;
this.originalTokenStream = input.TokenStream;
if (func == null)
{
func = () => this.Topdown();
}
this.topdown_func = func;
if (func2 == null)
{
func2 = () => this.Bottomup();
}
this.bottomup_func = func2;
}