Class NCalcBaseListener
This class provides an empty implementation of INCalcListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
[CLSCompliant(false)]
public class NCalcBaseListener : INCalcListener, IParseTreeListener
- Inheritance
-
NCalcBaseListener
- Implements
-
IParseTreeListener
- Inherited Members
Methods
EnterAdditiveExpression(AdditiveExpressionContext)
Enter a parse tree produced by additiveExpression().
The default implementation does nothing.
public virtual void EnterAdditiveExpression(NCalcParser.AdditiveExpressionContext context)
Parameters
context
NCalcParser.AdditiveExpressionContextThe parse tree.
EnterArguments(ArgumentsContext)
Enter a parse tree produced by arguments().
The default implementation does nothing.
public virtual void EnterArguments(NCalcParser.ArgumentsContext context)
Parameters
context
NCalcParser.ArgumentsContextThe parse tree.
EnterBitwiseAndExpression(BitwiseAndExpressionContext)
Enter a parse tree produced by bitwiseAndExpression().
The default implementation does nothing.
public virtual void EnterBitwiseAndExpression(NCalcParser.BitwiseAndExpressionContext context)
Parameters
context
NCalcParser.BitwiseAndExpressionContextThe parse tree.
EnterBitwiseOrExpression(BitwiseOrExpressionContext)
Enter a parse tree produced by bitwiseOrExpression().
The default implementation does nothing.
public virtual void EnterBitwiseOrExpression(NCalcParser.BitwiseOrExpressionContext context)
Parameters
context
NCalcParser.BitwiseOrExpressionContextThe parse tree.
EnterBitwiseXOrExpression(BitwiseXOrExpressionContext)
Enter a parse tree produced by bitwiseXOrExpression().
The default implementation does nothing.
public virtual void EnterBitwiseXOrExpression(NCalcParser.BitwiseXOrExpressionContext context)
Parameters
context
NCalcParser.BitwiseXOrExpressionContextThe parse tree.
EnterBooleanAndExpression(BooleanAndExpressionContext)
Enter a parse tree produced by booleanAndExpression().
The default implementation does nothing.
public virtual void EnterBooleanAndExpression(NCalcParser.BooleanAndExpressionContext context)
Parameters
context
NCalcParser.BooleanAndExpressionContextThe parse tree.
EnterConditionalExpression(ConditionalExpressionContext)
Enter a parse tree produced by conditionalExpression().
The default implementation does nothing.
public virtual void EnterConditionalExpression(NCalcParser.ConditionalExpressionContext context)
Parameters
context
NCalcParser.ConditionalExpressionContextThe parse tree.
EnterEqualityExpression(EqualityExpressionContext)
Enter a parse tree produced by equalityExpression().
The default implementation does nothing.
public virtual void EnterEqualityExpression(NCalcParser.EqualityExpressionContext context)
Parameters
context
NCalcParser.EqualityExpressionContextThe parse tree.
EnterEveryRule(ParserRuleContext)
public virtual void EnterEveryRule(ParserRuleContext context)
Parameters
context
ParserRuleContext
Remarks
The default implementation does nothing.
EnterExponentialExpression(ExponentialExpressionContext)
Enter a parse tree produced by exponentialExpression().
The default implementation does nothing.
public virtual void EnterExponentialExpression(NCalcParser.ExponentialExpressionContext context)
Parameters
context
NCalcParser.ExponentialExpressionContextThe parse tree.
EnterExpressionList(ExpressionListContext)
Enter a parse tree produced by expressionList().
The default implementation does nothing.
public virtual void EnterExpressionList(NCalcParser.ExpressionListContext context)
Parameters
context
NCalcParser.ExpressionListContextThe parse tree.
EnterIdentifier(IdentifierContext)
Enter a parse tree produced by identifier().
The default implementation does nothing.
public virtual void EnterIdentifier(NCalcParser.IdentifierContext context)
Parameters
context
NCalcParser.IdentifierContextThe parse tree.
EnterLogicalExpression(LogicalExpressionContext)
Enter a parse tree produced by logicalExpression().
The default implementation does nothing.
public virtual void EnterLogicalExpression(NCalcParser.LogicalExpressionContext context)
Parameters
context
NCalcParser.LogicalExpressionContextThe parse tree.
EnterMultiplicativeExpression(MultiplicativeExpressionContext)
Enter a parse tree produced by multiplicativeExpression().
The default implementation does nothing.
public virtual void EnterMultiplicativeExpression(NCalcParser.MultiplicativeExpressionContext context)
Parameters
context
NCalcParser.MultiplicativeExpressionContextThe parse tree.
EnterNcalcExpression(NcalcExpressionContext)
Enter a parse tree produced by ncalcExpression().
The default implementation does nothing.
public virtual void EnterNcalcExpression(NCalcParser.NcalcExpressionContext context)
Parameters
context
NCalcParser.NcalcExpressionContextThe parse tree.
EnterPrimaryExpression(PrimaryExpressionContext)
Enter a parse tree produced by primaryExpression().
The default implementation does nothing.
public virtual void EnterPrimaryExpression(NCalcParser.PrimaryExpressionContext context)
Parameters
context
NCalcParser.PrimaryExpressionContextThe parse tree.
EnterRelationalExpression(RelationalExpressionContext)
Enter a parse tree produced by relationalExpression().
The default implementation does nothing.
public virtual void EnterRelationalExpression(NCalcParser.RelationalExpressionContext context)
Parameters
context
NCalcParser.RelationalExpressionContextThe parse tree.
EnterShiftExpression(ShiftExpressionContext)
Enter a parse tree produced by shiftExpression().
The default implementation does nothing.
public virtual void EnterShiftExpression(NCalcParser.ShiftExpressionContext context)
Parameters
context
NCalcParser.ShiftExpressionContextThe parse tree.
EnterUnaryExpression(UnaryExpressionContext)
Enter a parse tree produced by unaryExpression().
The default implementation does nothing.
public virtual void EnterUnaryExpression(NCalcParser.UnaryExpressionContext context)
Parameters
context
NCalcParser.UnaryExpressionContextThe parse tree.
EnterValue(ValueContext)
Enter a parse tree produced by value().
The default implementation does nothing.
public virtual void EnterValue(NCalcParser.ValueContext context)
Parameters
context
NCalcParser.ValueContextThe parse tree.
ExitAdditiveExpression(AdditiveExpressionContext)
Exit a parse tree produced by additiveExpression().
The default implementation does nothing.
public virtual void ExitAdditiveExpression(NCalcParser.AdditiveExpressionContext context)
Parameters
context
NCalcParser.AdditiveExpressionContextThe parse tree.
ExitArguments(ArgumentsContext)
Exit a parse tree produced by arguments().
The default implementation does nothing.
public virtual void ExitArguments(NCalcParser.ArgumentsContext context)
Parameters
context
NCalcParser.ArgumentsContextThe parse tree.
ExitBitwiseAndExpression(BitwiseAndExpressionContext)
Exit a parse tree produced by bitwiseAndExpression().
The default implementation does nothing.
public virtual void ExitBitwiseAndExpression(NCalcParser.BitwiseAndExpressionContext context)
Parameters
context
NCalcParser.BitwiseAndExpressionContextThe parse tree.
ExitBitwiseOrExpression(BitwiseOrExpressionContext)
Exit a parse tree produced by bitwiseOrExpression().
The default implementation does nothing.
public virtual void ExitBitwiseOrExpression(NCalcParser.BitwiseOrExpressionContext context)
Parameters
context
NCalcParser.BitwiseOrExpressionContextThe parse tree.
ExitBitwiseXOrExpression(BitwiseXOrExpressionContext)
Exit a parse tree produced by bitwiseXOrExpression().
The default implementation does nothing.
public virtual void ExitBitwiseXOrExpression(NCalcParser.BitwiseXOrExpressionContext context)
Parameters
context
NCalcParser.BitwiseXOrExpressionContextThe parse tree.
ExitBooleanAndExpression(BooleanAndExpressionContext)
Exit a parse tree produced by booleanAndExpression().
The default implementation does nothing.
public virtual void ExitBooleanAndExpression(NCalcParser.BooleanAndExpressionContext context)
Parameters
context
NCalcParser.BooleanAndExpressionContextThe parse tree.
ExitConditionalExpression(ConditionalExpressionContext)
Exit a parse tree produced by conditionalExpression().
The default implementation does nothing.
public virtual void ExitConditionalExpression(NCalcParser.ConditionalExpressionContext context)
Parameters
context
NCalcParser.ConditionalExpressionContextThe parse tree.
ExitEqualityExpression(EqualityExpressionContext)
Exit a parse tree produced by equalityExpression().
The default implementation does nothing.
public virtual void ExitEqualityExpression(NCalcParser.EqualityExpressionContext context)
Parameters
context
NCalcParser.EqualityExpressionContextThe parse tree.
ExitEveryRule(ParserRuleContext)
public virtual void ExitEveryRule(ParserRuleContext context)
Parameters
context
ParserRuleContext
Remarks
The default implementation does nothing.
ExitExponentialExpression(ExponentialExpressionContext)
Exit a parse tree produced by exponentialExpression().
The default implementation does nothing.
public virtual void ExitExponentialExpression(NCalcParser.ExponentialExpressionContext context)
Parameters
context
NCalcParser.ExponentialExpressionContextThe parse tree.
ExitExpressionList(ExpressionListContext)
Exit a parse tree produced by expressionList().
The default implementation does nothing.
public virtual void ExitExpressionList(NCalcParser.ExpressionListContext context)
Parameters
context
NCalcParser.ExpressionListContextThe parse tree.
ExitIdentifier(IdentifierContext)
Exit a parse tree produced by identifier().
The default implementation does nothing.
public virtual void ExitIdentifier(NCalcParser.IdentifierContext context)
Parameters
context
NCalcParser.IdentifierContextThe parse tree.
ExitLogicalExpression(LogicalExpressionContext)
Exit a parse tree produced by logicalExpression().
The default implementation does nothing.
public virtual void ExitLogicalExpression(NCalcParser.LogicalExpressionContext context)
Parameters
context
NCalcParser.LogicalExpressionContextThe parse tree.
ExitMultiplicativeExpression(MultiplicativeExpressionContext)
Exit a parse tree produced by multiplicativeExpression().
The default implementation does nothing.
public virtual void ExitMultiplicativeExpression(NCalcParser.MultiplicativeExpressionContext context)
Parameters
context
NCalcParser.MultiplicativeExpressionContextThe parse tree.
ExitNcalcExpression(NcalcExpressionContext)
Exit a parse tree produced by ncalcExpression().
The default implementation does nothing.
public virtual void ExitNcalcExpression(NCalcParser.NcalcExpressionContext context)
Parameters
context
NCalcParser.NcalcExpressionContextThe parse tree.
ExitPrimaryExpression(PrimaryExpressionContext)
Exit a parse tree produced by primaryExpression().
The default implementation does nothing.
public virtual void ExitPrimaryExpression(NCalcParser.PrimaryExpressionContext context)
Parameters
context
NCalcParser.PrimaryExpressionContextThe parse tree.
ExitRelationalExpression(RelationalExpressionContext)
Exit a parse tree produced by relationalExpression().
The default implementation does nothing.
public virtual void ExitRelationalExpression(NCalcParser.RelationalExpressionContext context)
Parameters
context
NCalcParser.RelationalExpressionContextThe parse tree.
ExitShiftExpression(ShiftExpressionContext)
Exit a parse tree produced by shiftExpression().
The default implementation does nothing.
public virtual void ExitShiftExpression(NCalcParser.ShiftExpressionContext context)
Parameters
context
NCalcParser.ShiftExpressionContextThe parse tree.
ExitUnaryExpression(UnaryExpressionContext)
Exit a parse tree produced by unaryExpression().
The default implementation does nothing.
public virtual void ExitUnaryExpression(NCalcParser.UnaryExpressionContext context)
Parameters
context
NCalcParser.UnaryExpressionContextThe parse tree.
ExitValue(ValueContext)
Exit a parse tree produced by value().
The default implementation does nothing.
public virtual void ExitValue(NCalcParser.ValueContext context)
Parameters
context
NCalcParser.ValueContextThe parse tree.
VisitErrorNode(IErrorNode)
public virtual void VisitErrorNode(IErrorNode node)
Parameters
node
IErrorNode
Remarks
The default implementation does nothing.
VisitTerminal(ITerminalNode)
public virtual void VisitTerminal(ITerminalNode node)
Parameters
node
ITerminalNode
Remarks
The default implementation does nothing.