Class plucidBaseVisitor<Result>
This class provides an empty implementation of IplucidVisitor<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.Plucid
Assembly: Plucid.dll
Syntax
public class plucidBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IplucidVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitActuals_list(plucidParser.Actuals_listContext)
Visit a parse tree produced by actuals_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitActuals_list(plucidParser.Actuals_listContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Actuals_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBody(plucidParser.BodyContext)
Visit a parse tree produced by body().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBody(plucidParser.BodyContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.BodyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCase_expression(plucidParser.Case_expressionContext)
Visit a parse tree produced by case_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCase_expression(plucidParser.Case_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Case_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCbody(plucidParser.CbodyContext)
Visit a parse tree produced by cbody().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCbody(plucidParser.CbodyContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.CbodyContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCond_expression(plucidParser.Cond_expressionContext)
Visit a parse tree produced by cond_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCond_expression(plucidParser.Cond_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Cond_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConstant(plucidParser.ConstantContext)
Visit a parse tree produced by constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConstant(plucidParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.ConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCurrent_declaration(plucidParser.Current_declarationContext)
Visit a parse tree produced by current_declaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCurrent_declaration(plucidParser.Current_declarationContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Current_declarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDeclarations_list(plucidParser.Declarations_listContext)
Visit a parse tree produced by declarations_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDeclarations_list(plucidParser.Declarations_listContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Declarations_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefaultcase(plucidParser.DefaultcaseContext)
Visit a parse tree produced by defaultcase().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefaultcase(plucidParser.DefaultcaseContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.DefaultcaseContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefinition(plucidParser.DefinitionContext)
Visit a parse tree produced by definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefinition(plucidParser.DefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.DefinitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefinitions_list(plucidParser.Definitions_listContext)
Visit a parse tree produced by definitions_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefinitions_list(plucidParser.Definitions_listContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Definitions_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEndif(plucidParser.EndifContext)
Visit a parse tree produced by endif().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEndif(plucidParser.EndifContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.EndifContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(plucidParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(plucidParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression_item(plucidParser.Expression_itemContext)
Visit a parse tree produced by expression_item().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression_item(plucidParser.Expression_itemContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Expression_itemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressions_list(plucidParser.Expressions_listContext)
Visit a parse tree produced by expressions_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressions_list(plucidParser.Expressions_listContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Expressions_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFormals_list(plucidParser.Formals_listContext)
Visit a parse tree produced by formals_list().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFormals_list(plucidParser.Formals_listContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Formals_listContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_call(plucidParser.Function_callContext)
Visit a parse tree produced by function_call().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_call(plucidParser.Function_callContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Function_callContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_definition(plucidParser.Function_definitionContext)
Visit a parse tree produced by function_definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_definition(plucidParser.Function_definitionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Function_definitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(plucidParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(plucidParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIf_expression(plucidParser.If_expressionContext)
Visit a parse tree produced by if_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIf_expression(plucidParser.If_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.If_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInfix_operator(plucidParser.Infix_operatorContext)
Visit a parse tree produced by infix_operator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInfix_operator(plucidParser.Infix_operatorContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Infix_operatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInteger_constant(plucidParser.Integer_constantContext)
Visit a parse tree produced by integer_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInteger_constant(plucidParser.Integer_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Integer_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_constant(plucidParser.List_constantContext)
Visit a parse tree produced by list_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_constant(plucidParser.List_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.List_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_constant_element(plucidParser.List_constant_elementContext)
Visit a parse tree produced by list_constant_element().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_constant_element(plucidParser.List_constant_elementContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.List_constant_elementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitList_expression(plucidParser.List_expressionContext)
Visit a parse tree produced by list_expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitList_expression(plucidParser.List_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.List_expressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumeric_constant(plucidParser.Numeric_constantContext)
Visit a parse tree produced by numeric_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumeric_constant(plucidParser.Numeric_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Numeric_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrefix_operator(plucidParser.Prefix_operatorContext)
Visit a parse tree produced by prefix_operator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrefix_operator(plucidParser.Prefix_operatorContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Prefix_operatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(plucidParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(plucidParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReal_constant(plucidParser.Real_constantContext)
Visit a parse tree produced by real_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReal_constant(plucidParser.Real_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Real_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSimple_definition(plucidParser.Simple_definitionContext)
Visit a parse tree produced by simple_definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSimple_definition(plucidParser.Simple_definitionContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Simple_definitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWhere_clause(plucidParser.Where_clauseContext)
Visit a parse tree produced by where_clause().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWhere_clause(plucidParser.Where_clauseContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Where_clauseContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWord_constant(plucidParser.Word_constantContext)
Visit a parse tree produced by word_constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWord_constant(plucidParser.Word_constantContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Word_constantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWord_constant_less_the_quotes(plucidParser.Word_constant_less_the_quotesContext)
Visit a parse tree produced by word_constant_less_the_quotes().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWord_constant_less_the_quotes(plucidParser.Word_constant_less_the_quotesContext context)
Parameters
Type | Name | Description |
---|---|---|
plucidParser.Word_constant_less_the_quotesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |