Class sexpressionBaseVisitor<Result>
This class provides an empty implementation of IsexpressionVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
System.Object
sexpressionBaseVisitor<Result>
Namespace: GCore.Antlr.Grammers.Sexpression
Assembly: Sexpression.dll
Syntax
public class sexpressionBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IsexpressionVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAtom(sexpressionParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(sexpressionParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
sexpressionParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitItem(sexpressionParser.ItemContext)
Visit a parse tree produced by item().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitItem(sexpressionParser.ItemContext context)
Parameters
Type | Name | Description |
---|---|---|
sexpressionParser.ItemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_(sexpressionParser.List_Context)
Visit a parse tree produced by list_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_(sexpressionParser.List_Context context)
Parameters
Type | Name | Description |
---|---|---|
sexpressionParser.List_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSexpr(sexpressionParser.SexprContext)
Visit a parse tree produced by sexpr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSexpr(sexpressionParser.SexprContext context)
Parameters
Type | Name | Description |
---|---|---|
sexpressionParser.SexprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
Implements
IParseTreeVisitor<>