本文整理汇总了C#中Tools.Lexer类的典型用法代码示例。如果您正苦于以下问题:C# Lexer类的具体用法?C# Lexer怎么用?C# Lexer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Lexer类属于Tools命名空间,在下文中一共展示了Lexer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LEFT_PAREN
public LEFT_PAREN(Lexer yyl):base(yyl) {}}
示例2: Parser
public Parser(YyParser syms,Lexer lexer)
{
m_lexer = lexer;
m_symbols = syms;
m_symbols.erh = m_lexer.tokens.erh;
}
示例3: GetEOF
public int[] arr; // defined in generated subclass
public void GetEOF(Lexer yyl)
{
EOFSymbol = (EOF)symbols["EOF"];
if (EOFSymbol==null)
EOFSymbol = new EOF(yyl);
}
示例4: LBRACE
/// <exclude/>
public LBRACE(Lexer yyl):base(yyl) {}}
示例5: RBRACK
/// <exclude/>
public RBRACK(Lexer yyl):base(yyl) {}}
示例6: ID
/// <exclude/>
public ID(Lexer yyl):base(yyl) {}}
示例7: COLON
/// <exclude/>
public COLON(Lexer yyl):base(yyl) {}}
示例8: THIS_factory
/// <exclude/>
public static object THIS_factory(Lexer yyl) { return new THIS(yyl);}
示例9: LBRACK_factory
/// <exclude/>
public static object LBRACK_factory(Lexer yyl) { return new LBRACK(yyl);}
示例10: BASE
/// <exclude/>
public BASE(Lexer yyl):base(yyl) {}}
示例11: THIS
/// <exclude/>
public THIS(Lexer yyl):base(yyl) {}}
示例12: MINUS
public MINUS(Lexer yyl):base(yyl) {}}
示例14: RIGHT_PAREN
public RIGHT_PAREN(Lexer yyl):base(yyl) {}}
示例15: OldAction
/// <exclude/>
public override TOKEN OldAction(Lexer yym,ref string yytext,int action, ref bool reject) {
switch(action) {
case -1: break;
case 74: { yytext="(("+((cs0tokens)yym).Out+")yyq)"; return new ANY(yym); }
break;
case 55: { yytext="(("+((cs0tokens)yym).Out+")yym)"; return new ANY(yym); }
break;
case 8: { yytext ="yym.yy_begin"; return new ANY(yym); }
break;
case 2: ;
break;
}
return null;
}}