Class limboBaseVisitor<Result>
This class provides an empty implementation of IlimboVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Limbo
Assembly: Limbo.dll
Syntax
public class limboBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IlimboVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAdt_declaration(limboParser.Adt_declarationContext)
Visit a parse tree produced by adt_declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdt_declaration(limboParser.Adt_declarationContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Adt_declarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAdt_member(limboParser.Adt_memberContext)
Visit a parse tree produced by adt_member().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdt_member(limboParser.Adt_memberContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Adt_memberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAdt_member_list(limboParser.Adt_member_listContext)
Visit a parse tree produced by adt_member_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdt_member_list(limboParser.Adt_member_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Adt_member_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAdt_type(limboParser.Adt_typeContext)
Visit a parse tree produced by adt_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdt_type(limboParser.Adt_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Adt_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBig(limboParser.BigContext)
Visit a parse tree produced by big().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBig(limboParser.BigContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.BigContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBinary_expression(limboParser.Binary_expressionContext)
Visit a parse tree produced by binary_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBinary_expression(limboParser.Binary_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Binary_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitByte_(limboParser.Byte_Context)
Visit a parse tree produced by byte_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitByte_(limboParser.Byte_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Byte_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitData_type(limboParser.Data_typeContext)
Visit a parse tree produced by data_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitData_type(limboParser.Data_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Data_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitData_type_list(limboParser.Data_type_listContext)
Visit a parse tree produced by data_type_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitData_type_list(limboParser.Data_type_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Data_type_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclaration(limboParser.DeclarationContext)
Visit a parse tree produced by declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclaration(limboParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.DeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclare_expression(limboParser.Declare_expressionContext)
Visit a parse tree produced by declare_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclare_expression(limboParser.Declare_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Declare_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement(limboParser.ElementContext)
Visit a parse tree produced by element().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElement(limboParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.ElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(limboParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(limboParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression_list(limboParser.Expression_listContext)
Visit a parse tree produced by expression_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression_list(limboParser.Expression_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Expression_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFormal_arg(limboParser.Formal_argContext)
Visit a parse tree produced by formal_arg().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFormal_arg(limboParser.Formal_argContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Formal_argContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFormal_arg_list(limboParser.Formal_arg_listContext)
Visit a parse tree produced by formal_arg_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFormal_arg_list(limboParser.Formal_arg_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Formal_arg_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_arg_ret(limboParser.Function_arg_retContext)
Visit a parse tree produced by function_arg_ret().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_arg_ret(limboParser.Function_arg_retContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Function_arg_retContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_definition(limboParser.Function_definitionContext)
Visit a parse tree produced by function_definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_definition(limboParser.Function_definitionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Function_definitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_name_part(limboParser.Function_name_partContext)
Visit a parse tree produced by function_name_part().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_name_part(limboParser.Function_name_partContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Function_name_partContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_type(limboParser.Function_typeContext)
Visit a parse tree produced by function_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_type(limboParser.Function_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Function_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier_list(limboParser.Identifier_listContext)
Visit a parse tree produced by identifier_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier_list(limboParser.Identifier_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Identifier_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInit_list(limboParser.Init_listContext)
Visit a parse tree produced by init_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInit_list(limboParser.Init_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Init_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInt_(limboParser.Int_Context)
Visit a parse tree produced by int_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInt_(limboParser.Int_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Int_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLabel(limboParser.LabelContext)
Visit a parse tree produced by label().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLabel(limboParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.LabelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLoad_expression(limboParser.Load_expressionContext)
Visit a parse tree produced by load_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLoad_expression(limboParser.Load_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Load_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLvalue_expression(limboParser.Lvalue_expressionContext)
Visit a parse tree produced by lvalue_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLvalue_expression(limboParser.Lvalue_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Lvalue_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLvalue_expression_list(limboParser.Lvalue_expression_listContext)
Visit a parse tree produced by lvalue_expression_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLvalue_expression_list(limboParser.Lvalue_expression_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Lvalue_expression_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMod_member(limboParser.Mod_memberContext)
Visit a parse tree produced by mod_member().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMod_member(limboParser.Mod_memberContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Mod_memberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMod_member_list(limboParser.Mod_member_listContext)
Visit a parse tree produced by mod_member_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMod_member_list(limboParser.Mod_member_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Mod_member_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModule_declaration(limboParser.Module_declarationContext)
Visit a parse tree produced by module_declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModule_declaration(limboParser.Module_declarationContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Module_declarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModule_qualified_type(limboParser.Module_qualified_typeContext)
Visit a parse tree produced by module_qualified_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModule_qualified_type(limboParser.Module_qualified_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Module_qualified_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModule_type(limboParser.Module_typeContext)
Visit a parse tree produced by module_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModule_type(limboParser.Module_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Module_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMonadic_expression(limboParser.Monadic_expressionContext)
Visit a parse tree produced by monadic_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMonadic_expression(limboParser.Monadic_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Monadic_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNil_or_D(limboParser.Nil_or_DContext)
Visit a parse tree produced by nil_or_D().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNil_or_D(limboParser.Nil_or_DContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Nil_or_DContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNil_or_D_list(limboParser.Nil_or_D_listContext)
Visit a parse tree produced by nil_or_D_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNil_or_D_list(limboParser.Nil_or_D_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Nil_or_D_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPick_member_list(limboParser.Pick_member_listContext)
Visit a parse tree produced by pick_member_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPick_member_list(limboParser.Pick_member_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Pick_member_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPick_tag_list(limboParser.Pick_tag_listContext)
Visit a parse tree produced by pick_tag_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPick_tag_list(limboParser.Pick_tag_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Pick_tag_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPqual_list(limboParser.Pqual_listContext)
Visit a parse tree produced by pqual_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPqual_list(limboParser.Pqual_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Pqual_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPqual_statement_sequence(limboParser.Pqual_statement_sequenceContext)
Visit a parse tree produced by pqual_statement_sequence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPqual_statement_sequence(limboParser.Pqual_statement_sequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Pqual_statement_sequenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPqualifier(limboParser.PqualifierContext)
Visit a parse tree produced by pqualifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPqualifier(limboParser.PqualifierContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.PqualifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(limboParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(limboParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQual_list(limboParser.Qual_listContext)
Visit a parse tree produced by qual_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQual_list(limboParser.Qual_listContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Qual_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQual_statement_sequence(limboParser.Qual_statement_sequenceContext)
Visit a parse tree produced by qual_statement_sequence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQual_statement_sequence(limboParser.Qual_statement_sequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Qual_statement_sequenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQualifier(limboParser.QualifierContext)
Visit a parse tree produced by qualifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQualifier(limboParser.QualifierContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.QualifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReal_(limboParser.Real_Context)
Visit a parse tree produced by real_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReal_(limboParser.Real_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Real_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReal_constant(limboParser.Real_constantContext)
Visit a parse tree produced by real_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReal_constant(limboParser.Real_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Real_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSend_expression(limboParser.Send_expressionContext)
Visit a parse tree produced by send_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSend_expression(limboParser.Send_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Send_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(limboParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(limboParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatements_(limboParser.Statements_Context)
Visit a parse tree produced by statements_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatements_(limboParser.Statements_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Statements_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString_(limboParser.String_Context)
Visit a parse tree produced by string_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString_(limboParser.String_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.String_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString_constant(limboParser.String_constantContext)
Visit a parse tree produced by string_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString_constant(limboParser.String_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.String_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(limboParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(limboParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTop_declaration(limboParser.Top_declarationContext)
Visit a parse tree produced by top_declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTop_declaration(limboParser.Top_declarationContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Top_declarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTop_declaration_sequence(limboParser.Top_declaration_sequenceContext)
Visit a parse tree produced by top_declaration_sequence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTop_declaration_sequence(limboParser.Top_declaration_sequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Top_declaration_sequenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTuple_type(limboParser.Tuple_typeContext)
Visit a parse tree produced by tuple_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTuple_type(limboParser.Tuple_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Tuple_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_(limboParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_(limboParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Type_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_name(limboParser.Type_nameContext)
Visit a parse tree produced by type_name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_name(limboParser.Type_nameContext context)
Parameters
Type | Name | Description |
---|---|---|
limboParser.Type_nameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |