Class orwellBaseVisitor<Result>
This class provides an empty implementation of IorwellVisitor<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.Orwell
Assembly: Orwell.dll
Syntax
public class orwellBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IorwellVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAssoc(orwellParser.AssocContext)
Visit a parse tree produced by assoc().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssoc(orwellParser.AssocContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.AssocContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComp(orwellParser.CompContext)
Visit a parse tree produced by comp().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComp(orwellParser.CompContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.CompContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCon(orwellParser.ConContext)
Visit a parse tree produced by con().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCon(orwellParser.ConContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.ConContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCondecl(orwellParser.CondeclContext)
Visit a parse tree produced by condecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCondecl(orwellParser.CondeclContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.CondeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConditional(orwellParser.ConditionalContext)
Visit a parse tree produced by conditional().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConditional(orwellParser.ConditionalContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.ConditionalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConstruct(orwellParser.ConstructContext)
Visit a parse tree produced by construct().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConstruct(orwellParser.ConstructContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.ConstructContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDecl(orwellParser.DeclContext)
Visit a parse tree produced by decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDecl(orwellParser.DeclContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.DeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDef_(orwellParser.Def_Context)
Visit a parse tree produced by def_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDef_(orwellParser.Def_Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Def_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFliteral(orwellParser.FliteralContext)
Visit a parse tree produced by fliteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFliteral(orwellParser.FliteralContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.FliteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIfpart(orwellParser.IfpartContext)
Visit a parse tree produced by ifpart().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIfpart(orwellParser.IfpartContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.IfpartContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInfix(orwellParser.InfixContext)
Visit a parse tree produced by infix().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInfix(orwellParser.InfixContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.InfixContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_(orwellParser.List_Context)
Visit a parse tree produced by list_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_(orwellParser.List_Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.List_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitListform(orwellParser.ListformContext)
Visit a parse tree produced by listform().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitListform(orwellParser.ListformContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.ListformContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLiteral(orwellParser.LiteralContext)
Visit a parse tree produced by literal().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLiteral(orwellParser.LiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.LiteralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(orwellParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(orwellParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpdecl(orwellParser.OpdeclContext)
Visit a parse tree produced by opdecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpdecl(orwellParser.OpdeclContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.OpdeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpkind(orwellParser.OpkindContext)
Visit a parse tree produced by opkind().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpkind(orwellParser.OpkindContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.OpkindContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOtherpart(orwellParser.OtherpartContext)
Visit a parse tree produced by otherpart().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOtherpart(orwellParser.OtherpartContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.OtherpartContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPat(orwellParser.PatContext)
Visit a parse tree produced by pat().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPat(orwellParser.PatContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PatContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPat1(orwellParser.Pat1Context)
Visit a parse tree produced by pat1().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPat1(orwellParser.Pat1Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Pat1Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPat2(orwellParser.Pat2Context)
Visit a parse tree produced by pat2().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPat2(orwellParser.Pat2Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Pat2Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPatlist(orwellParser.PatlistContext)
Visit a parse tree produced by patlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPatlist(orwellParser.PatlistContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PatlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPatprimary(orwellParser.PatprimaryContext)
Visit a parse tree produced by patprimary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPatprimary(orwellParser.PatprimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PatprimaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPatprimaryname(orwellParser.PatprimarynameContext)
Visit a parse tree produced by patprimaryname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPatprimaryname(orwellParser.PatprimarynameContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PatprimarynameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPatsection(orwellParser.PatsectionContext)
Visit a parse tree produced by patsection().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPatsection(orwellParser.PatsectionContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PatsectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPattuple(orwellParser.PattupleContext)
Visit a parse tree produced by pattuple().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPattuple(orwellParser.PattupleContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PattupleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrefix(orwellParser.PrefixContext)
Visit a parse tree produced by prefix().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrefix(orwellParser.PrefixContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PrefixContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrimary(orwellParser.PrimaryContext)
Visit a parse tree produced by primary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrimary(orwellParser.PrimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PrimaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrimaryname(orwellParser.PrimarynameContext)
Visit a parse tree produced by primaryname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrimaryname(orwellParser.PrimarynameContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.PrimarynameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(orwellParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(orwellParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQualifier(orwellParser.QualifierContext)
Visit a parse tree produced by qualifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQualifier(orwellParser.QualifierContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.QualifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRhs(orwellParser.RhsContext)
Visit a parse tree produced by rhs().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRhs(orwellParser.RhsContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.RhsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSection(orwellParser.SectionContext)
Visit a parse tree produced by section().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSection(orwellParser.SectionContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.SectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSyndecl(orwellParser.SyndeclContext)
Visit a parse tree produced by syndecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSyndecl(orwellParser.SyndeclContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.SyndeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(orwellParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(orwellParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm1(orwellParser.Term1Context)
Visit a parse tree produced by term1().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm1(orwellParser.Term1Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Term1Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm2(orwellParser.Term2Context)
Visit a parse tree produced by term2().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm2(orwellParser.Term2Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Term2Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTuple_(orwellParser.Tuple_Context)
Visit a parse tree produced by tuple_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTuple_(orwellParser.Tuple_Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Tuple_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTylhs(orwellParser.TylhsContext)
Visit a parse tree produced by tylhs().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTylhs(orwellParser.TylhsContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TylhsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTylhs1(orwellParser.Tylhs1Context)
Visit a parse tree produced by tylhs1().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTylhs1(orwellParser.Tylhs1Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Tylhs1Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTylhsprimary(orwellParser.TylhsprimaryContext)
Visit a parse tree produced by tylhsprimary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTylhsprimary(orwellParser.TylhsprimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TylhsprimaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTylhssection(orwellParser.TylhssectionContext)
Visit a parse tree produced by tylhssection().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTylhssection(orwellParser.TylhssectionContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TylhssectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTylist(orwellParser.TylistContext)
Visit a parse tree produced by tylist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTylist(orwellParser.TylistContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TylistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyname(orwellParser.TynameContext)
Visit a parse tree produced by tyname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyname(orwellParser.TynameContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TynameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_(orwellParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_(orwellParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Type_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypedecl(orwellParser.TypedeclContext)
Visit a parse tree produced by typedecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypedecl(orwellParser.TypedeclContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TypedeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyprimary(orwellParser.TyprimaryContext)
Visit a parse tree produced by typrimary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyprimary(orwellParser.TyprimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TyprimaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyprimaryname(orwellParser.TyprimarynameContext)
Visit a parse tree produced by typrimaryname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyprimaryname(orwellParser.TyprimarynameContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TyprimarynameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTysection(orwellParser.TysectionContext)
Visit a parse tree produced by tysection().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTysection(orwellParser.TysectionContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TysectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyterm1(orwellParser.Tyterm1Context)
Visit a parse tree produced by tyterm1().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyterm1(orwellParser.Tyterm1Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Tyterm1Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyterm2(orwellParser.Tyterm2Context)
Visit a parse tree produced by tyterm2().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyterm2(orwellParser.Tyterm2Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Tyterm2Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTytuple(orwellParser.TytupleContext)
Visit a parse tree produced by tytuple().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTytuple(orwellParser.TytupleContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TytupleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTyvar(orwellParser.TyvarContext)
Visit a parse tree produced by tyvar().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTyvar(orwellParser.TyvarContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.TyvarContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUpto(orwellParser.UptoContext)
Visit a parse tree produced by upto().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUpto(orwellParser.UptoContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.UptoContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVar_(orwellParser.Var_Context)
Visit a parse tree produced by var_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVar_(orwellParser.Var_Context context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.Var_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWherepart(orwellParser.WherepartContext)
Visit a parse tree produced by wherepart().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWherepart(orwellParser.WherepartContext context)
Parameters
Type | Name | Description |
---|---|---|
orwellParser.WherepartContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |