Class mooBaseVisitor<Result>
This class provides an empty implementation of ImooVisitor<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.Moo
Assembly: Moo.dll
Syntax
public class mooBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ImooVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAddaliasdecl(mooParser.AddaliasdeclContext)
Visit a parse tree produced by addaliasdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAddaliasdecl(mooParser.AddaliasdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.AddaliasdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignblock(mooParser.AssignblockContext)
Visit a parse tree produced by assignblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignblock(mooParser.AssignblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.AssignblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtom(mooParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(mooParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommand(mooParser.CommandContext)
Visit a parse tree produced by command().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommand(mooParser.CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.CommandContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCondition(mooParser.ConditionContext)
Visit a parse tree produced by condition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCondition(mooParser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ConditionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitContentsdecl(mooParser.ContentsdeclContext)
Visit a parse tree produced by contentsdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitContentsdecl(mooParser.ContentsdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ContentsdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCreatedecl(mooParser.CreatedeclContext)
Visit a parse tree produced by createdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCreatedecl(mooParser.CreatedeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.CreatedeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclaration(mooParser.DeclarationContext)
Visit a parse tree produced by declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclaration(mooParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.DeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDescribedecl(mooParser.DescribedeclContext)
Visit a parse tree produced by describedecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDescribedecl(mooParser.DescribedeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.DescribedeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDisplaypropertydecl(mooParser.DisplaypropertydeclContext)
Visit a parse tree produced by displaypropertydecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDisplaypropertydecl(mooParser.DisplaypropertydeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.DisplaypropertydeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDoblock(mooParser.DoblockContext)
Visit a parse tree produced by doblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDoblock(mooParser.DoblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.DoblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEditdecl(mooParser.EditdeclContext)
Visit a parse tree produced by editdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEditdecl(mooParser.EditdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.EditdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(mooParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(mooParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressionlist(mooParser.ExpressionlistContext)
Visit a parse tree produced by expressionlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressionlist(mooParser.ExpressionlistContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ExpressionlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFactor(mooParser.FactorContext)
Visit a parse tree produced by factor().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFactor(mooParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.FactorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForblock(mooParser.ForblockContext)
Visit a parse tree produced by forblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForblock(mooParser.ForblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ForblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctioninvocation(mooParser.FunctioninvocationContext)
Visit a parse tree produced by functioninvocation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctioninvocation(mooParser.FunctioninvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.FunctioninvocationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIfblock(mooParser.IfblockContext)
Visit a parse tree produced by ifblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIfblock(mooParser.IfblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.IfblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInteger(mooParser.IntegerContext)
Visit a parse tree produced by integer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInteger(mooParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.IntegerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKidsdecl(mooParser.KidsdeclContext)
Visit a parse tree produced by kidsdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKidsdecl(mooParser.KidsdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.KidsdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_(mooParser.List_Context)
Visit a parse tree produced by list_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_(mooParser.List_Context context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.List_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(mooParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(mooParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNoteditdecl(mooParser.NoteditdeclContext)
Visit a parse tree produced by noteditdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNoteditdecl(mooParser.NoteditdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.NoteditdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitObjref(mooParser.ObjrefContext)
Visit a parse tree produced by objref().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitObjref(mooParser.ObjrefContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ObjrefContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParentdecl(mooParser.ParentdeclContext)
Visit a parse tree produced by parentdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParentdecl(mooParser.ParentdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ParentdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPermissions(mooParser.PermissionsContext)
Visit a parse tree produced by permissions().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPermissions(mooParser.PermissionsContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.PermissionsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProg(mooParser.ProgContext)
Visit a parse tree produced by prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProg(mooParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ProgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgramdecl(mooParser.ProgramdeclContext)
Visit a parse tree produced by programdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgramdecl(mooParser.ProgramdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ProgramdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgramname(mooParser.ProgramnameContext)
Visit a parse tree produced by programname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgramname(mooParser.ProgramnameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ProgramnameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProperty_(mooParser.Property_Context)
Visit a parse tree produced by property_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProperty_(mooParser.Property_Context context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.Property_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPropertydecl(mooParser.PropertydeclContext)
Visit a parse tree produced by propertydecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPropertydecl(mooParser.PropertydeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.PropertydeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPropertyname(mooParser.PropertynameContext)
Visit a parse tree produced by propertyname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPropertyname(mooParser.PropertynameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.PropertynameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReal(mooParser.RealContext)
Visit a parse tree produced by real().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReal(mooParser.RealContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.RealContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelop(mooParser.RelopContext)
Visit a parse tree produced by relop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelop(mooParser.RelopContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.RelopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReturncommand(mooParser.ReturncommandContext)
Visit a parse tree produced by returncommand().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReturncommand(mooParser.ReturncommandContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.ReturncommandContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRmpropertydecl(mooParser.RmpropertydeclContext)
Visit a parse tree produced by rmpropertydecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRmpropertydecl(mooParser.RmpropertydeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.RmpropertydeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSetpropertydecl(mooParser.SetpropertydeclContext)
Visit a parse tree produced by setpropertydecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSetpropertydecl(mooParser.SetpropertydeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.SetpropertydeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSignedAtom(mooParser.SignedAtomContext)
Visit a parse tree produced by signedAtom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSignedAtom(mooParser.SignedAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.SignedAtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(mooParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(mooParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStringliteral(mooParser.StringliteralContext)
Visit a parse tree produced by stringliteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStringliteral(mooParser.StringliteralContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.StringliteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSysname(mooParser.SysnameContext)
Visit a parse tree produced by sysname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSysname(mooParser.SysnameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.SysnameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(mooParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(mooParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTryblock(mooParser.TryblockContext)
Visit a parse tree produced by tryblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTryblock(mooParser.TryblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.TryblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUsername(mooParser.UsernameContext)
Visit a parse tree produced by username().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUsername(mooParser.UsernameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.UsernameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVerb(mooParser.VerbContext)
Visit a parse tree produced by verb().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVerb(mooParser.VerbContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.VerbContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVerbdecl(mooParser.VerbdeclContext)
Visit a parse tree produced by verbdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVerbdecl(mooParser.VerbdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.VerbdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVerbinvocation(mooParser.VerbinvocationContext)
Visit a parse tree produced by verbinvocation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVerbinvocation(mooParser.VerbinvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.VerbinvocationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVerbname(mooParser.VerbnameContext)
Visit a parse tree produced by verbname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVerbname(mooParser.VerbnameContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.VerbnameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWhileblock(mooParser.WhileblockContext)
Visit a parse tree produced by whileblock().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWhileblock(mooParser.WhileblockContext context)
Parameters
Type | Name | Description |
---|---|---|
mooParser.WhileblockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |