From d36d51429d604f0ab3b2076c4c05e28ebf9b52c5 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Sat, 9 Aug 2025 00:16:57 +1000 Subject: updated block syntax and removed body grammar, fixed issue with if requiring an else branch --- Compiler/gen/CGrammarVisitor.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Compiler/gen/CGrammarVisitor.cs') diff --git a/Compiler/gen/CGrammarVisitor.cs b/Compiler/gen/CGrammarVisitor.cs index 50cb551..e0689f0 100644 --- a/Compiler/gen/CGrammarVisitor.cs +++ b/Compiler/gen/CGrammarVisitor.cs @@ -44,12 +44,6 @@ public interface ICGrammarVisitor : IParseTreeVisitor { /// The visitor result. Result VisitFunction([NotNull] CGrammarParser.FunctionContext context); /// - /// Visit a parse tree produced by . - /// - /// The parse tree. - /// The visitor result. - Result VisitBody([NotNull] CGrammarParser.BodyContext context); - /// /// Visit a parse tree produced by . /// /// The parse tree. @@ -83,6 +77,13 @@ public interface ICGrammarVisitor : IParseTreeVisitor { /// 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 variableDeclaration /// labeled alternative in . /// -- cgit v1.3.1