Class lolcodeBaseVisitor<Result>
This class provides an empty implementation of IlolcodeVisitor<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.Lolcode
Assembly: Lolcode.dll
Syntax
public class lolcodeBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IlolcodeVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAdd(lolcodeParser.AddContext)
Visit a parse tree produced by add().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAdd(lolcodeParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AddContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAll_(lolcodeParser.All_Context)
Visit a parse tree produced by all_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAll_(lolcodeParser.All_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.All_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAny_(lolcodeParser.Any_Context)
Visit a parse tree produced by any_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAny_(lolcodeParser.Any_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Any_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignment(lolcodeParser.AssignmentContext)
Visit a parse tree produced by assignment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignment(lolcodeParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AssignmentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBoth(lolcodeParser.BothContext)
Visit a parse tree produced by both().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBoth(lolcodeParser.BothContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.BothContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCast(lolcodeParser.CastContext)
Visit a parse tree produced by cast().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCast(lolcodeParser.CastContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CastContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCode_block(lolcodeParser.Code_blockContext)
Visit a parse tree produced by code_block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCode_block(lolcodeParser.Code_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Code_blockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComment(lolcodeParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(lolcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclaration(lolcodeParser.DeclarationContext)
Visit a parse tree produced by declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclaration(lolcodeParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDiv(lolcodeParser.DivContext)
Visit a parse tree produced by div().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDiv(lolcodeParser.DivContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DivContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEither(lolcodeParser.EitherContext)
Visit a parse tree produced by either().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEither(lolcodeParser.EitherContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EitherContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElse_if_block(lolcodeParser.Else_if_blockContext)
Visit a parse tree produced by else_if_block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElse_if_block(lolcodeParser.Else_if_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Else_if_blockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEquals(lolcodeParser.EqualsContext)
Visit a parse tree produced by equals().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEquals(lolcodeParser.EqualsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EqualsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(lolcodeParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(lolcodeParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunc_(lolcodeParser.Func_Context)
Visit a parse tree produced by func_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunc_(lolcodeParser.Func_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunc_decl(lolcodeParser.Func_declContext)
Visit a parse tree produced by func_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunc_decl(lolcodeParser.Func_declContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGreater(lolcodeParser.GreaterContext)
Visit a parse tree produced by greater().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGreater(lolcodeParser.GreaterContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.GreaterContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIf_block(lolcodeParser.If_blockContext)
Visit a parse tree produced by if_block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIf_block(lolcodeParser.If_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.If_blockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInput_block(lolcodeParser.Input_blockContext)
Visit a parse tree produced by input_block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInput_block(lolcodeParser.Input_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Input_blockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLess(lolcodeParser.LessContext)
Visit a parse tree produced by less().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLess(lolcodeParser.LessContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LessContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLoop(lolcodeParser.LoopContext)
Visit a parse tree produced by loop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLoop(lolcodeParser.LoopContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LoopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMod(lolcodeParser.ModContext)
Visit a parse tree produced by mod().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMod(lolcodeParser.ModContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ModContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMul(lolcodeParser.MulContext)
Visit a parse tree produced by mul().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMul(lolcodeParser.MulContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.MulContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNot_(lolcodeParser.Not_Context)
Visit a parse tree produced by not_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNot_(lolcodeParser.Not_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNot_equals(lolcodeParser.Not_equalsContext)
Visit a parse tree produced by not_equals().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNot_equals(lolcodeParser.Not_equalsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_equalsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrint_block(lolcodeParser.Print_blockContext)
Visit a parse tree produced by print_block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrint_block(lolcodeParser.Print_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Print_blockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(lolcodeParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(lolcodeParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(lolcodeParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(lolcodeParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSub(lolcodeParser.SubContext)
Visit a parse tree produced by sub().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSub(lolcodeParser.SubContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.SubContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |