Table of Contents

Class NCalcBaseListener

Namespace
NCalc.Antlr
Assembly
NCalc.Antlr.dll

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.AdditiveExpressionContext

The 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.ArgumentsContext

The 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.BitwiseAndExpressionContext

The 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.BitwiseOrExpressionContext

The 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.BitwiseXOrExpressionContext

The 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.BooleanAndExpressionContext

The 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.ConditionalExpressionContext

The 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.EqualityExpressionContext

The 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.ExponentialExpressionContext

The 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.ExpressionListContext

The 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.IdentifierContext

The 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.LogicalExpressionContext

The 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.MultiplicativeExpressionContext

The 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.NcalcExpressionContext

The 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.PrimaryExpressionContext

The 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.RelationalExpressionContext

The 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.ShiftExpressionContext

The 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.UnaryExpressionContext

The 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.ValueContext

The 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.AdditiveExpressionContext

The 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.ArgumentsContext

The 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.BitwiseAndExpressionContext

The 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.BitwiseOrExpressionContext

The 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.BitwiseXOrExpressionContext

The 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.BooleanAndExpressionContext

The 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.ConditionalExpressionContext

The 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.EqualityExpressionContext

The 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.ExponentialExpressionContext

The 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.ExpressionListContext

The 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.IdentifierContext

The 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.LogicalExpressionContext

The 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.MultiplicativeExpressionContext

The 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.NcalcExpressionContext

The 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.PrimaryExpressionContext

The 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.RelationalExpressionContext

The 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.ShiftExpressionContext

The 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.UnaryExpressionContext

The 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.ValueContext

The 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.