Class CLIFBaseVisitor<Result>
This class provides an empty implementation of ICLIFVisitor<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.Clif
Assembly: Clif.dll
Syntax
public class CLIFBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ICLIFVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAtom(CLIFParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(CLIFParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtomsent(CLIFParser.AtomsentContext)
Visit a parse tree produced by atomsent().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtomsent(CLIFParser.AtomsentContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.AtomsentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBoolsent(CLIFParser.BoolsentContext)
Visit a parse tree produced by boolsent().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBoolsent(CLIFParser.BoolsentContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.BoolsentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBoundlist(CLIFParser.BoundlistContext)
Visit a parse tree produced by boundlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBoundlist(CLIFParser.BoundlistContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.BoundlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCltext(CLIFParser.CltextContext)
Visit a parse tree produced by cltext().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCltext(CLIFParser.CltextContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.CltextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommentsent(CLIFParser.CommentsentContext)
Visit a parse tree produced by commentsent().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommentsent(CLIFParser.CommentsentContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.CommentsentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEquation(CLIFParser.EquationContext)
Visit a parse tree produced by equation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEquation(CLIFParser.EquationContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.EquationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInterpretablename(CLIFParser.InterpretablenameContext)
Visit a parse tree produced by interpretablename().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInterpretablename(CLIFParser.InterpretablenameContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.InterpretablenameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInterpretedname(CLIFParser.InterpretednameContext)
Visit a parse tree produced by interpretedname().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInterpretedname(CLIFParser.InterpretednameContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.InterpretednameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModule(CLIFParser.ModuleContext)
Visit a parse tree produced by module().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModule(CLIFParser.ModuleContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.ModuleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(CLIFParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(CLIFParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamedtext(CLIFParser.NamedtextContext)
Visit a parse tree produced by namedtext().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamedtext(CLIFParser.NamedtextContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.NamedtextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOperator_(CLIFParser.Operator_Context)
Visit a parse tree produced by operator_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOperator_(CLIFParser.Operator_Context context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.Operator_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPhrase(CLIFParser.PhraseContext)
Visit a parse tree produced by phrase().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPhrase(CLIFParser.PhraseContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.PhraseContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPredicate(CLIFParser.PredicateContext)
Visit a parse tree produced by predicate().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPredicate(CLIFParser.PredicateContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.PredicateContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitQuantsent(CLIFParser.QuantsentContext)
Visit a parse tree produced by quantsent().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitQuantsent(CLIFParser.QuantsentContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.QuantsentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSentence(CLIFParser.SentenceContext)
Visit a parse tree produced by sentence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSentence(CLIFParser.SentenceContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.SentenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerm(CLIFParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerm(CLIFParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.TermContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTermseq(CLIFParser.TermseqContext)
Visit a parse tree produced by termseq().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTermseq(CLIFParser.TermseqContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.TermseqContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitText(CLIFParser.TextContext)
Visit a parse tree produced by text().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitText(CLIFParser.TextContext context)
Parameters
Type | Name | Description |
---|---|---|
CLIFParser.TextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |