Class brainfuckBaseVisitor<Result>
This class provides an empty implementation of IbrainfuckVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
System.Object
brainfuckBaseVisitor<Result>
Namespace: GCore.Antlr.Grammers.Brainfuck
Assembly: Brainfuck.dll
Syntax
public class brainfuckBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IbrainfuckVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitFile_(brainfuckParser.File_Context)
Visit a parse tree produced by file_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_(brainfuckParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
brainfuckParser.File_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpcode(brainfuckParser.OpcodeContext)
Visit a parse tree produced by opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpcode(brainfuckParser.OpcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
brainfuckParser.OpcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(brainfuckParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(brainfuckParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
brainfuckParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
Implements
IParseTreeVisitor<>