Show / Hide Table of Contents

Class cluBaseVisitor<Result>

This class provides an empty implementation of IcluVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
cluBaseVisitor<Result>
Implements
IcluVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Clu
Assembly: Clu.dll
Syntax
public class cluBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IcluVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitArgs(cluParser.ArgsContext)

Visit a parse tree produced by args().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArgs(cluParser.ArgsContext context)
Parameters
Type Name Description
cluParser.ArgsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBody(cluParser.BodyContext)

Visit a parse tree produced by body().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBody(cluParser.BodyContext context)
Parameters
Type Name Description
cluParser.BodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCluster(cluParser.ClusterContext)

Visit a parse tree produced by cluster().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCluster(cluParser.ClusterContext context)
Parameters
Type Name Description
cluParser.ClusterContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCluster_body(cluParser.Cluster_bodyContext)

Visit a parse tree produced by cluster_body().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCluster_body(cluParser.Cluster_bodyContext context)
Parameters
Type Name Description
cluParser.Cluster_bodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstant(cluParser.ConstantContext)

Visit a parse tree produced by constant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstant(cluParser.ConstantContext context)
Parameters
Type Name Description
cluParser.ConstantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstant_list(cluParser.Constant_listContext)

Visit a parse tree produced by constant_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstant_list(cluParser.Constant_listContext context)
Parameters
Type Name Description
cluParser.Constant_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDecl(cluParser.DeclContext)

Visit a parse tree produced by decl().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDecl(cluParser.DeclContext context)
Parameters
Type Name Description
cluParser.DeclContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDecl_list(cluParser.Decl_listContext)

Visit a parse tree produced by decl_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDecl_list(cluParser.Decl_listContext context)
Parameters
Type Name Description
cluParser.Decl_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEquate(cluParser.EquateContext)

Visit a parse tree produced by equate().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEquate(cluParser.EquateContext context)
Parameters
Type Name Description
cluParser.EquateContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitException_(cluParser.Exception_Context)

Visit a parse tree produced by exception_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitException_(cluParser.Exception_Context context)
Parameters
Type Name Description
cluParser.Exception_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(cluParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression(cluParser.ExpressionContext context)
Parameters
Type Name Description
cluParser.ExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression_list(cluParser.Expression_listContext)

Visit a parse tree produced by expression_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression_list(cluParser.Expression_listContext context)
Parameters
Type Name Description
cluParser.Expression_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField(cluParser.FieldContext)

Visit a parse tree produced by field().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitField(cluParser.FieldContext context)
Parameters
Type Name Description
cluParser.FieldContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField_list(cluParser.Field_listContext)

Visit a parse tree produced by field_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitField_list(cluParser.Field_listContext context)
Parameters
Type Name Description
cluParser.Field_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField_spec(cluParser.Field_specContext)

Visit a parse tree produced by field_spec().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitField_spec(cluParser.Field_specContext context)
Parameters
Type Name Description
cluParser.Field_specContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitField_spec_list(cluParser.Field_spec_listContext)

Visit a parse tree produced by field_spec_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitField_spec_list(cluParser.Field_spec_listContext context)
Parameters
Type Name Description
cluParser.Field_spec_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdn(cluParser.IdnContext)

Visit a parse tree produced by idn().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdn(cluParser.IdnContext context)
Parameters
Type Name Description
cluParser.IdnContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdn_list(cluParser.Idn_listContext)

Visit a parse tree produced by idn_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdn_list(cluParser.Idn_listContext context)
Parameters
Type Name Description
cluParser.Idn_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInt_literal(cluParser.Int_literalContext)

Visit a parse tree produced by int_literal().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInt_literal(cluParser.Int_literalContext context)
Parameters
Type Name Description
cluParser.Int_literalContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInvocation(cluParser.InvocationContext)

Visit a parse tree produced by invocation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInvocation(cluParser.InvocationContext context)
Parameters
Type Name Description
cluParser.InvocationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIterator(cluParser.IteratorContext)

Visit a parse tree produced by iterator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIterator(cluParser.IteratorContext context)
Parameters
Type Name Description
cluParser.IteratorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitModule(cluParser.ModuleContext)

Visit a parse tree produced by module().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitModule(cluParser.ModuleContext context)
Parameters
Type Name Description
cluParser.ModuleContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitName(cluParser.NameContext)

Visit a parse tree produced by name().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitName(cluParser.NameContext context)
Parameters
Type Name Description
cluParser.NameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitName_list(cluParser.Name_listContext)

Visit a parse tree produced by name_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitName_list(cluParser.Name_listContext context)
Parameters
Type Name Description
cluParser.Name_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOp_name(cluParser.Op_nameContext)

Visit a parse tree produced by op_name().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOp_name(cluParser.Op_nameContext context)
Parameters
Type Name Description
cluParser.Op_nameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOp_name_list(cluParser.Op_name_listContext)

Visit a parse tree produced by op_name_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOp_name_list(cluParser.Op_name_listContext context)
Parameters
Type Name Description
cluParser.Op_name_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOper_decl(cluParser.Oper_declContext)

Visit a parse tree produced by oper_decl().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOper_decl(cluParser.Oper_declContext context)
Parameters
Type Name Description
cluParser.Oper_declContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOper_decl_list(cluParser.Oper_decl_listContext)

Visit a parse tree produced by oper_decl_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOper_decl_list(cluParser.Oper_decl_listContext context)
Parameters
Type Name Description
cluParser.Oper_decl_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOthers_handler(cluParser.Others_handlerContext)

Visit a parse tree produced by others_handler().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOthers_handler(cluParser.Others_handlerContext context)
Parameters
Type Name Description
cluParser.Others_handlerContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOwn_var(cluParser.Own_varContext)

Visit a parse tree produced by own_var().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOwn_var(cluParser.Own_varContext context)
Parameters
Type Name Description
cluParser.Own_varContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParam(cluParser.ParamContext)

Visit a parse tree produced by param().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParam(cluParser.ParamContext context)
Parameters
Type Name Description
cluParser.ParamContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParms(cluParser.ParmsContext)

Visit a parse tree produced by parms().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParms(cluParser.ParmsContext context)
Parameters
Type Name Description
cluParser.ParmsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrimary(cluParser.PrimaryContext)

Visit a parse tree produced by primary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrimary(cluParser.PrimaryContext context)
Parameters
Type Name Description
cluParser.PrimaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedure(cluParser.ProcedureContext)

Visit a parse tree produced by procedure().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedure(cluParser.ProcedureContext context)
Parameters
Type Name Description
cluParser.ProcedureContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReal_literal(cluParser.Real_literalContext)

Visit a parse tree produced by real_literal().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReal_literal(cluParser.Real_literalContext context)
Parameters
Type Name Description
cluParser.Real_literalContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRestriction(cluParser.RestrictionContext)

Visit a parse tree produced by restriction().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRestriction(cluParser.RestrictionContext context)
Parameters
Type Name Description
cluParser.RestrictionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReturnz(cluParser.ReturnzContext)

Visit a parse tree produced by returnz().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReturnz(cluParser.ReturnzContext context)
Parameters
Type Name Description
cluParser.ReturnzContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRoutine(cluParser.RoutineContext)

Visit a parse tree produced by routine().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRoutine(cluParser.RoutineContext context)
Parameters
Type Name Description
cluParser.RoutineContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRoutine_body(cluParser.Routine_bodyContext)

Visit a parse tree produced by routine_body().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRoutine_body(cluParser.Routine_bodyContext context)
Parameters
Type Name Description
cluParser.Routine_bodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSignals(cluParser.SignalsContext)

Visit a parse tree produced by signals().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSignals(cluParser.SignalsContext context)
Parameters
Type Name Description
cluParser.SignalsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(cluParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatement(cluParser.StatementContext context)
Parameters
Type Name Description
cluParser.StatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitString_literal(cluParser.String_literalContext)

Visit a parse tree produced by string_literal().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitString_literal(cluParser.String_literalContext context)
Parameters
Type Name Description
cluParser.String_literalContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTag_arm(cluParser.Tag_armContext)

Visit a parse tree produced by tag_arm().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTag_arm(cluParser.Tag_armContext context)
Parameters
Type Name Description
cluParser.Tag_armContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_set(cluParser.Type_setContext)

Visit a parse tree produced by type_set().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_set(cluParser.Type_setContext context)
Parameters
Type Name Description
cluParser.Type_setContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_spec(cluParser.Type_specContext)

Visit a parse tree produced by type_spec().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_spec(cluParser.Type_specContext context)
Parameters
Type Name Description
cluParser.Type_specContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_spec_list(cluParser.Type_spec_listContext)

Visit a parse tree produced by type_spec_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_spec_list(cluParser.Type_spec_listContext context)
Parameters
Type Name Description
cluParser.Type_spec_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhen_handler(cluParser.When_handlerContext)

Visit a parse tree produced by when_handler().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhen_handler(cluParser.When_handlerContext context)
Parameters
Type Name Description
cluParser.When_handlerContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhere_(cluParser.Where_Context)

Visit a parse tree produced by where_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhere_(cluParser.Where_Context context)
Parameters
Type Name Description
cluParser.Where_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitYields(cluParser.YieldsContext)

Visit a parse tree produced by yields().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitYields(cluParser.YieldsContext context)
Parameters
Type Name Description
cluParser.YieldsContext context

The parse tree.

Returns
Type Description
Result

Implements

IcluVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX