本文整理汇总了C#中Tools.Parser类的典型用法代码示例。如果您正苦于以下问题:C# Parser类的具体用法?C# Parser怎么用?C# Parser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Parser类属于Tools命名空间,在下文中一共展示了Parser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ArgumentDeclarationList
public ArgumentDeclarationList(Parser yyp, ArgumentDeclarationList adl, Declaration d)
: base(((LSLSyntax
)yyp))
{
while (0 < adl.kids.Count) kids.Add(adl.kids.Pop());
kids.Add(d);
}
开发者ID:Booser,项目名称:radegast,代码行数:7,代码来源:lsl.parser.cs
示例2: OptionalSegment_2_1
/// <summary/>
/// <param name='yyq'></param>
public OptionalSegment_2_1(Parser yyq):base(yyq){
((PhonEnvParser
)yyq).CreateErrorMessage(PhonEnvParser.SyntaxErrType.missingClosingParen.ToString(),
((TOKEN)(yyq.StackAt(2).m_value))
.yytext,
((error)(yyq.StackAt(0).m_value))
.pos);
((PhonEnvParser
)yyq).SyntaxErrorType = PhonEnvParser.SyntaxErrType.missingClosingParen;
((PhonEnvParser
)yyq).Position =
((error)(yyq.StackAt(0).m_value))
.pos;
}}
开发者ID:sillsdev,项目名称:FieldWorks,代码行数:16,代码来源:phonenv.parser.cs
示例3: ParseStackEntry
public ParseStackEntry(Parser yyp,int state,SYMBOL value)
{
yyps = yyp; m_state = state; m_value = value;
}
开发者ID:Belxjander,项目名称:Asuna,代码行数:4,代码来源:parser.cs
示例4: Action
// support for actions
public virtual object Action(Parser yyp,SYMBOL yysym, int yyact) { return null; } // will be generated for the generated parser
开发者ID:Belxjander,项目名称:Asuna,代码行数:2,代码来源:parser.cs
示例5: Null
public Null(Parser yyp, int proxy) : base(yyp) { num = proxy; }
开发者ID:Belxjander,项目名称:Asuna,代码行数:1,代码来源:parser.cs
示例6: error
public error(Parser yyp,ParseStackEntry s):base(yyp) { state=s.m_state; sym=s.m_value; } //4.4c
public error(Parser yyp):base(yyp) {}
开发者ID:Belxjander,项目名称:Asuna,代码行数:2,代码来源:parser.cs
示例7: Statement_13
public Statement_13(Parser yyq):base(yyq,
((CompoundStatement)(yyq.StackAt(0).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例8: Statement_12
public Statement_12(Parser yyq):base(yyq,
((ForLoop)(yyq.StackAt(0).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例9: Statement_11
public Statement_11(Parser yyq):base(yyq,
((DoWhileStatement)(yyq.StackAt(0).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例10: Statement_9
public Statement_9(Parser yyq):base(yyq,
((IfStatement)(yyq.StackAt(0).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例11: Statement_8
public Statement_8(Parser yyq):base(yyq,
((StateChange)(yyq.StackAt(1).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例12: Statement_7
public Statement_7(Parser yyq):base(yyq,
((JumpStatement)(yyq.StackAt(1).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例13: Statement_6
public Statement_6(Parser yyq):base(yyq,
((JumpLabel)(yyq.StackAt(1).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例14: DoWhileStatement_2
public DoWhileStatement_2(Parser yyq):base(yyq,
((SimpleAssignment)(yyq.StackAt(2).m_value))
,
((Statement)(yyq.StackAt(5).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:5,代码来源:lsl.parser.cs
示例15: ForLoop_1
public ForLoop_1(Parser yyq):base(yyq,
((ForLoopStatement)(yyq.StackAt(6).m_value))
,
((Expression)(yyq.StackAt(4).m_value))
,
((ForLoopStatement)(yyq.StackAt(2).m_value))
,
((Statement)(yyq.StackAt(0).m_value))
){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:9,代码来源:lsl.parser.cs
示例16: JumpStatement_1
public JumpStatement_1(Parser yyq):base(yyq,
((IDENT)(yyq.StackAt(0).m_value))
.yytext){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例17: StateChange_1
public StateChange_1(Parser yyq):base(yyq,
((IDENT)(yyq.StackAt(0).m_value))
.yytext){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例18: recoveredError
public recoveredError(Parser yyp,ParseStackEntry s):base(yyp,s) {}
开发者ID:Belxjander,项目名称:Asuna,代码行数:1,代码来源:parser.cs
示例19: StateChange_2
public StateChange_2(Parser yyq):base(yyq,
((DEFAULT_STATE)(yyq.StackAt(0).m_value))
.yytext){}}
开发者ID:WordfromtheWise,项目名称:Aurora,代码行数:3,代码来源:lsl.parser.cs
示例20: create
public static object create(string cls_name,Parser yyp)
{
SCreator cr = (SCreator)yyp.m_symbols.types[cls_name];
// Console.WriteLine("TCreating {0} <{1}>",cls_name,yyl.yytext);
if (cr==null)
yyp.m_symbols.erh.Error(new CSToolsException(16,yyp.m_lexer,"no factory for {"+cls_name+")"));
try
{
return cr(yyp);
}
catch (CSToolsException e)
{
yyp.m_symbols.erh.Error(e);
}
catch (Exception e)
{
yyp.m_symbols.erh.Error(new CSToolsException(17,yyp.m_lexer,string.Format("Create of {0} failed ({1})",cls_name,e.Message)));
}
int j = cls_name.LastIndexOf('_');
if (j>0)
{
cr = (SCreator)yyp.m_symbols.types[cls_name.Substring(0,j)];
if (cr!=null)
{
SYMBOL s = (SYMBOL)cr(yyp);
s.m_dollar = 0;
return s;
}
}
return null;
}
开发者ID:Belxjander,项目名称:Asuna,代码行数:31,代码来源:parser.cs
注:本文中的Tools.Parser类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论