Class sickbayBaseVisitor<Result>
This class provides an empty implementation of IsickbayVisitor<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.Sickbay
Assembly: Sickbay.dll
Syntax
public class sickbayBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IsickbayVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitIntExpr(sickbayParser.IntExprContext)
Visit a parse tree produced by intExpr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIntExpr(sickbayParser.IntExprContext context)
Parameters
Type | Name | Description |
---|---|---|
sickbayParser.IntExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIntVar(sickbayParser.IntVarContext)
Visit a parse tree produced by intVar().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIntVar(sickbayParser.IntVarContext context)
Parameters
Type | Name | Description |
---|---|---|
sickbayParser.IntVarContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(sickbayParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(sickbayParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
sickbayParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSickbay(sickbayParser.SickbayContext)
Visit a parse tree produced by sickbay().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSickbay(sickbayParser.SickbayContext context)
Parameters
Type | Name | Description |
---|---|---|
sickbayParser.SickbayContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStmt(sickbayParser.StmtContext)
Visit a parse tree produced by stmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStmt(sickbayParser.StmtContext context)
Parameters
Type | Name | Description |
---|---|---|
sickbayParser.StmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |