Show / Hide Table of Contents

Class prologBaseVisitor<Result>

This class provides an empty implementation of IprologVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
prologBaseVisitor<Result>
Implements
IprologVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Prolog
Assembly: Prolog.dll
Syntax
public class prologBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IprologVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitAtom_term(prologParser.Atom_termContext)

Visit a parse tree produced by the atom_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAtom_term(prologParser.Atom_termContext context)
Parameters
Type Name Description
prologParser.Atom_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBackq_string(prologParser.Backq_stringContext)

Visit a parse tree produced by the backq_string labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBackq_string(prologParser.Backq_stringContext context)
Parameters
Type Name Description
prologParser.Backq_stringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBinary_operator(prologParser.Binary_operatorContext)

Visit a parse tree produced by the binary_operator labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBinary_operator(prologParser.Binary_operatorContext context)
Parameters
Type Name Description
prologParser.Binary_operatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBraced_term(prologParser.Braced_termContext)

Visit a parse tree produced by the braced_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBraced_term(prologParser.Braced_termContext context)
Parameters
Type Name Description
prologParser.Braced_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitClause(prologParser.ClauseContext)

Visit a parse tree produced by clause().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitClause(prologParser.ClauseContext context)
Parameters
Type Name Description
prologParser.ClauseContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCompound_term(prologParser.Compound_termContext)

Visit a parse tree produced by the compound_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCompound_term(prologParser.Compound_termContext context)
Parameters
Type Name Description
prologParser.Compound_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCurly_bracketed_term(prologParser.Curly_bracketed_termContext)

Visit a parse tree produced by the curly_bracketed_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCurly_bracketed_term(prologParser.Curly_bracketed_termContext context)
Parameters
Type Name Description
prologParser.Curly_bracketed_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCut(prologParser.CutContext)

Visit a parse tree produced by the cut labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCut(prologParser.CutContext context)
Parameters
Type Name Description
prologParser.CutContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDirective(prologParser.DirectiveContext)

Visit a parse tree produced by directive().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDirective(prologParser.DirectiveContext context)
Parameters
Type Name Description
prologParser.DirectiveContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDq_string(prologParser.Dq_stringContext)

Visit a parse tree produced by the dq_string labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDq_string(prologParser.Dq_stringContext context)
Parameters
Type Name Description
prologParser.Dq_stringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEmpty_braces(prologParser.Empty_bracesContext)

Visit a parse tree produced by the empty_braces labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEmpty_braces(prologParser.Empty_bracesContext context)
Parameters
Type Name Description
prologParser.Empty_bracesContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEmpty_list(prologParser.Empty_listContext)

Visit a parse tree produced by the empty_list labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEmpty_list(prologParser.Empty_listContext context)
Parameters
Type Name Description
prologParser.Empty_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFloat(prologParser.FloatContext)

Visit a parse tree produced by the float labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFloat(prologParser.FloatContext context)
Parameters
Type Name Description
prologParser.FloatContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGraphic(prologParser.GraphicContext)

Visit a parse tree produced by the graphic labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGraphic(prologParser.GraphicContext context)
Parameters
Type Name Description
prologParser.GraphicContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInteger(prologParser.IntegerContext)

Visit a parse tree produced by integer().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInteger(prologParser.IntegerContext context)
Parameters
Type Name Description
prologParser.IntegerContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInteger_term(prologParser.Integer_termContext)

Visit a parse tree produced by the integer_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInteger_term(prologParser.Integer_termContext context)
Parameters
Type Name Description
prologParser.Integer_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitList_term(prologParser.List_termContext)

Visit a parse tree produced by the list_term labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitList_term(prologParser.List_termContext context)
Parameters
Type Name Description
prologParser.List_termContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitName(prologParser.NameContext)

Visit a parse tree produced by the name labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitName(prologParser.NameContext context)
Parameters
Type Name Description
prologParser.NameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperator_(prologParser.Operator_Context)

Visit a parse tree produced by operator_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperator_(prologParser.Operator_Context context)
Parameters
Type Name Description
prologParser.Operator_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitP_text(prologParser.P_textContext)

Visit a parse tree produced by p_text().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitP_text(prologParser.P_textContext context)
Parameters
Type Name Description
prologParser.P_textContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitQuoted_string(prologParser.Quoted_stringContext)

Visit a parse tree produced by the quoted_string labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitQuoted_string(prologParser.Quoted_stringContext context)
Parameters
Type Name Description
prologParser.Quoted_stringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSemicolon(prologParser.SemicolonContext)

Visit a parse tree produced by the semicolon labeled alternative in atom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSemicolon(prologParser.SemicolonContext context)
Parameters
Type Name Description
prologParser.SemicolonContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTermlist(prologParser.TermlistContext)

Visit a parse tree produced by termlist().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTermlist(prologParser.TermlistContext context)
Parameters
Type Name Description
prologParser.TermlistContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitUnary_operator(prologParser.Unary_operatorContext)

Visit a parse tree produced by the unary_operator labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitUnary_operator(prologParser.Unary_operatorContext context)
Parameters
Type Name Description
prologParser.Unary_operatorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariable(prologParser.VariableContext)

Visit a parse tree produced by the variable labeled alternative in term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVariable(prologParser.VariableContext context)
Parameters
Type Name Description
prologParser.VariableContext context

The parse tree.

Returns
Type Description
Result

Implements

IprologVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX