Class focalBaseVisitor<Result>
This class provides an empty implementation of IfocalVisitor<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.Focal
Assembly: Focal.dll
Syntax
public class focalBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IfocalVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAsk(focalParser.AskContext)
Visit a parse tree produced by ask().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAsk(focalParser.AskContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAskpair(focalParser.AskpairContext)
Visit a parse tree produced by askpair().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAskpair(focalParser.AskpairContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskpairContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommand(focalParser.CommandContext)
Visit a parse tree produced by command().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommand(focalParser.CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommandContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComment(focalParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(focalParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDo_(focalParser.Do_Context)
Visit a parse tree produced by do_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDo_(focalParser.Do_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Do_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(focalParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(focalParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFor_(focalParser.For_Context)
Visit a parse tree produced by for_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFor_(focalParser.For_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.For_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGoto_(focalParser.Goto_Context)
Visit a parse tree produced by goto_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGoto_(focalParser.Goto_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Goto_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGrpnum(focalParser.GrpnumContext)
Visit a parse tree produced by grpnum().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGrpnum(focalParser.GrpnumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.GrpnumContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIf_(focalParser.If_Context)
Visit a parse tree produced by if_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIf_(focalParser.If_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.If_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLinenum(focalParser.LinenumContext)
Visit a parse tree produced by linenum().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLinenum(focalParser.LinenumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.LinenumContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMantissa(focalParser.MantissaContext)
Visit a parse tree produced by mantissa().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMantissa(focalParser.MantissaContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.MantissaContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(focalParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(focalParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrimary(focalParser.PrimaryContext)
Visit a parse tree produced by primary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrimary(focalParser.PrimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.PrimaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProg(focalParser.ProgContext)
Visit a parse tree produced by prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProg(focalParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ProgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQuit(focalParser.QuitContext)
Visit a parse tree produced by quit().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQuit(focalParser.QuitContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.QuitContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReturn_(focalParser.Return_Context)
Visit a parse tree produced by return_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReturn_(focalParser.Return_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Return_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSet_(focalParser.Set_Context)
Visit a parse tree produced by set_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSet_(focalParser.Set_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Set_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSigned_(focalParser.Signed_Context)
Visit a parse tree produced by signed_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSigned_(focalParser.Signed_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Signed_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(focalParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(focalParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(focalParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(focalParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_(focalParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_(focalParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Type_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeexpression(focalParser.TypeexpressionContext)
Visit a parse tree produced by typeexpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeexpression(focalParser.TypeexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TypeexpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWrite_(focalParser.Write_Context)
Visit a parse tree produced by write_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWrite_(focalParser.Write_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Write_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |