本文整理汇总了C#中ObjCParser类的典型用法代码示例。如果您正苦于以下问题:C# ObjCParser类的具体用法?C# ObjCParser怎么用?C# ObjCParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjCParser类属于命名空间,在下文中一共展示了ObjCParser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 ();
}
示例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);
}
示例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);
}
示例4: ExitVisibility_specification
public virtual void ExitVisibility_specification(ObjCParser.Visibility_specificationContext context)
{
}
示例5: ExitUnary_expression
public virtual void ExitUnary_expression(ObjCParser.Unary_expressionContext context)
{
}
示例6: ExitType_name
public virtual void ExitType_name(ObjCParser.Type_nameContext context)
{
Console.WriteLine ("ExitType_name");
}
示例7: ExitTry_statement
public virtual void ExitTry_statement(ObjCParser.Try_statementContext context)
{
}
示例8: ExitTranslation_unit
public virtual void ExitTranslation_unit(ObjCParser.Translation_unitContext context)
{
Console.WriteLine ("ExitTranslation_unit");
}
示例9: ExitSuperclass_name
public virtual void ExitSuperclass_name(ObjCParser.Superclass_nameContext context)
{
}
示例10: ExitSelector_expression
public virtual void ExitSelector_expression(ObjCParser.Selector_expressionContext context)
{
}
示例11: ExitSelector
public virtual void ExitSelector(ObjCParser.SelectorContext context)
{
}
示例12: ExitSelection_statement
public virtual void ExitSelection_statement(ObjCParser.Selection_statementContext context)
{
}
示例13: ExitRelational_expression
public virtual void ExitRelational_expression(ObjCParser.Relational_expressionContext context)
{
}
示例14: EnterClass_list
public virtual void EnterClass_list(ObjCParser.Class_listContext context)
{
}
示例15: ExitReceiver
public virtual void ExitReceiver(ObjCParser.ReceiverContext context)
{
}