//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// ANTLR Version: 4.13.2
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// Generated from /Users/melodidey/Source/csharp/Q1/Compiler/CGrammar.g4 by ANTLR 4.13.2
// Unreachable code detected
#pragma warning disable 0162
// The variable '...' is assigned but its value is never used
#pragma warning disable 0219
// Missing XML comment for publicly visible type or member '...'
#pragma warning disable 1591
// Ambiguous reference in cref attribute
#pragma warning disable 419
using Antlr4.Runtime.Misc;
using Antlr4.Runtime.Tree;
using IToken = Antlr4.Runtime.IToken;
using ParserRuleContext = Antlr4.Runtime.ParserRuleContext;
///
/// This class provides an empty implementation of ,
/// which can be extended to create a visitor which only needs to handle a subset
/// of the available methods.
///
/// The return type of the visit operation.
[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.2")]
[System.Diagnostics.DebuggerNonUserCode]
[System.CLSCompliant(false)]
public partial class CGrammarBaseVisitor : AbstractParseTreeVisitor, ICGrammarVisitor {
///
/// Visit a parse tree produced by .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitProgram([NotNull] CGrammarParser.ProgramContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitFunction([NotNull] CGrammarParser.FunctionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBody([NotNull] CGrammarParser.BodyContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBlock([NotNull] CGrammarParser.BlockContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBlock_item([NotNull] CGrammarParser.Block_itemContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the returnStatement
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitReturnStatement([NotNull] CGrammarParser.ReturnStatementContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the ifStatement
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitIfStatement([NotNull] CGrammarParser.IfStatementContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the expressionStatement
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitExpressionStatement([NotNull] CGrammarParser.ExpressionStatementContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the variableDeclaration
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitVariableDeclaration([NotNull] CGrammarParser.VariableDeclarationContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundSubtractExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundSubtractExpression([NotNull] CGrammarParser.CompoundSubtractExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the modulusExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitModulusExpression([NotNull] CGrammarParser.ModulusExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the notExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitNotExpression([NotNull] CGrammarParser.NotExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the decrementPrefixExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitDecrementPrefixExpression([NotNull] CGrammarParser.DecrementPrefixExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the multiplyExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitMultiplyExpression([NotNull] CGrammarParser.MultiplyExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the greaterThanExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitGreaterThanExpression([NotNull] CGrammarParser.GreaterThanExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the bitwiseLeftShiftExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBitwiseLeftShiftExpression([NotNull] CGrammarParser.BitwiseLeftShiftExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the bitwiseRightShiftExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBitwiseRightShiftExpression([NotNull] CGrammarParser.BitwiseRightShiftExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the variableExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitVariableExpression([NotNull] CGrammarParser.VariableExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundDivideExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundDivideExpression([NotNull] CGrammarParser.CompoundDivideExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the parenthesizedExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitParenthesizedExpression([NotNull] CGrammarParser.ParenthesizedExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundAddExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundAddExpression([NotNull] CGrammarParser.CompoundAddExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundMultiplyExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundMultiplyExpression([NotNull] CGrammarParser.CompoundMultiplyExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundBitwiseXorExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundBitwiseXorExpression([NotNull] CGrammarParser.CompoundBitwiseXorExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the bitwiseAndExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBitwiseAndExpression([NotNull] CGrammarParser.BitwiseAndExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the lessThanExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitLessThanExpression([NotNull] CGrammarParser.LessThanExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the logicalAndExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitLogicalAndExpression([NotNull] CGrammarParser.LogicalAndExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the invertExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitInvertExpression([NotNull] CGrammarParser.InvertExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the equalExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitEqualExpression([NotNull] CGrammarParser.EqualExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the bitwiseXorExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBitwiseXorExpression([NotNull] CGrammarParser.BitwiseXorExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the constantExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitConstantExpression([NotNull] CGrammarParser.ConstantExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundModulusExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundModulusExpression([NotNull] CGrammarParser.CompoundModulusExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the lessThanOrEqualExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitLessThanOrEqualExpression([NotNull] CGrammarParser.LessThanOrEqualExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the incrementPostfixExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitIncrementPostfixExpression([NotNull] CGrammarParser.IncrementPostfixExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundBitwiseRightShiftExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundBitwiseRightShiftExpression([NotNull] CGrammarParser.CompoundBitwiseRightShiftExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the assignmentExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitAssignmentExpression([NotNull] CGrammarParser.AssignmentExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the notEqualExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitNotEqualExpression([NotNull] CGrammarParser.NotEqualExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundBitwiseAndExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundBitwiseAndExpression([NotNull] CGrammarParser.CompoundBitwiseAndExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the logicalOrExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitLogicalOrExpression([NotNull] CGrammarParser.LogicalOrExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the commaExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCommaExpression([NotNull] CGrammarParser.CommaExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the incrementPrefixExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitIncrementPrefixExpression([NotNull] CGrammarParser.IncrementPrefixExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the greaterThanOrEqualExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitGreaterThanOrEqualExpression([NotNull] CGrammarParser.GreaterThanOrEqualExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the divideExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitDivideExpression([NotNull] CGrammarParser.DivideExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the bitwiseOrExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitBitwiseOrExpression([NotNull] CGrammarParser.BitwiseOrExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the addExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitAddExpression([NotNull] CGrammarParser.AddExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the subtractExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitSubtractExpression([NotNull] CGrammarParser.SubtractExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundBitwiseOrExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundBitwiseOrExpression([NotNull] CGrammarParser.CompoundBitwiseOrExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the decrementPostfixExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitDecrementPostfixExpression([NotNull] CGrammarParser.DecrementPostfixExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the ternaryExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitTernaryExpression([NotNull] CGrammarParser.TernaryExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the compoundBitwiseLeftShiftExpression
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitCompoundBitwiseLeftShiftExpression([NotNull] CGrammarParser.CompoundBitwiseLeftShiftExpressionContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the intConstant
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitIntConstant([NotNull] CGrammarParser.IntConstantContext context) { return VisitChildren(context); }
///
/// Visit a parse tree produced by the variableTarget
/// labeled alternative in .
///
/// The default implementation returns the result of calling
/// on .
///
///
/// The parse tree.
/// The visitor result.
public virtual Result VisitVariableTarget([NotNull] CGrammarParser.VariableTargetContext context) { return VisitChildren(context); }
}