From 18868128e18d38b706e7df14e8e683e1a9739c17 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Tue, 17 Mar 2026 20:49:22 +1000 Subject: chore: Initial commit --- Compiler/gen/CGrammarVisitor.cs | 506 ---------------------------------------- 1 file changed, 506 deletions(-) delete mode 100644 Compiler/gen/CGrammarVisitor.cs (limited to 'Compiler/gen/CGrammarVisitor.cs') diff --git a/Compiler/gen/CGrammarVisitor.cs b/Compiler/gen/CGrammarVisitor.cs deleted file mode 100644 index be6f92e..0000000 --- a/Compiler/gen/CGrammarVisitor.cs +++ /dev/null @@ -1,506 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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; - -/// -/// This interface defines a complete generic visitor for a parse tree produced -/// by . -/// -/// The return type of the visit operation. -[System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.2")] -[System.CLSCompliant(false)] -public interface ICGrammarVisitor : IParseTreeVisitor { - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitProgram([NotNull] CGrammarParser.ProgramContext context); - /// - /// Visit a parse tree produced by the functionPrototype - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitFunctionPrototype([NotNull] CGrammarParser.FunctionPrototypeContext context); - /// - /// Visit a parse tree produced by the functionDefinition - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitFunctionDefinition([NotNull] CGrammarParser.FunctionDefinitionContext context); - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitBlock([NotNull] CGrammarParser.BlockContext context); - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitBlock_item([NotNull] CGrammarParser.Block_itemContext context); - /// - /// Visit a parse tree produced by the returnStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitReturnStatement([NotNull] CGrammarParser.ReturnStatementContext context); - /// - /// Visit a parse tree produced by the ifStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIfStatement([NotNull] CGrammarParser.IfStatementContext context); - /// - /// Visit a parse tree produced by the forExprStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitForExprStatement([NotNull] CGrammarParser.ForExprStatementContext context); - /// - /// Visit a parse tree produced by the forDeclStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitForDeclStatement([NotNull] CGrammarParser.ForDeclStatementContext context); - /// - /// Visit a parse tree produced by the whileStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitWhileStatement([NotNull] CGrammarParser.WhileStatementContext context); - /// - /// Visit a parse tree produced by the doWhileStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitDoWhileStatement([NotNull] CGrammarParser.DoWhileStatementContext context); - /// - /// Visit a parse tree produced by the breakStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBreakStatement([NotNull] CGrammarParser.BreakStatementContext context); - /// - /// Visit a parse tree produced by the continueStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitContinueStatement([NotNull] CGrammarParser.ContinueStatementContext context); - /// - /// Visit a parse tree produced by the expressionStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitExpressionStatement([NotNull] CGrammarParser.ExpressionStatementContext context); - /// - /// Visit a parse tree produced by the blockStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBlockStatement([NotNull] CGrammarParser.BlockStatementContext context); - /// - /// Visit a parse tree produced by the nullStatement - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitNullStatement([NotNull] CGrammarParser.NullStatementContext context); - /// - /// Visit a parse tree produced by the variableDeclaration - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitVariableDeclaration([NotNull] CGrammarParser.VariableDeclarationContext context); - /// - /// Visit a parse tree produced by the addressOfExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitAddressOfExpression([NotNull] CGrammarParser.AddressOfExpressionContext context); - /// - /// Visit a parse tree produced by the compoundSubtractExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundSubtractExpression([NotNull] CGrammarParser.CompoundSubtractExpressionContext context); - /// - /// Visit a parse tree produced by the modulusExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitModulusExpression([NotNull] CGrammarParser.ModulusExpressionContext context); - /// - /// Visit a parse tree produced by the notExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitNotExpression([NotNull] CGrammarParser.NotExpressionContext context); - /// - /// Visit a parse tree produced by the decrementPrefixExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitDecrementPrefixExpression([NotNull] CGrammarParser.DecrementPrefixExpressionContext context); - /// - /// Visit a parse tree produced by the multiplyExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitMultiplyExpression([NotNull] CGrammarParser.MultiplyExpressionContext context); - /// - /// Visit a parse tree produced by the greaterThanExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitGreaterThanExpression([NotNull] CGrammarParser.GreaterThanExpressionContext context); - /// - /// Visit a parse tree produced by the bitwiseLeftShiftExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBitwiseLeftShiftExpression([NotNull] CGrammarParser.BitwiseLeftShiftExpressionContext context); - /// - /// Visit a parse tree produced by the bitwiseRightShiftExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBitwiseRightShiftExpression([NotNull] CGrammarParser.BitwiseRightShiftExpressionContext context); - /// - /// Visit a parse tree produced by the variableExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitVariableExpression([NotNull] CGrammarParser.VariableExpressionContext context); - /// - /// Visit a parse tree produced by the compoundDivideExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundDivideExpression([NotNull] CGrammarParser.CompoundDivideExpressionContext context); - /// - /// Visit a parse tree produced by the parenthesizedExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitParenthesizedExpression([NotNull] CGrammarParser.ParenthesizedExpressionContext context); - /// - /// Visit a parse tree produced by the compoundAddExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundAddExpression([NotNull] CGrammarParser.CompoundAddExpressionContext context); - /// - /// Visit a parse tree produced by the compoundMultiplyExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundMultiplyExpression([NotNull] CGrammarParser.CompoundMultiplyExpressionContext context); - /// - /// Visit a parse tree produced by the compoundBitwiseXorExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundBitwiseXorExpression([NotNull] CGrammarParser.CompoundBitwiseXorExpressionContext context); - /// - /// Visit a parse tree produced by the bitwiseAndExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBitwiseAndExpression([NotNull] CGrammarParser.BitwiseAndExpressionContext context); - /// - /// Visit a parse tree produced by the lessThanExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitLessThanExpression([NotNull] CGrammarParser.LessThanExpressionContext context); - /// - /// Visit a parse tree produced by the logicalAndExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitLogicalAndExpression([NotNull] CGrammarParser.LogicalAndExpressionContext context); - /// - /// Visit a parse tree produced by the indexExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIndexExpression([NotNull] CGrammarParser.IndexExpressionContext context); - /// - /// Visit a parse tree produced by the invertExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitInvertExpression([NotNull] CGrammarParser.InvertExpressionContext context); - /// - /// Visit a parse tree produced by the dereferenceExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitDereferenceExpression([NotNull] CGrammarParser.DereferenceExpressionContext context); - /// - /// Visit a parse tree produced by the equalExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitEqualExpression([NotNull] CGrammarParser.EqualExpressionContext context); - /// - /// Visit a parse tree produced by the bitwiseXorExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBitwiseXorExpression([NotNull] CGrammarParser.BitwiseXorExpressionContext context); - /// - /// Visit a parse tree produced by the arrayExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitArrayExpression([NotNull] CGrammarParser.ArrayExpressionContext context); - /// - /// Visit a parse tree produced by the constantExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitConstantExpression([NotNull] CGrammarParser.ConstantExpressionContext context); - /// - /// Visit a parse tree produced by the compoundModulusExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundModulusExpression([NotNull] CGrammarParser.CompoundModulusExpressionContext context); - /// - /// Visit a parse tree produced by the lessThanOrEqualExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitLessThanOrEqualExpression([NotNull] CGrammarParser.LessThanOrEqualExpressionContext context); - /// - /// Visit a parse tree produced by the incrementPostfixExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIncrementPostfixExpression([NotNull] CGrammarParser.IncrementPostfixExpressionContext context); - /// - /// Visit a parse tree produced by the compoundBitwiseRightShiftExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundBitwiseRightShiftExpression([NotNull] CGrammarParser.CompoundBitwiseRightShiftExpressionContext context); - /// - /// Visit a parse tree produced by the assignmentExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitAssignmentExpression([NotNull] CGrammarParser.AssignmentExpressionContext context); - /// - /// Visit a parse tree produced by the notEqualExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitNotEqualExpression([NotNull] CGrammarParser.NotEqualExpressionContext context); - /// - /// Visit a parse tree produced by the compoundBitwiseAndExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundBitwiseAndExpression([NotNull] CGrammarParser.CompoundBitwiseAndExpressionContext context); - /// - /// Visit a parse tree produced by the logicalOrExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitLogicalOrExpression([NotNull] CGrammarParser.LogicalOrExpressionContext context); - /// - /// Visit a parse tree produced by the incrementPrefixExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIncrementPrefixExpression([NotNull] CGrammarParser.IncrementPrefixExpressionContext context); - /// - /// Visit a parse tree produced by the greaterThanOrEqualExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitGreaterThanOrEqualExpression([NotNull] CGrammarParser.GreaterThanOrEqualExpressionContext context); - /// - /// Visit a parse tree produced by the divideExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitDivideExpression([NotNull] CGrammarParser.DivideExpressionContext context); - /// - /// Visit a parse tree produced by the bitwiseOrExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitBitwiseOrExpression([NotNull] CGrammarParser.BitwiseOrExpressionContext context); - /// - /// Visit a parse tree produced by the callExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCallExpression([NotNull] CGrammarParser.CallExpressionContext context); - /// - /// Visit a parse tree produced by the addExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitAddExpression([NotNull] CGrammarParser.AddExpressionContext context); - /// - /// Visit a parse tree produced by the subtractExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitSubtractExpression([NotNull] CGrammarParser.SubtractExpressionContext context); - /// - /// Visit a parse tree produced by the compoundBitwiseOrExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundBitwiseOrExpression([NotNull] CGrammarParser.CompoundBitwiseOrExpressionContext context); - /// - /// Visit a parse tree produced by the decrementPostfixExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitDecrementPostfixExpression([NotNull] CGrammarParser.DecrementPostfixExpressionContext context); - /// - /// Visit a parse tree produced by the ternaryExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitTernaryExpression([NotNull] CGrammarParser.TernaryExpressionContext context); - /// - /// Visit a parse tree produced by the compoundBitwiseLeftShiftExpression - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCompoundBitwiseLeftShiftExpression([NotNull] CGrammarParser.CompoundBitwiseLeftShiftExpressionContext context); - /// - /// Visit a parse tree produced by the intConstant - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIntConstant([NotNull] CGrammarParser.IntConstantContext context); - /// - /// Visit a parse tree produced by the hexConstant - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitHexConstant([NotNull] CGrammarParser.HexConstantContext context); - /// - /// Visit a parse tree produced by the charConstant - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitCharConstant([NotNull] CGrammarParser.CharConstantContext context); - /// - /// Visit a parse tree produced by the stringConstant - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitStringConstant([NotNull] CGrammarParser.StringConstantContext context); - /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitType([NotNull] CGrammarParser.TypeContext context); - /// - /// Visit a parse tree produced by the indexerTarget - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitIndexerTarget([NotNull] CGrammarParser.IndexerTargetContext context); - /// - /// Visit a parse tree produced by the variableTarget - /// labeled alternative in . - /// - /// The parse tree. - /// The visitor result. - Result VisitVariableTarget([NotNull] CGrammarParser.VariableTargetContext context); -} -- cgit v1.3.1