Show / Hide Table of Contents

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
System.Object
focalBaseVisitor<Result>
Implements
IfocalVisitor<Result>
IParseTreeVisitor<Result>
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 Source

VisitAsk(focalParser.AskContext)

Visit a parse tree produced by ask().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAsk(focalParser.AskContext context)
Parameters
Type Name Description
focalParser.AskContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAskpair(focalParser.AskpairContext)

Visit a parse tree produced by askpair().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAskpair(focalParser.AskpairContext context)
Parameters
Type Name Description
focalParser.AskpairContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCommand(focalParser.CommandContext)

Visit a parse tree produced by command().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCommand(focalParser.CommandContext context)
Parameters
Type Name Description
focalParser.CommandContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitComment(focalParser.CommentContext)

Visit a parse tree produced by comment().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitComment(focalParser.CommentContext context)
Parameters
Type Name Description
focalParser.CommentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDo_(focalParser.Do_Context)

Visit a parse tree produced by do_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitExpression(focalParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression(focalParser.ExpressionContext context)
Parameters
Type Name Description
focalParser.ExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFor_(focalParser.For_Context)

Visit a parse tree produced by for_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitGoto_(focalParser.Goto_Context)

Visit a parse tree produced by goto_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitGrpnum(focalParser.GrpnumContext)

Visit a parse tree produced by grpnum().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGrpnum(focalParser.GrpnumContext context)
Parameters
Type Name Description
focalParser.GrpnumContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIf_(focalParser.If_Context)

Visit a parse tree produced by if_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitLinenum(focalParser.LinenumContext)

Visit a parse tree produced by linenum().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLinenum(focalParser.LinenumContext context)
Parameters
Type Name Description
focalParser.LinenumContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMantissa(focalParser.MantissaContext)

Visit a parse tree produced by mantissa().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMantissa(focalParser.MantissaContext context)
Parameters
Type Name Description
focalParser.MantissaContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(focalParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNumber(focalParser.NumberContext context)
Parameters
Type Name Description
focalParser.NumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrimary(focalParser.PrimaryContext)

Visit a parse tree produced by primary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrimary(focalParser.PrimaryContext context)
Parameters
Type Name Description
focalParser.PrimaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProg(focalParser.ProgContext)

Visit a parse tree produced by prog().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProg(focalParser.ProgContext context)
Parameters
Type Name Description
focalParser.ProgContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitQuit(focalParser.QuitContext)

Visit a parse tree produced by quit().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitQuit(focalParser.QuitContext context)
Parameters
Type Name Description
focalParser.QuitContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReturn_(focalParser.Return_Context)

Visit a parse tree produced by return_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitSet_(focalParser.Set_Context)

Visit a parse tree produced by set_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitSigned_(focalParser.Signed_Context)

Visit a parse tree produced by signed_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitStatement(focalParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatement(focalParser.StatementContext context)
Parameters
Type Name Description
focalParser.StatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTerm(focalParser.TermContext)

Visit a parse tree produced by term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTerm(focalParser.TermContext context)
Parameters
Type Name Description
focalParser.TermContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_(focalParser.Type_Context)

Visit a parse tree produced by type_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitTypeexpression(focalParser.TypeexpressionContext)

Visit a parse tree produced by typeexpression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTypeexpression(focalParser.TypeexpressionContext context)
Parameters
Type Name Description
focalParser.TypeexpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWrite_(focalParser.Write_Context)

Visit a parse tree produced by write_().

The default implementation returns the result of calling on 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

Implements

IfocalVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX