本文整理汇总了C#中Tools.Parser类的典型用法代码示例。如果您正苦于以下问题:C# Parser类的具体用法?C# Parser怎么用?C# Parser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Parser类属于Tools命名空间,在下文中一共展示了Parser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}}
示例3: ParseStackEntry
public ParseStackEntry(Parser yyp,int state,SYMBOL value)
{
yyps = yyp; m_state = state; m_value = value;
}
示例4: Action
// support for actions
public virtual object Action(Parser yyp,SYMBOL yysym, int yyact) { return null; } // will be generated for the generated parser
示例5: Null
public Null(Parser yyp, int proxy) : base(yyp) { num = proxy; }
示例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) {}
示例7: Statement_13
public Statement_13(Parser yyq):base(yyq,
((CompoundStatement)(yyq.StackAt(0).m_value))
){}}
示例8: Statement_12
public Statement_12(Parser yyq):base(yyq,
((ForLoop)(yyq.StackAt(0).m_value))
){}}
示例9: Statement_11
public Statement_11(Parser yyq):base(yyq,
((DoWhileStatement)(yyq.StackAt(0).m_value))
){}}
示例10: Statement_9
public Statement_9(Parser yyq):base(yyq,
((IfStatement)(yyq.StackAt(0).m_value))
){}}
示例11: Statement_8
public Statement_8(Parser yyq):base(yyq,
((StateChange)(yyq.StackAt(1).m_value))
){}}
示例12: Statement_7
public Statement_7(Parser yyq):base(yyq,
((JumpStatement)(yyq.StackAt(1).m_value))
){}}
示例13: Statement_6
public Statement_6(Parser yyq):base(yyq,
((JumpLabel)(yyq.StackAt(1).m_value))
){}}
示例14: DoWhileStatement_2
public DoWhileStatement_2(Parser yyq):base(yyq,
((SimpleAssignment)(yyq.StackAt(2).m_value))
,
((Statement)(yyq.StackAt(5).m_value))
){}}
示例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))
){}}