Class tinybasicBaseVisitor<Result>
This class provides an empty implementation of ItinybasicVisitor<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.Tinybasic
Assembly: Tinybasic.dll
Syntax
public class tinybasicBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ItinybasicVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitExpression(tinybasicParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(tinybasicParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExprlist(tinybasicParser.ExprlistContext)
Visit a parse tree produced by exprlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExprlist(tinybasicParser.ExprlistContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.ExprlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFactor(tinybasicParser.FactorContext)
Visit a parse tree produced by factor().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFactor(tinybasicParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.FactorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(tinybasicParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(tinybasicParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(tinybasicParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(tinybasicParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(tinybasicParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(tinybasicParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelop(tinybasicParser.RelopContext)
Visit a parse tree produced by relop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelop(tinybasicParser.RelopContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.RelopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(tinybasicParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(tinybasicParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(tinybasicParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(tinybasicParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVara(tinybasicParser.VaraContext)
Visit a parse tree produced by vara().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVara(tinybasicParser.VaraContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.VaraContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVarlist(tinybasicParser.VarlistContext)
Visit a parse tree produced by varlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVarlist(tinybasicParser.VarlistContext context)
Parameters
Type | Name | Description |
---|---|---|
tinybasicParser.VarlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |