Class janusBaseListener
This class provides an empty implementation of IjanusListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Janus
Assembly: Janus.dll
Syntax
public class janusBaseListener : object, IjanusListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterCallstmt(janusParser.CallstmtContext)
Enter a parse tree produced by callstmt().
The default implementation does nothing.
Declaration
public virtual void EnterCallstmt(janusParser.CallstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.CallstmtContext | context | The parse tree. |
EnterConstant(janusParser.ConstantContext)
Enter a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void EnterConstant(janusParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ConstantContext | context | The parse tree. |
EnterDostmt(janusParser.DostmtContext)
Enter a parse tree produced by dostmt().
The default implementation does nothing.
Declaration
public virtual void EnterDostmt(janusParser.DostmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.DostmtContext | 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(janusParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(janusParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ExpressionContext | context | The parse tree. |
EnterIfstmt(janusParser.IfstmtContext)
Enter a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void EnterIfstmt(janusParser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.IfstmtContext | context | The parse tree. |
EnterLvalstmt(janusParser.LvalstmtContext)
Enter a parse tree produced by lvalstmt().
The default implementation does nothing.
Declaration
public virtual void EnterLvalstmt(janusParser.LvalstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.LvalstmtContext | context | The parse tree. |
EnterLvalue(janusParser.LvalueContext)
Enter a parse tree produced by lvalue().
The default implementation does nothing.
Declaration
public virtual void EnterLvalue(janusParser.LvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.LvalueContext | context | The parse tree. |
EnterMinexp(janusParser.MinexpContext)
Enter a parse tree produced by minexp().
The default implementation does nothing.
Declaration
public virtual void EnterMinexp(janusParser.MinexpContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.MinexpContext | context | The parse tree. |
EnterModstmt(janusParser.ModstmtContext)
Enter a parse tree produced by modstmt().
The default implementation does nothing.
Declaration
public virtual void EnterModstmt(janusParser.ModstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ModstmtContext | context | The parse tree. |
EnterProgram(janusParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(janusParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ProgramContext | context | The parse tree. |
EnterReadstmt(janusParser.ReadstmtContext)
Enter a parse tree produced by readstmt().
The default implementation does nothing.
Declaration
public virtual void EnterReadstmt(janusParser.ReadstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ReadstmtContext | context | The parse tree. |
EnterStatement(janusParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(janusParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.StatementContext | context | The parse tree. |
EnterStatements(janusParser.StatementsContext)
Enter a parse tree produced by statements().
The default implementation does nothing.
Declaration
public virtual void EnterStatements(janusParser.StatementsContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.StatementsContext | context | The parse tree. |
EnterSwapstmt(janusParser.SwapstmtContext)
Enter a parse tree produced by swapstmt().
The default implementation does nothing.
Declaration
public virtual void EnterSwapstmt(janusParser.SwapstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.SwapstmtContext | context | The parse tree. |
EnterWritestmt(janusParser.WritestmtContext)
Enter a parse tree produced by writestmt().
The default implementation does nothing.
Declaration
public virtual void EnterWritestmt(janusParser.WritestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.WritestmtContext | context | The parse tree. |
ExitCallstmt(janusParser.CallstmtContext)
Exit a parse tree produced by callstmt().
The default implementation does nothing.
Declaration
public virtual void ExitCallstmt(janusParser.CallstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.CallstmtContext | context | The parse tree. |
ExitConstant(janusParser.ConstantContext)
Exit a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void ExitConstant(janusParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ConstantContext | context | The parse tree. |
ExitDostmt(janusParser.DostmtContext)
Exit a parse tree produced by dostmt().
The default implementation does nothing.
Declaration
public virtual void ExitDostmt(janusParser.DostmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.DostmtContext | 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(janusParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(janusParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ExpressionContext | context | The parse tree. |
ExitIfstmt(janusParser.IfstmtContext)
Exit a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void ExitIfstmt(janusParser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.IfstmtContext | context | The parse tree. |
ExitLvalstmt(janusParser.LvalstmtContext)
Exit a parse tree produced by lvalstmt().
The default implementation does nothing.
Declaration
public virtual void ExitLvalstmt(janusParser.LvalstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.LvalstmtContext | context | The parse tree. |
ExitLvalue(janusParser.LvalueContext)
Exit a parse tree produced by lvalue().
The default implementation does nothing.
Declaration
public virtual void ExitLvalue(janusParser.LvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.LvalueContext | context | The parse tree. |
ExitMinexp(janusParser.MinexpContext)
Exit a parse tree produced by minexp().
The default implementation does nothing.
Declaration
public virtual void ExitMinexp(janusParser.MinexpContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.MinexpContext | context | The parse tree. |
ExitModstmt(janusParser.ModstmtContext)
Exit a parse tree produced by modstmt().
The default implementation does nothing.
Declaration
public virtual void ExitModstmt(janusParser.ModstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ModstmtContext | context | The parse tree. |
ExitProgram(janusParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(janusParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ProgramContext | context | The parse tree. |
ExitReadstmt(janusParser.ReadstmtContext)
Exit a parse tree produced by readstmt().
The default implementation does nothing.
Declaration
public virtual void ExitReadstmt(janusParser.ReadstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.ReadstmtContext | context | The parse tree. |
ExitStatement(janusParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(janusParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.StatementContext | context | The parse tree. |
ExitStatements(janusParser.StatementsContext)
Exit a parse tree produced by statements().
The default implementation does nothing.
Declaration
public virtual void ExitStatements(janusParser.StatementsContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.StatementsContext | context | The parse tree. |
ExitSwapstmt(janusParser.SwapstmtContext)
Exit a parse tree produced by swapstmt().
The default implementation does nothing.
Declaration
public virtual void ExitSwapstmt(janusParser.SwapstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.SwapstmtContext | context | The parse tree. |
ExitWritestmt(janusParser.WritestmtContext)
Exit a parse tree produced by writestmt().
The default implementation does nothing.
Declaration
public virtual void ExitWritestmt(janusParser.WritestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
janusParser.WritestmtContext | 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.