Class agcBaseVisitor<Result>
This class provides an empty implementation of IagcVisitor<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.Agc
Assembly: Agc.dll
Syntax
public class agcBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IagcVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitArgument(agcParser.ArgumentContext)
Visit a parse tree produced by argument().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArgument(agcParser.ArgumentContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.ArgumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignment_line(agcParser.Assignment_lineContext)
Visit a parse tree produced by assignment_line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignment_line(agcParser.Assignment_lineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Assignment_lineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtom(agcParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(agcParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAxt_opcode(agcParser.Axt_opcodeContext)
Visit a parse tree produced by axt_opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAxt_opcode(agcParser.Axt_opcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Axt_opcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlank_line(agcParser.Blank_lineContext)
Visit a parse tree produced by blank_line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlank_line(agcParser.Blank_lineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Blank_lineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComment(agcParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(agcParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComment_line(agcParser.Comment_lineContext)
Visit a parse tree produced by comment_line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment_line(agcParser.Comment_lineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Comment_lineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDecimal(agcParser.DecimalContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDecimal(agcParser.DecimalContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.DecimalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEol(agcParser.EolContext)
Visit a parse tree produced by eol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEol(agcParser.EolContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.EolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitErase_line(agcParser.Erase_lineContext)
Visit a parse tree produced by erase_line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitErase_line(agcParser.Erase_lineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Erase_lineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(agcParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(agcParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInstruction_line(agcParser.Instruction_lineContext)
Visit a parse tree produced by instruction_line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInstruction_line(agcParser.Instruction_lineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Instruction_lineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInte(agcParser.InteContext)
Visit a parse tree produced by inte().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInte(agcParser.InteContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.InteContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLabel(agcParser.LabelContext)
Visit a parse tree produced by label().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLabel(agcParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.LabelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(agcParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(agcParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMultiplyingExpression(agcParser.MultiplyingExpressionContext)
Visit a parse tree produced by multiplyingExpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMultiplyingExpression(agcParser.MultiplyingExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.MultiplyingExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpcode(agcParser.OpcodeContext)
Visit a parse tree produced by opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpcode(agcParser.OpcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.OpcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpcodes(agcParser.OpcodesContext)
Visit a parse tree produced by opcodes().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpcodes(agcParser.OpcodesContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.OpcodesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProg(agcParser.ProgContext)
Visit a parse tree produced by prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProg(agcParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.ProgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPseudo_opcode(agcParser.Pseudo_opcodeContext)
Visit a parse tree produced by pseudo_opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPseudo_opcode(agcParser.Pseudo_opcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Pseudo_opcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRegister_(agcParser.Register_Context)
Visit a parse tree produced by register_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRegister_(agcParser.Register_Context context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Register_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStandard_opcode(agcParser.Standard_opcodeContext)
Visit a parse tree produced by standard_opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStandard_opcode(agcParser.Standard_opcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.Standard_opcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariable(agcParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariable(agcParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.VariableContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWs(agcParser.WsContext)
Visit a parse tree produced by ws().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWs(agcParser.WsContext context)
Parameters
Type | Name | Description |
---|---|---|
agcParser.WsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |