本文整理汇总了C#中Antlr.Runtime.RecognizerSharedState类的典型用法代码示例。如果您正苦于以下问题:C# RecognizerSharedState类的具体用法?C# RecognizerSharedState怎么用?C# RecognizerSharedState使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RecognizerSharedState类属于Antlr.Runtime命名空间,在下文中一共展示了RecognizerSharedState类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AssemblerLexer
public AssemblerLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:emperorstarfinder,项目名称:phlox,代码行数:7,代码来源:AssemblerLexer.cs
示例2: UniAspectLexer
public UniAspectLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:UnicoenProject,项目名称:UniAspect,代码行数:7,代码来源:UniAspectLexer.cs
示例3: NCalcLexer
public NCalcLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:sklose,项目名称:NCalc2,代码行数:7,代码来源:NCalcLexer.cs
示例4: FastSimpleExpressionParser
public FastSimpleExpressionParser(ITokenStream input, RecognizerSharedState state)
: base(input, state)
{
InitializeTreeAdaptor();
if ( TreeAdaptor == null )
TreeAdaptor = new CommonTreeAdaptor();
}
开发者ID:sebasjm,项目名称:antlr,代码行数:7,代码来源:FastSimpleExpressionParser.cs
示例5: BaseRecognizer
public BaseRecognizer(RecognizerSharedState state)
{
if ( state==null ) {
state = new RecognizerSharedState();
}
this.state = state;
}
开发者ID:sebasjm,项目名称:antlr,代码行数:7,代码来源:BaseRecognizer.cs
示例6: FuncProtoToShimLexer
public FuncProtoToShimLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:emperorstarfinder,项目名称:phlox,代码行数:7,代码来源:FuncProtoToShimLexer.cs
示例7: MessageContractsLexer
public MessageContractsLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:Bolisov,项目名称:lokad-codedsl,代码行数:7,代码来源:MessageContractsLexer.cs
示例8: ExprParser
public ExprParser(ITokenStream input, RecognizerSharedState state)
: base(input, state)
{
ITreeAdaptor treeAdaptor = default(ITreeAdaptor);
CreateTreeAdaptor(ref treeAdaptor);
TreeAdaptor = treeAdaptor ?? new CommonTreeAdaptor();
OnCreated();
}
开发者ID:ricardoborges,项目名称:ANTLR-Lab,代码行数:8,代码来源:ExprParser.cs
示例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;
}
开发者ID:ksmyth,项目名称:antlr,代码行数:9,代码来源:ProfileGrammarParser.cs
示例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;
}
开发者ID:bszafko,项目名称:antlrcs,代码行数:10,代码来源:TemplateParserHelper.cs
示例11: BaseRecognizer
public BaseRecognizer( RecognizerSharedState state )
{
if ( state == null )
{
state = new RecognizerSharedState();
}
this.state = state;
Initialize();
InitDFAs();
}
开发者ID:ksmyth,项目名称:antlr,代码行数:10,代码来源:BaseRecognizer.cs
示例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();
}
开发者ID:RainsSoft,项目名称:Code2Xml,代码行数:11,代码来源:TestParser.cs
示例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 );
}
}
开发者ID:EightPillars,项目名称:PathwayEditor,代码行数:14,代码来源:DebugTreeGrammar.cs
示例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;
}
开发者ID:shranjan,项目名称:pinac,代码行数:16,代码来源:InterpParser.cs
示例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;
}
开发者ID:brunolauze,项目名称:mysql-connector-net-6,代码行数:17,代码来源:TreeRewriter.cs
示例16: DebugGrammarParser
public DebugGrammarParser( ITokenStream input, int port, RecognizerSharedState state )
: base( input, state )
{
DebugEventSocketProxy proxy = new DebugEventSocketProxy( this, port, adaptor );
DebugListener = proxy;
// TODO: I had to manually correct this line from ITokenStream
TokenStream = new DebugTokenStream( input, proxy );
try
{
proxy.Handshake();
}
catch ( IOException ioe )
{
ReportError( ioe );
}
ITreeAdaptor adap = new CommonTreeAdaptor();
TreeAdaptor = adap;
proxy.TreeAdaptor = adap;
}
开发者ID:ksmyth,项目名称:antlr,代码行数:19,代码来源:DebugGrammarParser.cs
示例17: RecognizerSharedState
public RecognizerSharedState(RecognizerSharedState state)
{
if (state == null)
{
throw new ArgumentNullException("state");
}
this.following = (BitSet[]) state.following.Clone();
this._fsp = state._fsp;
this.errorRecovery = state.errorRecovery;
this.lastErrorIndex = state.lastErrorIndex;
this.failed = state.failed;
this.syntaxErrors = state.syntaxErrors;
this.backtracking = state.backtracking;
if (state.ruleMemo != null)
{
this.ruleMemo = (IDictionary<int, int>[]) state.ruleMemo.Clone();
}
this.token = state.token;
this.tokenStartCharIndex = state.tokenStartCharIndex;
this.tokenStartCharPositionInLine = state.tokenStartCharPositionInLine;
this.channel = state.channel;
this.type = state.type;
this.text = state.text;
}
开发者ID:brunolauze,项目名称:mysql-connector-net-6,代码行数:24,代码来源:RecognizerSharedState.cs
示例18: InterpParser
public InterpParser(ITokenStream input, RecognizerSharedState state)
: base(input, state) {
InitializeCyclicDFAs();
}
开发者ID:shranjan,项目名称:pinac,代码行数:6,代码来源:InterpParser.cs
示例19: FlashTeaseScriptLexer
public FlashTeaseScriptLexer(ICharStream input, RecognizerSharedState state)
: base(input, state)
{
OnCreated();
}
开发者ID:d3vi0n,项目名称:TeaseMe,代码行数:7,代码来源:FlashTeaseScriptLexer.cs
示例20: BonsaiTree
public BonsaiTree(ITreeNodeStream input, RecognizerSharedState state)
: base(input, state) {
InitializeCyclicDFAs();
}
开发者ID:eugen,项目名称:Bonsai,代码行数:6,代码来源:BonsaiTree.cs
注:本文中的Antlr.Runtime.RecognizerSharedState类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论