Class metamathBaseVisitor<Result>
This class provides an empty implementation of ImetamathVisitor<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.Metamath
Assembly: Metamath.dll
Syntax
public class metamathBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ImetamathVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
| Name | Description |
|---|---|
| Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAssertstmt(metamathParser.AssertstmtContext)
Visit a parse tree produced by assertstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitAssertstmt(metamathParser.AssertstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.AssertstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitAxiomstmt(metamathParser.AxiomstmtContext)
Visit a parse tree produced by axiomstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitAxiomstmt(metamathParser.AxiomstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.AxiomstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitBlock(metamathParser.BlockContext)
Visit a parse tree produced by block().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitBlock(metamathParser.BlockContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.BlockContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitCompressedproof(metamathParser.CompressedproofContext)
Visit a parse tree produced by compressedproof().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitCompressedproof(metamathParser.CompressedproofContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.CompressedproofContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitConstant(metamathParser.ConstantContext)
Visit a parse tree produced by constant().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitConstant(metamathParser.ConstantContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.ConstantContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitConstantstmt(metamathParser.ConstantstmtContext)
Visit a parse tree produced by constantstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitConstantstmt(metamathParser.ConstantstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.ConstantstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitDatabase(metamathParser.DatabaseContext)
Visit a parse tree produced by database().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitDatabase(metamathParser.DatabaseContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.DatabaseContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitDisjointstmt(metamathParser.DisjointstmtContext)
Visit a parse tree produced by disjointstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitDisjointstmt(metamathParser.DisjointstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.DisjointstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitEssentialstmt(metamathParser.EssentialstmtContext)
Visit a parse tree produced by essentialstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitEssentialstmt(metamathParser.EssentialstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.EssentialstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitFilename(metamathParser.FilenameContext)
Visit a parse tree produced by filename().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitFilename(metamathParser.FilenameContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.FilenameContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitFloatingstmt(metamathParser.FloatingstmtContext)
Visit a parse tree produced by floatingstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitFloatingstmt(metamathParser.FloatingstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.FloatingstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitHypothesisstmt(metamathParser.HypothesisstmtContext)
Visit a parse tree produced by hypothesisstmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitHypothesisstmt(metamathParser.HypothesisstmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.HypothesisstmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitIncludestmt(metamathParser.IncludestmtContext)
Visit a parse tree produced by includestmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitIncludestmt(metamathParser.IncludestmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.IncludestmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitMathsymbol(metamathParser.MathsymbolContext)
Visit a parse tree produced by mathsymbol().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitMathsymbol(metamathParser.MathsymbolContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.MathsymbolContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitOutermostscopestmt(metamathParser.OutermostscopestmtContext)
Visit a parse tree produced by outermostscopestmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitOutermostscopestmt(metamathParser.OutermostscopestmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.OutermostscopestmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitProof(metamathParser.ProofContext)
Visit a parse tree produced by proof().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitProof(metamathParser.ProofContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.ProofContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitProvablestmt(metamathParser.ProvablestmtContext)
Visit a parse tree produced by provablestmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitProvablestmt(metamathParser.ProvablestmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.ProvablestmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitStmt(metamathParser.StmtContext)
Visit a parse tree produced by stmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitStmt(metamathParser.StmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.StmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitTypecode(metamathParser.TypecodeContext)
Visit a parse tree produced by typecode().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitTypecode(metamathParser.TypecodeContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.TypecodeContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitUncompressedproof(metamathParser.UncompressedproofContext)
Visit a parse tree produced by uncompressedproof().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitUncompressedproof(metamathParser.UncompressedproofContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.UncompressedproofContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVariable(metamathParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVariable(metamathParser.VariableContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.VariableContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVariablestmt(metamathParser.VariablestmtContext)
Visit a parse tree produced by variablestmt().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVariablestmt(metamathParser.VariablestmtContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| metamathParser.VariablestmtContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |