Show / Hide Table of Contents

Class oberonBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitActualParameters(oberonParser.ActualParametersContext)

Visit a parse tree produced by actualParameters().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitActualParameters(oberonParser.ActualParametersContext context)
Parameters
Type Name Description
oberonParser.ActualParametersContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAddOperator(oberonParser.AddOperatorContext)

Visit a parse tree produced by addOperator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAddOperator(oberonParser.AddOperatorContext context)
Parameters
Type Name Description
oberonParser.AddOperatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitArrayType(oberonParser.ArrayTypeContext)

Visit a parse tree produced by arrayType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArrayType(oberonParser.ArrayTypeContext context)
Parameters
Type Name Description
oberonParser.ArrayTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAssignment(oberonParser.AssignmentContext)

Visit a parse tree produced by assignment().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAssignment(oberonParser.AssignmentContext context)
Parameters
Type Name Description
oberonParser.AssignmentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBaseType(oberonParser.BaseTypeContext)

Visit a parse tree produced by baseType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBaseType(oberonParser.BaseTypeContext context)
Parameters
Type Name Description
oberonParser.BaseTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCase_(oberonParser.Case_Context)

Visit a parse tree produced by case_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCase_(oberonParser.Case_Context context)
Parameters
Type Name Description
oberonParser.Case_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCaseLabelList(oberonParser.CaseLabelListContext)

Visit a parse tree produced by caseLabelList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCaseLabelList(oberonParser.CaseLabelListContext context)
Parameters
Type Name Description
oberonParser.CaseLabelListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCaseStatement(oberonParser.CaseStatementContext)

Visit a parse tree produced by caseStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCaseStatement(oberonParser.CaseStatementContext context)
Parameters
Type Name Description
oberonParser.CaseStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstDeclaration(oberonParser.ConstDeclarationContext)

Visit a parse tree produced by constDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstDeclaration(oberonParser.ConstDeclarationContext context)
Parameters
Type Name Description
oberonParser.ConstDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstExpression(oberonParser.ConstExpressionContext)

Visit a parse tree produced by constExpression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstExpression(oberonParser.ConstExpressionContext context)
Parameters
Type Name Description
oberonParser.ConstExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclarationSequence(oberonParser.DeclarationSequenceContext)

Visit a parse tree produced by declarationSequence().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclarationSequence(oberonParser.DeclarationSequenceContext context)
Parameters
Type Name Description
oberonParser.DeclarationSequenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDesignator(oberonParser.DesignatorContext)

Visit a parse tree produced by designator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDesignator(oberonParser.DesignatorContext context)
Parameters
Type Name Description
oberonParser.DesignatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitElement(oberonParser.ElementContext)

Visit a parse tree produced by element().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitElement(oberonParser.ElementContext context)
Parameters
Type Name Description
oberonParser.ElementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpList(oberonParser.ExpListContext)

Visit a parse tree produced by expList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpList(oberonParser.ExpListContext context)
Parameters
Type Name Description
oberonParser.ExpListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(oberonParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFactor(oberonParser.FactorContext)

Visit a parse tree produced by factor().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldList(oberonParser.FieldListContext)

Visit a parse tree produced by fieldList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldList(oberonParser.FieldListContext context)
Parameters
Type Name Description
oberonParser.FieldListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFieldListSequence(oberonParser.FieldListSequenceContext)

Visit a parse tree produced by fieldListSequence().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFieldListSequence(oberonParser.FieldListSequenceContext context)
Parameters
Type Name Description
oberonParser.FieldListSequenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFormalParameters(oberonParser.FormalParametersContext)

Visit a parse tree produced by formalParameters().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFormalParameters(oberonParser.FormalParametersContext context)
Parameters
Type Name Description
oberonParser.FormalParametersContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFormalType(oberonParser.FormalTypeContext)

Visit a parse tree produced by formalType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFormalType(oberonParser.FormalTypeContext context)
Parameters
Type Name Description
oberonParser.FormalTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitForStatement(oberonParser.ForStatementContext)

Visit a parse tree produced by forStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitForStatement(oberonParser.ForStatementContext context)
Parameters
Type Name Description
oberonParser.ForStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFPSection(oberonParser.FPSectionContext)

Visit a parse tree produced by fPSection().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFPSection(oberonParser.FPSectionContext context)
Parameters
Type Name Description
oberonParser.FPSectionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdent(oberonParser.IdentContext)

Visit a parse tree produced by ident().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdentdef(oberonParser.IdentdefContext)

Visit a parse tree produced by identdef().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdentdef(oberonParser.IdentdefContext context)
Parameters
Type Name Description
oberonParser.IdentdefContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIdentList(oberonParser.IdentListContext)

Visit a parse tree produced by identList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIdentList(oberonParser.IdentListContext context)
Parameters
Type Name Description
oberonParser.IdentListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIfStatement(oberonParser.IfStatementContext)

Visit a parse tree produced by ifStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIfStatement(oberonParser.IfStatementContext context)
Parameters
Type Name Description
oberonParser.IfStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitImport_(oberonParser.Import_Context)

Visit a parse tree produced by import_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitImport_(oberonParser.Import_Context context)
Parameters
Type Name Description
oberonParser.Import_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitImportList(oberonParser.ImportListContext)

Visit a parse tree produced by importList().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitImportList(oberonParser.ImportListContext context)
Parameters
Type Name Description
oberonParser.ImportListContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInteger(oberonParser.IntegerContext)

Visit a parse tree produced by integer().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInteger(oberonParser.IntegerContext context)
Parameters
Type Name Description
oberonParser.IntegerContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabel(oberonParser.LabelContext)

Visit a parse tree produced by label().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabel(oberonParser.LabelContext context)
Parameters
Type Name Description
oberonParser.LabelContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabelRange(oberonParser.LabelRangeContext)

Visit a parse tree produced by labelRange().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabelRange(oberonParser.LabelRangeContext context)
Parameters
Type Name Description
oberonParser.LabelRangeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLength(oberonParser.LengthContext)

Visit a parse tree produced by length().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLength(oberonParser.LengthContext context)
Parameters
Type Name Description
oberonParser.LengthContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitModule(oberonParser.ModuleContext)

Visit a parse tree produced by module().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitModule(oberonParser.ModuleContext context)
Parameters
Type Name Description
oberonParser.ModuleContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMulOperator(oberonParser.MulOperatorContext)

Visit a parse tree produced by mulOperator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMulOperator(oberonParser.MulOperatorContext context)
Parameters
Type Name Description
oberonParser.MulOperatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(oberonParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPointerType(oberonParser.PointerTypeContext)

Visit a parse tree produced by pointerType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPointerType(oberonParser.PointerTypeContext context)
Parameters
Type Name Description
oberonParser.PointerTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureBody(oberonParser.ProcedureBodyContext)

Visit a parse tree produced by procedureBody().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedureBody(oberonParser.ProcedureBodyContext context)
Parameters
Type Name Description
oberonParser.ProcedureBodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureCall(oberonParser.ProcedureCallContext)

Visit a parse tree produced by procedureCall().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedureCall(oberonParser.ProcedureCallContext context)
Parameters
Type Name Description
oberonParser.ProcedureCallContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureDeclaration(oberonParser.ProcedureDeclarationContext)

Visit a parse tree produced by procedureDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedureDeclaration(oberonParser.ProcedureDeclarationContext context)
Parameters
Type Name Description
oberonParser.ProcedureDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureHeading(oberonParser.ProcedureHeadingContext)

Visit a parse tree produced by procedureHeading().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedureHeading(oberonParser.ProcedureHeadingContext context)
Parameters
Type Name Description
oberonParser.ProcedureHeadingContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureType(oberonParser.ProcedureTypeContext)

Visit a parse tree produced by procedureType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProcedureType(oberonParser.ProcedureTypeContext context)
Parameters
Type Name Description
oberonParser.ProcedureTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitQualident(oberonParser.QualidentContext)

Visit a parse tree produced by qualident().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitQualident(oberonParser.QualidentContext context)
Parameters
Type Name Description
oberonParser.QualidentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReal(oberonParser.RealContext)

Visit a parse tree produced by real().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReal(oberonParser.RealContext context)
Parameters
Type Name Description
oberonParser.RealContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRecordType(oberonParser.RecordTypeContext)

Visit a parse tree produced by recordType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRecordType(oberonParser.RecordTypeContext context)
Parameters
Type Name Description
oberonParser.RecordTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRelation(oberonParser.RelationContext)

Visit a parse tree produced by relation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRelation(oberonParser.RelationContext context)
Parameters
Type Name Description
oberonParser.RelationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRepeatStatement(oberonParser.RepeatStatementContext)

Visit a parse tree produced by repeatStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRepeatStatement(oberonParser.RepeatStatementContext context)
Parameters
Type Name Description
oberonParser.RepeatStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitScaleFactor(oberonParser.ScaleFactorContext)

Visit a parse tree produced by scaleFactor().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitScaleFactor(oberonParser.ScaleFactorContext context)
Parameters
Type Name Description
oberonParser.ScaleFactorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSelector(oberonParser.SelectorContext)

Visit a parse tree produced by selector().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSelector(oberonParser.SelectorContext context)
Parameters
Type Name Description
oberonParser.SelectorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSet_(oberonParser.Set_Context)

Visit a parse tree produced by set_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSet_(oberonParser.Set_Context context)
Parameters
Type Name Description
oberonParser.Set_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSimpleExpression(oberonParser.SimpleExpressionContext)

Visit a parse tree produced by simpleExpression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSimpleExpression(oberonParser.SimpleExpressionContext context)
Parameters
Type Name Description
oberonParser.SimpleExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(oberonParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatementSequence(oberonParser.StatementSequenceContext)

Visit a parse tree produced by statementSequence().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatementSequence(oberonParser.StatementSequenceContext context)
Parameters
Type Name Description
oberonParser.StatementSequenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTerm(oberonParser.TermContext)

Visit a parse tree produced by term().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_(oberonParser.Type_Context)

Visit a parse tree produced by type_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_(oberonParser.Type_Context context)
Parameters
Type Name Description
oberonParser.Type_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTypeDeclaration(oberonParser.TypeDeclarationContext)

Visit a parse tree produced by typeDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTypeDeclaration(oberonParser.TypeDeclarationContext context)
Parameters
Type Name Description
oberonParser.TypeDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariableDeclaration(oberonParser.VariableDeclarationContext)

Visit a parse tree produced by variableDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVariableDeclaration(oberonParser.VariableDeclarationContext context)
Parameters
Type Name Description
oberonParser.VariableDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhileStatement(oberonParser.WhileStatementContext)

Visit a parse tree produced by whileStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhileStatement(oberonParser.WhileStatementContext context)
Parameters
Type Name Description
oberonParser.WhileStatementContext context

The parse tree.

Returns
Type Description
Result

Implements

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