Show / Hide Table of Contents

Class pl0BaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitAssignstmt(pl0Parser.AssignstmtContext)

Visit a parse tree produced by assignstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAssignstmt(pl0Parser.AssignstmtContext context)
Parameters
Type Name Description
pl0Parser.AssignstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBangstmt(pl0Parser.BangstmtContext)

Visit a parse tree produced by bangstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBangstmt(pl0Parser.BangstmtContext context)
Parameters
Type Name Description
pl0Parser.BangstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBeginstmt(pl0Parser.BeginstmtContext)

Visit a parse tree produced by beginstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBeginstmt(pl0Parser.BeginstmtContext context)
Parameters
Type Name Description
pl0Parser.BeginstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBlock(pl0Parser.BlockContext)

Visit a parse tree produced by block().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBlock(pl0Parser.BlockContext context)
Parameters
Type Name Description
pl0Parser.BlockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCallstmt(pl0Parser.CallstmtContext)

Visit a parse tree produced by callstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCallstmt(pl0Parser.CallstmtContext context)
Parameters
Type Name Description
pl0Parser.CallstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCondition(pl0Parser.ConditionContext)

Visit a parse tree produced by condition().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCondition(pl0Parser.ConditionContext context)
Parameters
Type Name Description
pl0Parser.ConditionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConsts(pl0Parser.ConstsContext)

Visit a parse tree produced by consts().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConsts(pl0Parser.ConstsContext context)
Parameters
Type Name Description
pl0Parser.ConstsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(pl0Parser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFactor(pl0Parser.FactorContext)

Visit a parse tree produced by factor().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFactor(pl0Parser.FactorContext context)
Parameters
Type Name Description
pl0Parser.FactorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdent(pl0Parser.IdentContext)

Visit a parse tree produced by ident().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdent(pl0Parser.IdentContext context)
Parameters
Type Name Description
pl0Parser.IdentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIfstmt(pl0Parser.IfstmtContext)

Visit a parse tree produced by ifstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIfstmt(pl0Parser.IfstmtContext context)
Parameters
Type Name Description
pl0Parser.IfstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(pl0Parser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedure(pl0Parser.ProcedureContext)

Visit a parse tree produced by procedure().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedure(pl0Parser.ProcedureContext context)
Parameters
Type Name Description
pl0Parser.ProcedureContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram(pl0Parser.ProgramContext)

Visit a parse tree produced by program().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProgram(pl0Parser.ProgramContext context)
Parameters
Type Name Description
pl0Parser.ProgramContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitQstmt(pl0Parser.QstmtContext)

Visit a parse tree produced by qstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitQstmt(pl0Parser.QstmtContext context)
Parameters
Type Name Description
pl0Parser.QstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(pl0Parser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTerm(pl0Parser.TermContext)

Visit a parse tree produced by term().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVars_(pl0Parser.Vars_Context)

Visit a parse tree produced by vars_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVars_(pl0Parser.Vars_Context context)
Parameters
Type Name Description
pl0Parser.Vars_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhilestmt(pl0Parser.WhilestmtContext)

Visit a parse tree produced by whilestmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhilestmt(pl0Parser.WhilestmtContext context)
Parameters
Type Name Description
pl0Parser.WhilestmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWritestmt(pl0Parser.WritestmtContext)

Visit a parse tree produced by writestmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWritestmt(pl0Parser.WritestmtContext context)
Parameters
Type Name Description
pl0Parser.WritestmtContext context

The parse tree.

Returns
Type Description
Result

Implements

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