Class alpacaBaseListener
This class provides an empty implementation of IalpacaListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Alpaca
Assembly: Alpaca.dll
Syntax
public class alpacaBaseListener : object, IalpacaListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAdjacencyPred(alpacaParser.AdjacencyPredContext)
Enter a parse tree produced by adjacencyPred().
The default implementation does nothing.
Declaration
public virtual void EnterAdjacencyPred(alpacaParser.AdjacencyPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.AdjacencyPredContext | context | The parse tree. |
EnterArrowchain(alpacaParser.ArrowchainContext)
Enter a parse tree produced by arrowchain().
The default implementation does nothing.
Declaration
public virtual void EnterArrowchain(alpacaParser.ArrowchainContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ArrowchainContext | context | The parse tree. |
EnterBoolPrimitive(alpacaParser.BoolPrimitiveContext)
Enter a parse tree produced by boolPrimitive().
The default implementation does nothing.
Declaration
public virtual void EnterBoolPrimitive(alpacaParser.BoolPrimitiveContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.BoolPrimitiveContext | context | The parse tree. |
EnterClassDefn(alpacaParser.ClassDefnContext)
Enter a parse tree produced by classDefn().
The default implementation does nothing.
Declaration
public virtual void EnterClassDefn(alpacaParser.ClassDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassDefnContext | context | The parse tree. |
EnterClassID(alpacaParser.ClassIDContext)
Enter a parse tree produced by classID().
The default implementation does nothing.
Declaration
public virtual void EnterClassID(alpacaParser.ClassIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassIDContext | context | The parse tree. |
EnterClassRef(alpacaParser.ClassRefContext)
Enter a parse tree produced by classRef().
The default implementation does nothing.
Declaration
public virtual void EnterClassRef(alpacaParser.ClassRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassRefContext | context | The parse tree. |
EnterDefn(alpacaParser.DefnContext)
Enter a parse tree produced by defn().
The default implementation does nothing.
Declaration
public virtual void EnterDefn(alpacaParser.DefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnContext | context | The parse tree. |
EnterDefns(alpacaParser.DefnsContext)
Enter a parse tree produced by defns().
The default implementation does nothing.
Declaration
public virtual void EnterDefns(alpacaParser.DefnsContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnsContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterExpression(alpacaParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(alpacaParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ExpressionContext | context | The parse tree. |
EnterIdentifier(alpacaParser.IdentifierContext)
Enter a parse tree produced by identifier().
The default implementation does nothing.
Declaration
public virtual void EnterIdentifier(alpacaParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.IdentifierContext | context | The parse tree. |
EnterMembershipDecl(alpacaParser.MembershipDeclContext)
Enter a parse tree produced by membershipDecl().
The default implementation does nothing.
Declaration
public virtual void EnterMembershipDecl(alpacaParser.MembershipDeclContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.MembershipDeclContext | context | The parse tree. |
EnterNaturalnumber(alpacaParser.NaturalnumberContext)
Enter a parse tree produced by naturalnumber().
The default implementation does nothing.
Declaration
public virtual void EnterNaturalnumber(alpacaParser.NaturalnumberContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NaturalnumberContext | context | The parse tree. |
EnterNbhdDefn(alpacaParser.NbhdDefnContext)
Enter a parse tree produced by nbhdDefn().
The default implementation does nothing.
Declaration
public virtual void EnterNbhdDefn(alpacaParser.NbhdDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdDefnContext | context | The parse tree. |
EnterNbhdID(alpacaParser.NbhdIDContext)
Enter a parse tree produced by nbhdID().
The default implementation does nothing.
Declaration
public virtual void EnterNbhdID(alpacaParser.NbhdIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdIDContext | context | The parse tree. |
EnterNeigbourhood(alpacaParser.NeigbourhoodContext)
Enter a parse tree produced by neigbourhood().
The default implementation does nothing.
Declaration
public virtual void EnterNeigbourhood(alpacaParser.NeigbourhoodContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NeigbourhoodContext | context | The parse tree. |
EnterProg(alpacaParser.ProgContext)
Enter a parse tree produced by prog().
The default implementation does nothing.
Declaration
public virtual void EnterProg(alpacaParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ProgContext | context | The parse tree. |
EnterRelationalPred(alpacaParser.RelationalPredContext)
Enter a parse tree produced by relationalPred().
The default implementation does nothing.
Declaration
public virtual void EnterRelationalPred(alpacaParser.RelationalPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RelationalPredContext | context | The parse tree. |
EnterRule_(alpacaParser.Rule_Context)
Enter a parse tree produced by rule_().
The default implementation does nothing.
Declaration
public virtual void EnterRule_(alpacaParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.Rule_Context | context | The parse tree. |
EnterRules(alpacaParser.RulesContext)
Enter a parse tree produced by rules().
The default implementation does nothing.
Declaration
public virtual void EnterRules(alpacaParser.RulesContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RulesContext | context | The parse tree. |
EnterStateDefn(alpacaParser.StateDefnContext)
Enter a parse tree produced by stateDefn().
The default implementation does nothing.
Declaration
public virtual void EnterStateDefn(alpacaParser.StateDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateDefnContext | context | The parse tree. |
EnterStateID(alpacaParser.StateIDContext)
Enter a parse tree produced by stateID().
The default implementation does nothing.
Declaration
public virtual void EnterStateID(alpacaParser.StateIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateIDContext | context | The parse tree. |
EnterStateRef(alpacaParser.StateRefContext)
Enter a parse tree produced by stateRef().
The default implementation does nothing.
Declaration
public virtual void EnterStateRef(alpacaParser.StateRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateRefContext | context | The parse tree. |
EnterTerm(alpacaParser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(alpacaParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.TermContext | context | The parse tree. |
ExitAdjacencyPred(alpacaParser.AdjacencyPredContext)
Exit a parse tree produced by adjacencyPred().
The default implementation does nothing.
Declaration
public virtual void ExitAdjacencyPred(alpacaParser.AdjacencyPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.AdjacencyPredContext | context | The parse tree. |
ExitArrowchain(alpacaParser.ArrowchainContext)
Exit a parse tree produced by arrowchain().
The default implementation does nothing.
Declaration
public virtual void ExitArrowchain(alpacaParser.ArrowchainContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ArrowchainContext | context | The parse tree. |
ExitBoolPrimitive(alpacaParser.BoolPrimitiveContext)
Exit a parse tree produced by boolPrimitive().
The default implementation does nothing.
Declaration
public virtual void ExitBoolPrimitive(alpacaParser.BoolPrimitiveContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.BoolPrimitiveContext | context | The parse tree. |
ExitClassDefn(alpacaParser.ClassDefnContext)
Exit a parse tree produced by classDefn().
The default implementation does nothing.
Declaration
public virtual void ExitClassDefn(alpacaParser.ClassDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassDefnContext | context | The parse tree. |
ExitClassID(alpacaParser.ClassIDContext)
Exit a parse tree produced by classID().
The default implementation does nothing.
Declaration
public virtual void ExitClassID(alpacaParser.ClassIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassIDContext | context | The parse tree. |
ExitClassRef(alpacaParser.ClassRefContext)
Exit a parse tree produced by classRef().
The default implementation does nothing.
Declaration
public virtual void ExitClassRef(alpacaParser.ClassRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ClassRefContext | context | The parse tree. |
ExitDefn(alpacaParser.DefnContext)
Exit a parse tree produced by defn().
The default implementation does nothing.
Declaration
public virtual void ExitDefn(alpacaParser.DefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnContext | context | The parse tree. |
ExitDefns(alpacaParser.DefnsContext)
Exit a parse tree produced by defns().
The default implementation does nothing.
Declaration
public virtual void ExitDefns(alpacaParser.DefnsContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.DefnsContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitExpression(alpacaParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(alpacaParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ExpressionContext | context | The parse tree. |
ExitIdentifier(alpacaParser.IdentifierContext)
Exit a parse tree produced by identifier().
The default implementation does nothing.
Declaration
public virtual void ExitIdentifier(alpacaParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.IdentifierContext | context | The parse tree. |
ExitMembershipDecl(alpacaParser.MembershipDeclContext)
Exit a parse tree produced by membershipDecl().
The default implementation does nothing.
Declaration
public virtual void ExitMembershipDecl(alpacaParser.MembershipDeclContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.MembershipDeclContext | context | The parse tree. |
ExitNaturalnumber(alpacaParser.NaturalnumberContext)
Exit a parse tree produced by naturalnumber().
The default implementation does nothing.
Declaration
public virtual void ExitNaturalnumber(alpacaParser.NaturalnumberContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NaturalnumberContext | context | The parse tree. |
ExitNbhdDefn(alpacaParser.NbhdDefnContext)
Exit a parse tree produced by nbhdDefn().
The default implementation does nothing.
Declaration
public virtual void ExitNbhdDefn(alpacaParser.NbhdDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdDefnContext | context | The parse tree. |
ExitNbhdID(alpacaParser.NbhdIDContext)
Exit a parse tree produced by nbhdID().
The default implementation does nothing.
Declaration
public virtual void ExitNbhdID(alpacaParser.NbhdIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NbhdIDContext | context | The parse tree. |
ExitNeigbourhood(alpacaParser.NeigbourhoodContext)
Exit a parse tree produced by neigbourhood().
The default implementation does nothing.
Declaration
public virtual void ExitNeigbourhood(alpacaParser.NeigbourhoodContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.NeigbourhoodContext | context | The parse tree. |
ExitProg(alpacaParser.ProgContext)
Exit a parse tree produced by prog().
The default implementation does nothing.
Declaration
public virtual void ExitProg(alpacaParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.ProgContext | context | The parse tree. |
ExitRelationalPred(alpacaParser.RelationalPredContext)
Exit a parse tree produced by relationalPred().
The default implementation does nothing.
Declaration
public virtual void ExitRelationalPred(alpacaParser.RelationalPredContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RelationalPredContext | context | The parse tree. |
ExitRule_(alpacaParser.Rule_Context)
Exit a parse tree produced by rule_().
The default implementation does nothing.
Declaration
public virtual void ExitRule_(alpacaParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.Rule_Context | context | The parse tree. |
ExitRules(alpacaParser.RulesContext)
Exit a parse tree produced by rules().
The default implementation does nothing.
Declaration
public virtual void ExitRules(alpacaParser.RulesContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.RulesContext | context | The parse tree. |
ExitStateDefn(alpacaParser.StateDefnContext)
Exit a parse tree produced by stateDefn().
The default implementation does nothing.
Declaration
public virtual void ExitStateDefn(alpacaParser.StateDefnContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateDefnContext | context | The parse tree. |
ExitStateID(alpacaParser.StateIDContext)
Exit a parse tree produced by stateID().
The default implementation does nothing.
Declaration
public virtual void ExitStateID(alpacaParser.StateIDContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateIDContext | context | The parse tree. |
ExitStateRef(alpacaParser.StateRefContext)
Exit a parse tree produced by stateRef().
The default implementation does nothing.
Declaration
public virtual void ExitStateRef(alpacaParser.StateRefContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.StateRefContext | context | The parse tree. |
ExitTerm(alpacaParser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(alpacaParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
alpacaParser.TermContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.