Class BSLBaseVisitor<Result>
This class provides an empty implementation of IBSLVisitor<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.RacketBsl
Assembly: RacketBsl.dll
Syntax
public class BSLBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IBSLVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitDefinition(BSLParser.DefinitionContext)
Visit a parse tree produced by definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefinition(BSLParser.DefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.DefinitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefOrExpr(BSLParser.DefOrExprContext)
Visit a parse tree produced by defOrExpr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefOrExpr(BSLParser.DefOrExprContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.DefOrExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpr(BSLParser.ExprContext)
Visit a parse tree produced by expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpr(BSLParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.ExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLibraryRequire(BSLParser.LibraryRequireContext)
Visit a parse tree produced by libraryRequire().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLibraryRequire(BSLParser.LibraryRequireContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.LibraryRequireContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(BSLParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(BSLParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPkg(BSLParser.PkgContext)
Visit a parse tree produced by pkg().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPkg(BSLParser.PkgContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.PkgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(BSLParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(BSLParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTestCase(BSLParser.TestCaseContext)
Visit a parse tree produced by testCase().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTestCase(BSLParser.TestCaseContext context)
Parameters
Type | Name | Description |
---|---|---|
BSLParser.TestCaseContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |