Interface IturingVisitor<Result>
This interface defines a complete generic visitor for a parse tree produced by turingParser.
Namespace: GCore.Antlr.Grammers.Turing
Assembly: Turing.dll
Syntax
public interface 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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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_().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
Result VisitWidthExpn(turingParser.WidthExpnContext context)
Parameters
Type | Name | Description |
---|---|---|
turingParser.WidthExpnContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |