Show / Hide Table of Contents

Class scottyBaseVisitor<Result>

This class provides an empty implementation of IscottyVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
scottyBaseVisitor<Result>
Implements
IscottyVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Scotty
Assembly: Scotty.dll
Syntax
public class scottyBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IscottyVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitDigits(scottyParser.DigitsContext)

Visit a parse tree produced by digits().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDigits(scottyParser.DigitsContext context)
Parameters
Type Name Description
scottyParser.DigitsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFn_def(scottyParser.Fn_defContext)

Visit a parse tree produced by fn_def().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFn_def(scottyParser.Fn_defContext context)
Parameters
Type Name Description
scottyParser.Fn_defContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitId_tail(scottyParser.Id_tailContext)

Visit a parse tree produced by id_tail().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitId_tail(scottyParser.Id_tailContext context)
Parameters
Type Name Description
scottyParser.Id_tailContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdentifier(scottyParser.IdentifierContext)

Visit a parse tree produced by identifier().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdentifier(scottyParser.IdentifierContext context)
Parameters
Type Name Description
scottyParser.IdentifierContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(scottyParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrefix_exp(scottyParser.Prefix_expContext)

Visit a parse tree produced by prefix_exp().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrefix_exp(scottyParser.Prefix_expContext context)
Parameters
Type Name Description
scottyParser.Prefix_expContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProg(scottyParser.ProgContext)

Visit a parse tree produced by prog().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram_lines(scottyParser.Program_linesContext)

Visit a parse tree produced by program_lines().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProgram_lines(scottyParser.Program_linesContext context)
Parameters
Type Name Description
scottyParser.Program_linesContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVar_assign(scottyParser.Var_assignContext)

Visit a parse tree produced by var_assign().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVar_assign(scottyParser.Var_assignContext context)
Parameters
Type Name Description
scottyParser.Var_assignContext context

The parse tree.

Returns
Type Description
Result

Implements

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