Show / Hide Table of Contents

Class lisaBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitAdd_expression(lisaParser.Add_expressionContext)

Visit a parse tree produced by add_expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAdd_expression(lisaParser.Add_expressionContext context)
Parameters
Type Name Description
lisaParser.Add_expressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAddop(lisaParser.AddopContext)

Visit a parse tree produced by addop().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAddop(lisaParser.AddopContext context)
Parameters
Type Name Description
lisaParser.AddopContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstant(lisaParser.ConstantContext)

Visit a parse tree produced by constant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstant(lisaParser.ConstantContext context)
Parameters
Type Name Description
lisaParser.ConstantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclaration_block(lisaParser.Declaration_blockContext)

Visit a parse tree produced by declaration_block().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclaration_block(lisaParser.Declaration_blockContext context)
Parameters
Type Name Description
lisaParser.Declaration_blockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclaration_statement(lisaParser.Declaration_statementContext)

Visit a parse tree produced by declaration_statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclaration_statement(lisaParser.Declaration_statementContext context)
Parameters
Type Name Description
lisaParser.Declaration_statementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDeclaration_statements(lisaParser.Declaration_statementsContext)

Visit a parse tree produced by declaration_statements().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDeclaration_statements(lisaParser.Declaration_statementsContext context)
Parameters
Type Name Description
lisaParser.Declaration_statementsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(lisaParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression(lisaParser.ExpressionContext context)
Parameters
Type Name Description
lisaParser.ExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression_statement(lisaParser.Expression_statementContext)

Visit a parse tree produced by expression_statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression_statement(lisaParser.Expression_statementContext context)
Parameters
Type Name Description
lisaParser.Expression_statementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExprop(lisaParser.ExpropContext)

Visit a parse tree produced by exprop().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExprop(lisaParser.ExpropContext context)
Parameters
Type Name Description
lisaParser.ExpropContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFactor(lisaParser.FactorContext)

Visit a parse tree produced by factor().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFactor(lisaParser.FactorContext context)
Parameters
Type Name Description
lisaParser.FactorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunction_(lisaParser.Function_Context)

Visit a parse tree produced by function_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunction_(lisaParser.Function_Context context)
Parameters
Type Name Description
lisaParser.Function_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGenerating_statement(lisaParser.Generating_statementContext)

Visit a parse tree produced by generating_statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGenerating_statement(lisaParser.Generating_statementContext context)
Parameters
Type Name Description
lisaParser.Generating_statementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGenerator_type(lisaParser.Generator_typeContext)

Visit a parse tree produced by generator_type().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGenerator_type(lisaParser.Generator_typeContext context)
Parameters
Type Name Description
lisaParser.Generator_typeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIf_statement(lisaParser.If_statementContext)

Visit a parse tree produced by if_statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIf_statement(lisaParser.If_statementContext context)
Parameters
Type Name Description
lisaParser.If_statementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInteger(lisaParser.IntegerContext)

Visit a parse tree produced by integer().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMultop(lisaParser.MultopContext)

Visit a parse tree produced by multop().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMultop(lisaParser.MultopContext context)
Parameters
Type Name Description
lisaParser.MultopContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOr_expression(lisaParser.Or_expressionContext)

Visit a parse tree produced by or_expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOr_expression(lisaParser.Or_expressionContext context)
Parameters
Type Name Description
lisaParser.Or_expressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitParameter_list(lisaParser.Parameter_listContext)

Visit a parse tree produced by parameter_list().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitParameter_list(lisaParser.Parameter_listContext context)
Parameters
Type Name Description
lisaParser.Parameter_listContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram(lisaParser.ProgramContext)

Visit a parse tree produced by program().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProgram(lisaParser.ProgramContext context)
Parameters
Type Name Description
lisaParser.ProgramContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram_block(lisaParser.Program_blockContext)

Visit a parse tree produced by program_block().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProgram_block(lisaParser.Program_blockContext context)
Parameters
Type Name Description
lisaParser.Program_blockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRelation_expression(lisaParser.Relation_expressionContext)

Visit a parse tree produced by relation_expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRelation_expression(lisaParser.Relation_expressionContext context)
Parameters
Type Name Description
lisaParser.Relation_expressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRelop(lisaParser.RelopContext)

Visit a parse tree produced by relop().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRelop(lisaParser.RelopContext context)
Parameters
Type Name Description
lisaParser.RelopContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSimple_expression(lisaParser.Simple_expressionContext)

Visit a parse tree produced by simple_expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSimple_expression(lisaParser.Simple_expressionContext context)
Parameters
Type Name Description
lisaParser.Simple_expressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(lisaParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatement(lisaParser.StatementContext context)
Parameters
Type Name Description
lisaParser.StatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatements(lisaParser.StatementsContext)

Visit a parse tree produced by statements().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatements(lisaParser.StatementsContext context)
Parameters
Type Name Description
lisaParser.StatementsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTerm(lisaParser.TermContext)

Visit a parse tree produced by term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTerm(lisaParser.TermContext context)
Parameters
Type Name Description
lisaParser.TermContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitType_(lisaParser.Type_Context)

Visit a parse tree produced by type_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitType_(lisaParser.Type_Context context)
Parameters
Type Name Description
lisaParser.Type_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitUnary_relationexpression(lisaParser.Unary_relationexpressionContext)

Visit a parse tree produced by unary_relationexpression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitUnary_relationexpression(lisaParser.Unary_relationexpressionContext context)
Parameters
Type Name Description
lisaParser.Unary_relationexpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariable(lisaParser.VariableContext)

Visit a parse tree produced by variable().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhile_statement(lisaParser.While_statementContext)

Visit a parse tree produced by while_statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhile_statement(lisaParser.While_statementContext context)
Parameters
Type Name Description
lisaParser.While_statementContext context

The parse tree.

Returns
Type Description
Result

Implements

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