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
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 SourceVisitArrayType(turingParser.ArrayTypeContext)
Visit a parse tree produced by arrayType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArrayType(turingParser.ArrayTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ArrayTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBooleanExpn(turingParser.BooleanExpnContext)
Visit a parse tree produced by booleanExpn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBooleanExpn(turingParser.BooleanExpnContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.BooleanExpnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCapability(turingParser.CapabilityContext)
Visit a parse tree produced by capability().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCapability(turingParser.CapabilityContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.CapabilityContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCaseStatement(turingParser.CaseStatementContext)
Visit a parse tree produced by caseStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCaseStatement(turingParser.CaseStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.CaseStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCloseStatement(turingParser.CloseStatementContext)
Visit a parse tree produced by closeStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCloseStatement(turingParser.CloseStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.CloseStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCompileTimeExpn(turingParser.CompileTimeExpnContext)
Visit a parse tree produced by compileTimeExpn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCompileTimeExpn(turingParser.CompileTimeExpnContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.CompileTimeExpnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComponentSelector(turingParser.ComponentSelectorContext)
Visit a parse tree produced by componentSelector().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComponentSelector(turingParser.ComponentSelectorContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ComponentSelectorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConstantDeclaration(turingParser.ConstantDeclarationContext)
Visit a parse tree produced by constantDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConstantDeclaration(turingParser.ConstantDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ConstantDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclaration(turingParser.DeclarationContext)
Visit a parse tree produced by declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclaration(turingParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.DeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationOrStatement(turingParser.DeclarationOrStatementContext)
Visit a parse tree produced by declarationOrStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationOrStatement(turingParser.DeclarationOrStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.DeclarationOrStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationOrStatementInMainProgram(turingParser.DeclarationOrStatementInMainProgramContext)
Visit a parse tree produced by declarationOrStatementInMainProgram().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationOrStatementInMainProgram(turingParser.DeclarationOrStatementInMainProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.DeclarationOrStatementInMainProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarationsAndStatements(turingParser.DeclarationsAndStatementsContext)
Visit a parse tree produced by declarationsAndStatements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarationsAndStatements(turingParser.DeclarationsAndStatementsContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.DeclarationsAndStatementsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExplicitConstant(turingParser.ExplicitConstantContext)
Visit a parse tree produced by explicitConstant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExplicitConstant(turingParser.ExplicitConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ExplicitConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpn(turingParser.ExpnContext)
Visit a parse tree produced by expn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpn(turingParser.ExpnContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ExpnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExponentWidth(turingParser.ExponentWidthContext)
Visit a parse tree produced by exponentWidth().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExponentWidth(turingParser.ExponentWidthContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ExponentWidthContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFileNumber(turingParser.FileNumberContext)
Visit a parse tree produced by fileNumber().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFileNumber(turingParser.FileNumberContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.FileNumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitForStatement(turingParser.ForStatementContext)
Visit a parse tree produced by forStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitForStatement(turingParser.ForStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ForStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFractionWidth(turingParser.FractionWidthContext)
Visit a parse tree produced by fractionWidth().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFractionWidth(turingParser.FractionWidthContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.FractionWidthContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGetItem(turingParser.GetItemContext)
Visit a parse tree produced by getItem().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGetItem(turingParser.GetItemContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.GetItemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGetStatement(turingParser.GetStatementContext)
Visit a parse tree produced by getStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGetStatement(turingParser.GetStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.GetStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitId_(turingParser.Id_Context)
Visit a parse tree produced by id_().
The default implementation returns the result of calling 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 |
VisitIfStatement(turingParser.IfStatementContext)
Visit a parse tree produced by ifStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIfStatement(turingParser.IfStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.IfStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIndexType(turingParser.IndexTypeContext)
Visit a parse tree produced by indexType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIndexType(turingParser.IndexTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.IndexTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInfixOperator(turingParser.InfixOperatorContext)
Visit a parse tree produced by infixOperator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInfixOperator(turingParser.InfixOperatorContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.InfixOperatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInitializingValue(turingParser.InitializingValueContext)
Visit a parse tree produced by initializingValue().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInitializingValue(turingParser.InitializingValueContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.InitializingValueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLoopStatement(turingParser.LoopStatementContext)
Visit a parse tree produced by loopStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLoopStatement(turingParser.LoopStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.LoopStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamedType(turingParser.NamedTypeContext)
Visit a parse tree produced by namedType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamedType(turingParser.NamedTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.NamedTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpenStatement(turingParser.OpenStatementContext)
Visit a parse tree produced by openStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpenStatement(turingParser.OpenStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.OpenStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameterDeclaration(turingParser.ParameterDeclarationContext)
Visit a parse tree produced by parameterDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameterDeclaration(turingParser.ParameterDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ParameterDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameterType(turingParser.ParameterTypeContext)
Visit a parse tree produced by parameterType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameterType(turingParser.ParameterTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ParameterTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrefixOperator(turingParser.PrefixOperatorContext)
Visit a parse tree produced by prefixOperator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrefixOperator(turingParser.PrefixOperatorContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.PrefixOperatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProcedureCall(turingParser.ProcedureCallContext)
Visit a parse tree produced by procedureCall().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProcedureCall(turingParser.ProcedureCallContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ProcedureCallContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(turingParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(turingParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPutItem(turingParser.PutItemContext)
Visit a parse tree produced by putItem().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPutItem(turingParser.PutItemContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.PutItemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPutStatement(turingParser.PutStatementContext)
Visit a parse tree produced by putStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPutStatement(turingParser.PutStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.PutStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRecordType(turingParser.RecordTypeContext)
Visit a parse tree produced by recordType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRecordType(turingParser.RecordTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.RecordTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReference(turingParser.ReferenceContext)
Visit a parse tree produced by reference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReference(turingParser.ReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.ReferenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReference_2(turingParser.Reference_2Context)
Visit a parse tree produced by reference_2().
The default implementation returns the result of calling 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 |
VisitStandardType(turingParser.StandardTypeContext)
Visit a parse tree produced by standardType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStandardType(turingParser.StandardTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.StandardTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(turingParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(turingParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStreamNumber(turingParser.StreamNumberContext)
Visit a parse tree produced by streamNumber().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStreamNumber(turingParser.StreamNumberContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.StreamNumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString(turingParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(turingParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.StringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubprogramBody(turingParser.SubprogramBodyContext)
Visit a parse tree produced by subprogramBody().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubprogramBody(turingParser.SubprogramBodyContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubprogramBodyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubprogramDeclaration(turingParser.SubprogramDeclarationContext)
Visit a parse tree produced by subprogramDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubprogramDeclaration(turingParser.SubprogramDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubprogramDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubprogramHeader(turingParser.SubprogramHeaderContext)
Visit a parse tree produced by subprogramHeader().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubprogramHeader(turingParser.SubprogramHeaderContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubprogramHeaderContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubrangeType(turingParser.SubrangeTypeContext)
Visit a parse tree produced by subrangeType().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubrangeType(turingParser.SubrangeTypeContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubrangeTypeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubstring(turingParser.SubstringContext)
Visit a parse tree produced by substring().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubstring(turingParser.SubstringContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubstringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubstringPosition(turingParser.SubstringPositionContext)
Visit a parse tree produced by substringPosition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubstringPosition(turingParser.SubstringPositionContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.SubstringPositionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeDeclaration(turingParser.TypeDeclarationContext)
Visit a parse tree produced by typeDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeDeclaration(turingParser.TypeDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.TypeDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTypeSpec(turingParser.TypeSpecContext)
Visit a parse tree produced by typeSpec().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTypeSpec(turingParser.TypeSpecContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.TypeSpecContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariableDeclaration(turingParser.VariableDeclarationContext)
Visit a parse tree produced by variableDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariableDeclaration(turingParser.VariableDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.VariableDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariableReference(turingParser.VariableReferenceContext)
Visit a parse tree produced by variableReference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariableReference(turingParser.VariableReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.VariableReferenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWidthExpn(turingParser.WidthExpnContext)
Visit a parse tree produced by widthExpn().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWidthExpn(turingParser.WidthExpnContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.WidthExpnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |