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