本文整理匯總了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;
}}