本文整理汇总了C#中ObjCParser类的典型用法代码示例。如果您正苦于以下问题:C# ObjCParser类的具体用法?C# ObjCParser怎么用?C# ObjCParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjCParser类属于命名空间,在下文中一共展示了ObjCParser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: InterfaceExtruder
public InterfaceExtruder(string objcFileContent)
{
content = objcFileContent;
var input = new AntlrInputStream (content);
lexer = new ObjCLexer (input);
tokens = new CommonTokenStream (lexer);
parser = new ObjCParser (tokens);
listner = new ObjCListnerImpl ();
walker = new ParseTreeWalker ();
}
开发者ID:rzaitov,项目名称:Porter,代码行数:11,代码来源:InterfaceExtruder.cs
示例2: ExitInstance_method_definition
public override void ExitInstance_method_definition(ObjCParser.Instance_method_definitionContext context)
{
var sb = new StringBuilder ();
sb.Append ('-');
ObjCParser.Method_definitionContext md = context.method_definition();
ObjCParser.Method_typeContext method_typeContext = md.method_type ();
sb.Append (method_typeContext != null ? method_typeContext.GetText () : string.Empty);
string selector = md.method_selector ().GetText ();
sb.Append (selector);
Console.WriteLine (sb);
}
开发者ID:rzaitov,项目名称:Porter,代码行数:13,代码来源:ObjCListnerImpl.cs
示例3: ExitProperty_declaration
public override void ExitProperty_declaration(ObjCParser.Property_declarationContext context)
{
var sb = new StringBuilder ();
sb.Append ("@property");
sb.Append (' ');
var attributes = context.property_attributes_declaration ();
if (attributes != null) {
sb.Append (attributes.GetText ());
sb.Append (' ');
}
var structDeclaration = context.struct_declaration ();
sb.Append (structDeclaration.specifier_qualifier_list().GetText());
sb.Append (' ');
sb.Append (structDeclaration.struct_declarator_list ().GetText ());
Console.WriteLine (sb);
}
开发者ID:rzaitov,项目名称:Porter,代码行数:19,代码来源:ObjCListnerImpl.cs
示例4: ExitVisibility_specification
public virtual void ExitVisibility_specification(ObjCParser.Visibility_specificationContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例5: ExitUnary_expression
public virtual void ExitUnary_expression(ObjCParser.Unary_expressionContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例6: ExitType_name
public virtual void ExitType_name(ObjCParser.Type_nameContext context)
{
Console.WriteLine ("ExitType_name");
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:4,代码来源:ObjCBaseListener.cs
示例7: ExitTry_statement
public virtual void ExitTry_statement(ObjCParser.Try_statementContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例8: ExitTranslation_unit
public virtual void ExitTranslation_unit(ObjCParser.Translation_unitContext context)
{
Console.WriteLine ("ExitTranslation_unit");
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:4,代码来源:ObjCBaseListener.cs
示例9: ExitSuperclass_name
public virtual void ExitSuperclass_name(ObjCParser.Superclass_nameContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例10: ExitSelector_expression
public virtual void ExitSelector_expression(ObjCParser.Selector_expressionContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例11: ExitSelector
public virtual void ExitSelector(ObjCParser.SelectorContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例12: ExitSelection_statement
public virtual void ExitSelection_statement(ObjCParser.Selection_statementContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例13: ExitRelational_expression
public virtual void ExitRelational_expression(ObjCParser.Relational_expressionContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例14: EnterClass_list
public virtual void EnterClass_list(ObjCParser.Class_listContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例15: ExitReceiver
public virtual void ExitReceiver(ObjCParser.ReceiverContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例16: ExitStruct_declarator_list
public virtual void ExitStruct_declarator_list(ObjCParser.Struct_declarator_listContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例17: ExitStruct_or_union_specifier
public virtual void ExitStruct_or_union_specifier(ObjCParser.Struct_or_union_specifierContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例18: ExitSelector_name
public virtual void ExitSelector_name(ObjCParser.Selector_nameContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例19: ExitSynchronized_statement
public virtual void ExitSynchronized_statement(ObjCParser.Synchronized_statementContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
示例20: ExitShift_expression
public virtual void ExitShift_expression(ObjCParser.Shift_expressionContext context)
{
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:3,代码来源:ObjCBaseListener.cs
注:本文中的ObjCParser类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论