Class alpacaBaseVisitor<Result>
This class provides an empty implementation of IalpacaVisitor<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.Alpaca
Assembly: Alpaca.dll
Syntax
public class alpacaBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IalpacaVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAdjacencyPred(alpacaParser.AdjacencyPredContext)
Visit a parse tree produced by adjacencyPred().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdjacencyPred(alpacaParser.AdjacencyPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.AdjacencyPredContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitArrowchain(alpacaParser.ArrowchainContext)
Visit a parse tree produced by arrowchain().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArrowchain(alpacaParser.ArrowchainContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ArrowchainContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBoolPrimitive(alpacaParser.BoolPrimitiveContext)
Visit a parse tree produced by boolPrimitive().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBoolPrimitive(alpacaParser.BoolPrimitiveContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.BoolPrimitiveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassDefn(alpacaParser.ClassDefnContext)
Visit a parse tree produced by classDefn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassDefn(alpacaParser.ClassDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassDefnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassID(alpacaParser.ClassIDContext)
Visit a parse tree produced by classID().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassID(alpacaParser.ClassIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassIDContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClassRef(alpacaParser.ClassRefContext)
Visit a parse tree produced by classRef().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClassRef(alpacaParser.ClassRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassRefContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefn(alpacaParser.DefnContext)
Visit a parse tree produced by defn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefn(alpacaParser.DefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefns(alpacaParser.DefnsContext)
Visit a parse tree produced by defns().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefns(alpacaParser.DefnsContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(alpacaParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(alpacaParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(alpacaParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(alpacaParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMembershipDecl(alpacaParser.MembershipDeclContext)
Visit a parse tree produced by membershipDecl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMembershipDecl(alpacaParser.MembershipDeclContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.MembershipDeclContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNaturalnumber(alpacaParser.NaturalnumberContext)
Visit a parse tree produced by naturalnumber().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNaturalnumber(alpacaParser.NaturalnumberContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NaturalnumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNbhdDefn(alpacaParser.NbhdDefnContext)
Visit a parse tree produced by nbhdDefn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNbhdDefn(alpacaParser.NbhdDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdDefnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNbhdID(alpacaParser.NbhdIDContext)
Visit a parse tree produced by nbhdID().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNbhdID(alpacaParser.NbhdIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdIDContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNeigbourhood(alpacaParser.NeigbourhoodContext)
Visit a parse tree produced by neigbourhood().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNeigbourhood(alpacaParser.NeigbourhoodContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NeigbourhoodContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProg(alpacaParser.ProgContext)
Visit a parse tree produced by prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProg(alpacaParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ProgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelationalPred(alpacaParser.RelationalPredContext)
Visit a parse tree produced by relationalPred().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelationalPred(alpacaParser.RelationalPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RelationalPredContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRule_(alpacaParser.Rule_Context)
Visit a parse tree produced by rule_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRule_(alpacaParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.Rule_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRules(alpacaParser.RulesContext)
Visit a parse tree produced by rules().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRules(alpacaParser.RulesContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RulesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStateDefn(alpacaParser.StateDefnContext)
Visit a parse tree produced by stateDefn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStateDefn(alpacaParser.StateDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateDefnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStateID(alpacaParser.StateIDContext)
Visit a parse tree produced by stateID().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStateID(alpacaParser.StateIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateIDContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStateRef(alpacaParser.StateRefContext)
Visit a parse tree produced by stateRef().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStateRef(alpacaParser.StateRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateRefContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(alpacaParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(alpacaParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |