Show / Hide Table of Contents

Class turingBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitArrayType(turingParser.ArrayTypeContext)

Visit a parse tree produced by arrayType().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBooleanExpn(turingParser.BooleanExpnContext)

Visit a parse tree produced by booleanExpn().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBooleanExpn(turingParser.BooleanExpnContext context)
Parameters
Type Name Description
turingParser.BooleanExpnContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCapability(turingParser.CapabilityContext)

Visit a parse tree produced by capability().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCapability(turingParser.CapabilityContext context)
Parameters
Type Name Description
turingParser.CapabilityContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCaseStatement(turingParser.CaseStatementContext)

Visit a parse tree produced by caseStatement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCloseStatement(turingParser.CloseStatementContext)

Visit a parse tree produced by closeStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCloseStatement(turingParser.CloseStatementContext context)
Parameters
Type Name Description
turingParser.CloseStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCompileTimeExpn(turingParser.CompileTimeExpnContext)

Visit a parse tree produced by compileTimeExpn().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCompileTimeExpn(turingParser.CompileTimeExpnContext context)
Parameters
Type Name Description
turingParser.CompileTimeExpnContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitComponentSelector(turingParser.ComponentSelectorContext)

Visit a parse tree produced by componentSelector().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitComponentSelector(turingParser.ComponentSelectorContext context)
Parameters
Type Name Description
turingParser.ComponentSelectorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstantDeclaration(turingParser.ConstantDeclarationContext)

Visit a parse tree produced by constantDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstantDeclaration(turingParser.ConstantDeclarationContext context)
Parameters
Type Name Description
turingParser.ConstantDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclaration(turingParser.DeclarationContext)

Visit a parse tree produced by declaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclaration(turingParser.DeclarationContext context)
Parameters
Type Name Description
turingParser.DeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclarationOrStatement(turingParser.DeclarationOrStatementContext)

Visit a parse tree produced by declarationOrStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclarationOrStatement(turingParser.DeclarationOrStatementContext context)
Parameters
Type Name Description
turingParser.DeclarationOrStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclarationOrStatementInMainProgram(turingParser.DeclarationOrStatementInMainProgramContext)

Visit a parse tree produced by declarationOrStatementInMainProgram().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclarationOrStatementInMainProgram(turingParser.DeclarationOrStatementInMainProgramContext context)
Parameters
Type Name Description
turingParser.DeclarationOrStatementInMainProgramContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclarationsAndStatements(turingParser.DeclarationsAndStatementsContext)

Visit a parse tree produced by declarationsAndStatements().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclarationsAndStatements(turingParser.DeclarationsAndStatementsContext context)
Parameters
Type Name Description
turingParser.DeclarationsAndStatementsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExplicitConstant(turingParser.ExplicitConstantContext)

Visit a parse tree produced by explicitConstant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExplicitConstant(turingParser.ExplicitConstantContext context)
Parameters
Type Name Description
turingParser.ExplicitConstantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpn(turingParser.ExpnContext)

Visit a parse tree produced by expn().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpn(turingParser.ExpnContext context)
Parameters
Type Name Description
turingParser.ExpnContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExponentWidth(turingParser.ExponentWidthContext)

Visit a parse tree produced by exponentWidth().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExponentWidth(turingParser.ExponentWidthContext context)
Parameters
Type Name Description
turingParser.ExponentWidthContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFileNumber(turingParser.FileNumberContext)

Visit a parse tree produced by fileNumber().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFileNumber(turingParser.FileNumberContext context)
Parameters
Type Name Description
turingParser.FileNumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitForStatement(turingParser.ForStatementContext)

Visit a parse tree produced by forStatement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFractionWidth(turingParser.FractionWidthContext)

Visit a parse tree produced by fractionWidth().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFractionWidth(turingParser.FractionWidthContext context)
Parameters
Type Name Description
turingParser.FractionWidthContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGetItem(turingParser.GetItemContext)

Visit a parse tree produced by getItem().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGetItem(turingParser.GetItemContext context)
Parameters
Type Name Description
turingParser.GetItemContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGetStatement(turingParser.GetStatementContext)

Visit a parse tree produced by getStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGetStatement(turingParser.GetStatementContext context)
Parameters
Type Name Description
turingParser.GetStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitId_(turingParser.Id_Context)

Visit a parse tree produced by id_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitId_(turingParser.Id_Context context)
Parameters
Type Name Description
turingParser.Id_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIfStatement(turingParser.IfStatementContext)

Visit a parse tree produced by ifStatement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIndexType(turingParser.IndexTypeContext)

Visit a parse tree produced by indexType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIndexType(turingParser.IndexTypeContext context)
Parameters
Type Name Description
turingParser.IndexTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInfixOperator(turingParser.InfixOperatorContext)

Visit a parse tree produced by infixOperator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInfixOperator(turingParser.InfixOperatorContext context)
Parameters
Type Name Description
turingParser.InfixOperatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInitializingValue(turingParser.InitializingValueContext)

Visit a parse tree produced by initializingValue().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInitializingValue(turingParser.InitializingValueContext context)
Parameters
Type Name Description
turingParser.InitializingValueContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLoopStatement(turingParser.LoopStatementContext)

Visit a parse tree produced by loopStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLoopStatement(turingParser.LoopStatementContext context)
Parameters
Type Name Description
turingParser.LoopStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNamedType(turingParser.NamedTypeContext)

Visit a parse tree produced by namedType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNamedType(turingParser.NamedTypeContext context)
Parameters
Type Name Description
turingParser.NamedTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOpenStatement(turingParser.OpenStatementContext)

Visit a parse tree produced by openStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOpenStatement(turingParser.OpenStatementContext context)
Parameters
Type Name Description
turingParser.OpenStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParameterDeclaration(turingParser.ParameterDeclarationContext)

Visit a parse tree produced by parameterDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParameterDeclaration(turingParser.ParameterDeclarationContext context)
Parameters
Type Name Description
turingParser.ParameterDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParameterType(turingParser.ParameterTypeContext)

Visit a parse tree produced by parameterType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParameterType(turingParser.ParameterTypeContext context)
Parameters
Type Name Description
turingParser.ParameterTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPrefixOperator(turingParser.PrefixOperatorContext)

Visit a parse tree produced by prefixOperator().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPrefixOperator(turingParser.PrefixOperatorContext context)
Parameters
Type Name Description
turingParser.PrefixOperatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProcedureCall(turingParser.ProcedureCallContext)

Visit a parse tree produced by procedureCall().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram(turingParser.ProgramContext)

Visit a parse tree produced by program().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPutItem(turingParser.PutItemContext)

Visit a parse tree produced by putItem().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPutItem(turingParser.PutItemContext context)
Parameters
Type Name Description
turingParser.PutItemContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPutStatement(turingParser.PutStatementContext)

Visit a parse tree produced by putStatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPutStatement(turingParser.PutStatementContext context)
Parameters
Type Name Description
turingParser.PutStatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRecordType(turingParser.RecordTypeContext)

Visit a parse tree produced by recordType().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReference(turingParser.ReferenceContext)

Visit a parse tree produced by reference().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReference(turingParser.ReferenceContext context)
Parameters
Type Name Description
turingParser.ReferenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReference_2(turingParser.Reference_2Context)

Visit a parse tree produced by reference_2().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReference_2(turingParser.Reference_2Context context)
Parameters
Type Name Description
turingParser.Reference_2Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStandardType(turingParser.StandardTypeContext)

Visit a parse tree produced by standardType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStandardType(turingParser.StandardTypeContext context)
Parameters
Type Name Description
turingParser.StandardTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(turingParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStreamNumber(turingParser.StreamNumberContext)

Visit a parse tree produced by streamNumber().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStreamNumber(turingParser.StreamNumberContext context)
Parameters
Type Name Description
turingParser.StreamNumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitString(turingParser.StringContext)

Visit a parse tree produced by .

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitString(turingParser.StringContext context)
Parameters
Type Name Description
turingParser.StringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubprogramBody(turingParser.SubprogramBodyContext)

Visit a parse tree produced by subprogramBody().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubprogramBody(turingParser.SubprogramBodyContext context)
Parameters
Type Name Description
turingParser.SubprogramBodyContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubprogramDeclaration(turingParser.SubprogramDeclarationContext)

Visit a parse tree produced by subprogramDeclaration().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubprogramDeclaration(turingParser.SubprogramDeclarationContext context)
Parameters
Type Name Description
turingParser.SubprogramDeclarationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubprogramHeader(turingParser.SubprogramHeaderContext)

Visit a parse tree produced by subprogramHeader().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubprogramHeader(turingParser.SubprogramHeaderContext context)
Parameters
Type Name Description
turingParser.SubprogramHeaderContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubrangeType(turingParser.SubrangeTypeContext)

Visit a parse tree produced by subrangeType().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubrangeType(turingParser.SubrangeTypeContext context)
Parameters
Type Name Description
turingParser.SubrangeTypeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubstring(turingParser.SubstringContext)

Visit a parse tree produced by substring().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubstring(turingParser.SubstringContext context)
Parameters
Type Name Description
turingParser.SubstringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSubstringPosition(turingParser.SubstringPositionContext)

Visit a parse tree produced by substringPosition().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSubstringPosition(turingParser.SubstringPositionContext context)
Parameters
Type Name Description
turingParser.SubstringPositionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTypeDeclaration(turingParser.TypeDeclarationContext)

Visit a parse tree produced by typeDeclaration().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTypeSpec(turingParser.TypeSpecContext)

Visit a parse tree produced by typeSpec().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTypeSpec(turingParser.TypeSpecContext context)
Parameters
Type Name Description
turingParser.TypeSpecContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariableDeclaration(turingParser.VariableDeclarationContext)

Visit a parse tree produced by variableDeclaration().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariableReference(turingParser.VariableReferenceContext)

Visit a parse tree produced by variableReference().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVariableReference(turingParser.VariableReferenceContext context)
Parameters
Type Name Description
turingParser.VariableReferenceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWidthExpn(turingParser.WidthExpnContext)

Visit a parse tree produced by widthExpn().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWidthExpn(turingParser.WidthExpnContext context)
Parameters
Type Name Description
turingParser.WidthExpnContext context

The parse tree.

Returns
Type Description
Result

Implements

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